Hello @Fabio Nogarotto - Brianza Sistemi snc
Thanks for reaching out in the Microsoft Q&A!
The "404 Resource Not Found" error in your Start/Stop VMs v2 script indicates the script cannot locate the virtual machine you're trying to start. To troubleshoot, first, double-check your subscription ID and ensure it matches accurately. Verify the VM name targeted in your script and check its existence in the Azure portal. Temporary resource availability issues on Azure's end might also be a factor, so consider retrying the script later. Review the configuration of the Function-Try step in your Azure Function. You can find relevant documentation here: Start/Stop VMs v2 Overview and Azure Functions Documentation. With these steps and insights, you should be able to resolve the error and get your script working smoothly again.
If you found this solution helpful, consider accepting it.