I am trying to run below api to patch vm through apicall as mentioned in Microsoft documentation https://video2.skills-academy.com/en-us/azure/update-center/manage-vms-programmatically?tabs=cli%2Cazurecli
az rest --method post --uri "https://management.azure.com/subscriptions/x-x-x/resourceGroups/test/providers/Microsoft.Compute/virtualMachines/test/installPatches?api-version==2020-12-01"
I am getting below error however i have valid resource provider .Tried using other suggested api-version also. still getting same error. Could you please suggest correct api-version name which i can use in api-call
Bad Request({"error":{"code":"NoRegisteredProviderFound","message":"No registered resource provider found for location 'eastus2' and API version '=2020-12-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, 2021-11-01, 2022-03-01, 2022-08-01, 2022-11-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, swedencentral, qatarcentral'."}})