An Azure service that is used to provision Windows and Linux virtual machines.
I received great support from Microsoft. The basic problem was that my call to the Compute API was a GET instead of a POST. Here is the successful HTTP step:
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to use Logic Apps to trigger the start of a VM by an HTTP request. I can successfully trigger the API call, but I get the following error:
{
"error": {
"code": "NoRegisteredProviderFound",
"message": "No registered resource provider found for location 'eastus' and API version '2021-07-01\"' for type 'virtualMachines'. The supported api-versions are '2015-05-01-preview, 2015-06-15, 2016-03-30, 2016-04-30-preview, 2016-08-30, 2017-03-30, 2017-12-01, 2018-04-01, 2018-06-01, 2018-10-01, 2019-03-01, 2019-07-01, 2019-12-01, 2020-06-01, 2020-12-01, 2021-03-01, 2021-04-01, 2021-07-01'. The supported locations are 'eastus, eastus2, westus, centralus, northcentralus, southcentralus, northeurope, westeurope, eastasia, southeastasia, japaneast, japanwest, australiaeast, australiasoutheast, australiacentral, brazilsouth, southindia, centralindia, westindia, canadacentral, canadaeast, westus2, westcentralus, uksouth, ukwest, koreacentral, koreasouth, francecentral, southafricanorth, uaenorth, switzerlandnorth, germanywestcentral, norwayeast, jioindiawest, westus3'."
}
}
Microsoft.Compute is registered as a service provider for my subscription.
An Azure service that is used to provision Windows and Linux virtual machines.
Answer accepted by question author
I received great support from Microsoft. The basic problem was that my call to the Compute API was a GET instead of a POST. Here is the successful HTTP step:
@Peter Retief Apologies for the delay in response and all the inconvenience caused because of the issue.
The error message should give you suggestions for the supported locations and API versions. You can change your template to one of the suggested values. Most providers are registered automatically by the Azure portal or the command-line interface you're using, but not all. If you haven't used a particular resource provider before, you may need to register that provider.
Can you please check steps as mentioned here.
Let me know if it helped or not.
Please "Accept as Answer" if it helped so it can help others in community looking for help on similar topics.