Closed digot007 closed 3 years ago
Cluster resource has below locations and API versions. Get-AzResource
adjusts user's input according to available API versions.
"resourceTypes": [
{
"resourceType": "clusters",
"locations": [
"East US",
"West Europe",
"Southeast Asia",
"East US 2 EUAP"
],
"apiVersions": [
"2020-10-01"
],
"capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"
},
Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!
THe issue can be closed now. I see that RP is missing the api version.
Thanks digot007.
Description
Get-AzResource Cmdlet is ignoring the -ApiVersion parameter passed to the Cmdlet and using the different api version. I have tried passing the Pre switch as well but still the -ApiVersion passed is ignored. I am trying to pass -ApiVersion "2021-01-01-preview" but the Cmdlet is still using 2020-10-01
Steps to reproduce
The resource with Id /Subscriptions/subscription_id/resourceGroups/DinosCanaryRG/providers/Microsoft.AzureStackHCI/clusters/nwdgcl156/arcsettings/default already exists and i am trying to get it.
Environment data
Module versions
Debug output
Error output