Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.26k stars 3.86k forks source link

Get-AzResource Cmdlet is ignoring the -ApiVersion parameter #14845

Closed digot007 closed 3 years ago

digot007 commented 3 years ago

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.

$Region = "eastus2euap"
$azEnv = (Get-AzEnvironment -Name AzureCloud)
$azEnv.Name = "AzureCanaryEastUS2EUAP"
$azEnv.ResourceManagerUrl = ('https://{0}.management.azure.com/' -f $Region)
$azEnv | Add-AzEnvironment | Out-Null
Connect-AzAccount -Environment "AzureCanaryEastUS2EUAP" -SubscriptionId subscription_id -DeviceCode

Get-AzResource -ResourceId /Subscriptions/subscription_id/resourceGroups/DinosCanaryRG/providers/Microsoft.AzureStackHCI/clusters/nwdgcl156/arcsettings/default -ApiVersion '2021-01-01-preview'

Environment data

PS C:\Users\xxxxxx> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.20339.1000
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.20339.1000
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Module versions

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     2.2.8      Az.Accounts                         {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosave...}
Script     3.4.1      Az.Resources                        {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignment...}
Binary     2.0.2.130  AzureAD                             {Add-AzureADApplicationOwner, Get-AzureADApplication, Get-AzureADApplicationExtensionProperty, Get-AzureADApp...
Script     1.0.1      Microsoft.PowerShell.Operation.V... {Get-OperationValidation, Invoke-OperationValidation}
Binary     1.0.0.1    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...}
Script     3.4.0      Pester                              {Describe, Context, It, Should...}
Script     1.0.0.1    PowerShellGet                       {Install-Module, Find-Module, Save-Module, Update-Module...}
Script     2.0.0      PSReadline                          {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption...}

    Directory: C:\Windows\system32\WindowsPowerShell\v1.0\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Manifest   2.0.0.0    AppLocker                           {Get-AppLockerFileInformation, Get-AppLockerPolicy, New-AppLockerPolicy, Set-AppLockerPolicy...}
Manifest   2.0.1.0    Appx                                {Add-AppxPackage, Get-AppxPackage, Get-AppxPackageManifest, Remove-AppxPackage...}
Binary     1.0.0.0    AzureStackHCI                       {Get-AzureStackHCIBillingRecord, Get-AzureStackHCI, New-AzureStackHCIRegistrationCertificate, Set-AzureStackH...
Manifest   1.0        BestPractices                       {Get-BpaModel, Get-BpaResult, Invoke-BpaModel, Set-BpaResult}
Manifest   2.0.0.0    BitsTransfer                        {Add-BitsFile, Complete-BitsTransfer, Get-BitsTransfer, Remove-BitsTransfer...}
Manifest   1.0.0.0    CimCmdlets                          {Get-CimAssociatedInstance, Get-CimClass, Get-CimInstance, Get-CimSession...}
Binary     2.0.0.0    ClusterAwareUpdating                {Get-CauPlugin, Register-CauPlugin, Unregister-CauPlugin, Invoke-CauScan...}
Manifest   1.0        ConfigCI                            {Get-SystemDriver, New-CIPolicyRule, New-CIPolicy, Get-CIPolicy...}
Manifest   1.0        ConfigDefender                      {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreference...}
Manifest   1.0        Defender                            {Get-MpPreference, Set-MpPreference, Add-MpPreference, Remove-MpPreference...}
Manifest   1.0.3.0    DeliveryOptimization                {Get-DeliveryOptimizationLog, Get-DeliveryOptimizationLogAnalysis, Delete-DeliveryOptimizationCache, Disable-...
Manifest   1.0.0.0    DirectAccessClientComponents        {Disable-DAManualEntryPointSelection, Enable-DAManualEntryPointSelection, Get-DAClientExperienceConfiguration...
Script     3.0        Dism                                {Add-AppxProvisionedPackage, Add-WindowsDriver, Add-WindowsCapability, Add-WindowsImage...}
Manifest   1.0.0.0    DnsClient                           {Resolve-DnsName, Clear-DnsClientCache, Get-DnsClient, Get-DnsClientCache...}
Manifest   1.0.0.0    EventTracingManagement              {Start-EtwTraceSession, New-EtwTraceSession, Get-EtwTraceSession, Update-EtwTraceSession...}
Manifest   2.0.0.0    FailoverClusters                    {Add-ClusterCheckpoint, Add-ClusterDisk, Add-ClusterFileServerRole, Add-ClusterGenericApplicationRole...}
Manifest   1.0        FailoverClusterSet                  {Get-ClusterSetLog, Add-ClusterSetFaultDomainMember, Add-ClusterSetMember, Add-ClusterSetMemberTag...}
Script     2020.6.... Get-NetView                         Get-NetView
Manifest   2.0.0.0    International                       {Get-WinDefaultInputMethodOverride, Set-WinDefaultInputMethodOverride, Get-WinHomeLocation, Set-WinHomeLocati...
Manifest   1.0.0.0    iSCSI                               {Get-IscsiTargetPortal, New-IscsiTargetPortal, Remove-IscsiTargetPortal, Update-IscsiTargetPortal...}
Manifest   2.0.0.0    IscsiTarget                         {Add-ClusteriSCSITargetServerRole, Add-IscsiVirtualDiskTargetMapping, Checkpoint-IscsiVirtualDisk, Convert-Is...
Manifest   1.0.0.0    Kds                                 {Add-KdsRootKey, Get-KdsRootKey, Test-KdsRootKey, Set-KdsConfiguration...}
Manifest   1.0.1.0    Microsoft.PowerShell.Archive        {Compress-Archive, Expand-Archive}
Manifest   3.0.0.0    Microsoft.PowerShell.Diagnostics    {Get-WinEvent, Get-Counter, Import-Counter, Export-Counter...}
Manifest   3.0.0.0    Microsoft.PowerShell.Host           {Start-Transcript, Stop-Transcript}
Manifest   1.0.0.0    Microsoft.PowerShell.LocalAccounts  {Add-LocalGroupMember, Disable-LocalUser, Enable-LocalUser, Get-LocalGroup...}
Manifest   3.1.0.0    Microsoft.PowerShell.Management     {Add-Content, Clear-Content, Clear-ItemProperty, Join-Path...}
Script     1.0        Microsoft.PowerShell.ODataUtils     Export-ODataEndpointProxy
Manifest   3.0.0.0    Microsoft.PowerShell.Security       {Get-Acl, Set-Acl, Get-PfxCertificate, Get-Credential...}
Manifest   3.1.0.0    Microsoft.PowerShell.Utility        {Format-List, Format-Custom, Format-Table, Format-Wide...}
Script     2.0.0.0    Microsoft.ServerCore.SConfig        {Invoke-SConfig, Invoke-SConfigLogon, Get-SConfig, Set-SConfig...}
Manifest   3.0.0.0    Microsoft.WSMan.Management          {Disable-WSManCredSSP, Enable-WSManCredSSP, Get-WSManCredSSP, Set-WSManQuickConfig...}
Manifest   1.0        MMAgent                             {Disable-MMAgent, Enable-MMAgent, Set-MMAgent, Get-MMAgent...}
Manifest   1.0.0.0    MsDtc                               {New-DtcDiagnosticTransaction, Complete-DtcDiagnosticTransaction, Join-DtcDiagnosticResourceManager, Receive-...
Manifest   2.0.0.0    NetAdapter                          {Disable-NetAdapter, Disable-NetAdapterBinding, Disable-NetAdapterChecksumOffload, Disable-NetAdapterEncapsul...
Manifest   1.0.0.0    NetConnection                       {Get-NetConnectionProfile, Set-NetConnectionProfile}
Manifest   1.0.0.0    NetEventPacketCapture               {New-NetEventSession, Remove-NetEventSession, Get-NetEventSession, Set-NetEventSession...}
Manifest   2.0.0.0    NetLbfo                             {Add-NetLbfoTeamMember, Add-NetLbfoTeamNic, Get-NetLbfoTeam, Get-NetLbfoTeamMember...}
Manifest   1.0.0.0    NetNat                              {Get-NetNat, Get-NetNatExternalAddress, Get-NetNatStaticMapping, Get-NetNatSession...}
Manifest   2.0.0.0    NetQos                              {Get-NetQosPolicy, Set-NetQosPolicy, Remove-NetQosPolicy, New-NetQosPolicy}
Manifest   2.0.0.0    NetSecurity                         {Get-DAPolicyChange, New-NetIPsecAuthProposal, New-NetIPsecMainModeCryptoProposal, New-NetIPsecQuickModeCrypt...
Manifest   1.0.0.0    NetSwitchTeam                       {New-NetSwitchTeam, Remove-NetSwitchTeam, Get-NetSwitchTeam, Rename-NetSwitchTeam...}
Manifest   1.0.0.0    NetTCPIP                            {Get-NetIPAddress, Get-NetIPInterface, Get-NetIPv4Protocol, Get-NetIPv6Protocol...}
Manifest   1.0.0.0    NetworkConnectivityStatus           {Get-DAConnectionStatus, Get-NCSIPolicyConfiguration, Reset-NCSIPolicyConfiguration, Set-NCSIPolicyConfigurat...
Manifest   1.0.0.0    NetworkTransition                   {Add-NetIPHttpsCertBinding, Disable-NetDnsTransitionConfiguration, Disable-NetIPHttpsProfile, Disable-NetNatT...
Manifest   1.0        NFS                                 {Get-NfsMappedIdentity, Get-NfsNetgroup, Install-NfsMappingStore, New-NfsMappedIdentity...}
Manifest   1.0.0.0    PcsvDevice                          {Get-PcsvDevice, Start-PcsvDevice, Stop-PcsvDevice, Restart-PcsvDevice...}
Binary     1.0.0.0    PersistentMemory                    {Get-PmemDisk, Get-PmemPhysicalDevice, Get-PmemUnusedRegion, New-PmemDisk...}
Manifest   1.0.0.0    PKI                                 {Add-CertificateEnrollmentPolicyServer, Export-Certificate, Export-PfxCertificate, Get-CertificateAutoEnrollm...
Manifest   1.0.0.0    PlatformIdentifier                  Get-PlatformIdentifier
Manifest   1.0.0.0    PnpDevice                           {Get-PnpDevice, Get-PnpDeviceProperty, Enable-PnpDevice, Disable-PnpDevice}
Binary     1.0.0.0    PreviewOptIn                        {Get-PreviewChannel, Set-PreviewChannel}
Binary     1.0.12     ProcessMitigations                  {Get-ProcessMitigation, Set-ProcessMitigation, ConvertTo-ProcessMitigationPolicy}
Manifest   1.1        PSDesiredStateConfiguration         {Set-DscLocalConfigurationManager, Start-DscConfiguration, Test-DscConfiguration, Publish-DscConfiguration...}
Script     1.0.0.0    PSDiagnostics                       {Disable-PSTrace, Disable-PSWSManCombinedTrace, Disable-WSManTrace, Enable-PSTrace...}
Binary     1.1.0.0    PSScheduledJob                      {New-JobTrigger, Add-JobTrigger, Remove-JobTrigger, Get-JobTrigger...}
Manifest   2.0.0.0    PSWorkflow                          {New-PSWorkflowExecutionOption, New-PSWorkflowSession, nwsn}
Manifest   1.0.0.0    PSWorkflowUtility                   Invoke-AsWorkflow
Manifest   2.0.0.0    RemoteDesktop                       {Get-RDCertificate, Set-RDCertificate, New-RDCertificate, New-RDVirtualDesktopDeployment...}
Manifest   1.0.0.0    ScheduledTasks                      {Get-ScheduledTask, Set-ScheduledTask, Register-ScheduledTask, Unregister-ScheduledTask...}
Manifest   2.0.0.0    SecureBoot                          {Confirm-SecureBootUEFI, Set-SecureBootUEFI, Get-SecureBootUEFI, Format-SecureBootUEFI...}
Manifest   1.0.0.0    SecurityCmdlets                     {Backup-SecurityPolicy, Restore-SecurityPolicy, Backup-AuditPolicy, Restore-AuditPolicy}
Script     1.0        ServerAVMAManager                   {Get-VMAutomaticActivation, Set-VMAutomaticActivation}
Script     1.0.0.0    ServerCore                          {Get-DisplayResolution, Set-DisplayResolution}
Script     2.0.0.0    ServerManager                       {Get-WindowsFeature, Install-WindowsFeature, Uninstall-WindowsFeature, Enable-ServerManagerStandardUserRemoti...
Cim        1.0.0.0    ServerManagerTasks                  {Get-SMCounterSample, Get-SMPerformanceCollector, Start-SMPerformanceCollector, Stop-SMPerformanceCollector...}
Manifest   2.0.0.0    SmbShare                            {Get-SmbShare, Remove-SmbShare, Set-SmbShare, Block-SmbShareAccess...}
Manifest   2.0.0.0    SmbWitness                          {Get-SmbWitnessClient, Move-SmbWitnessClient, gsmbw, msmbw...}
Manifest   2.0.0.0    SoftwareInventoryLogging            {Get-SilComputer, Get-SilComputerIdentity, Get-SilSoftware, Get-SilWindowsUpdate...}
Manifest   2.0.0.0    Storage                             {Add-InitiatorIdToMaskingSet, Add-PartitionAccessPath, Add-PhysicalDisk, Add-StorageFaultDomain...}
Manifest   1.0.0.0    StorageBusCache                     {Clear-StorageBusDisk, Disable-StorageBusCache, Disable-StorageBusDisk, Enable-StorageBusCache...}
Manifest   1.0.0.0    StorageQoS                          {Get-StorageQoSPolicy, Get-StorageQoSPolicyStore, Set-StorageQoSPolicyStore, Remove-StorageQoSPolicy...}
Manifest   2.0.0.0    TLS                                 {New-TlsSessionTicketKey, Enable-TlsSessionTicketKey, Disable-TlsSessionTicketKey, Export-TlsSessionTicketKey...
Manifest   2.0.0.0    TrustedPlatformModule               {Get-Tpm, Initialize-Tpm, Clear-Tpm, Unblock-Tpm...}
Manifest   1.0.0.0    UserAccessLogging                   {Enable-Ual, Disable-Ual, Get-Ual, Get-UalDns...}
Script     1.0.0.0    VMDirectStorage                     {Get-VMDirectVirtualDisk, Add-VMDirectVirtualDisk, Remove-VMDirectVirtualDisk, Initialize-Volume...}
Manifest   2.0.0.0    VpnClient                           {Add-VpnConnection, Set-VpnConnection, Remove-VpnConnection, Get-VpnConnection...}
Manifest   1.0.0.0    Wdac                                {Get-OdbcDriver, Set-OdbcDriver, Get-OdbcDsn, Add-OdbcDsn...}
Manifest   2.0.0.0    Whea                                {Get-WheaMemoryPolicy, Set-WheaMemoryPolicy}
Script     1.0        WindowsErrorReporting               {Enable-WindowsErrorReporting, Disable-WindowsErrorReporting, Get-WindowsErrorReporting}
Manifest   1.0.0.0    WindowsUpdate                       Get-WindowsUpdateLog

Debug output

PS C:\Users\xxxxxx> Get-AzResource -ResourceId /Subscriptions/__subscription_id__/resourceGroups/DinosCanaryRG/providers/Microsoft.AzureStackHCI/clusters/nwdgcl156/arcsettings/default -ApiVersion '2021-01-01-preview'
DEBUG: 2:37:07 PM - GetAzureResourceCmdlet begin processing with ParameterSet 'ByResourceId'.
DEBUG: 2:37:07 PM - using account id 'xxxx@xxxx.com'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'xxxx@xxxx.com', environment: 'AzureCanaryeastus2euap', tenant: '__tenant_id__'
DEBUG: 2:37:07 PM - [SilentAuthenticator] Calling SharedTokenCacheCredential.GetTokenAsync - TenantId:'__tenant_id__',
Scopes:'https://management.core.windows.net//.default', AuthorityHost:'https://login.microsoftonline.com/', UserId:'xxxx@xxxx.com'
DEBUG: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:
DEBUG: SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:  ExpiresOn:
2021-04-27T22:31:29.0000000+00:00
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: '__tenant_id__', UserId: 'xxxx@xxxx.com'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://eastus2euap.management.azure.com/subscriptions/__subscription_id__/providers/Microsoft.AzureStackHCI?api-version=2020-10-01

Headers:
x-ms-client-request-id        : 1f50166d-eb7b-4dd3-99a7-4504adef9722
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Pragma                        : no-cache
x-ms-ratelimit-remaining-subscription-reads: 11987
x-ms-request-id               : c232c585-9739-4dd9-9f61-1ab44a0ee0dd
x-ms-correlation-request-id   : c232c585-9739-4dd9-9f61-1ab44a0ee0dd
x-ms-routing-request-id       : EASTUS2EUAP:20210427T213707Z:c232c585-9739-4dd9-9f61-1ab44a0ee0dd
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Cache-Control                 : no-cache
Date                          : Tue, 27 Apr 2021 21:37:06 GMT

Body:
{
  "id": "/subscriptions/__subscription_id__/providers/Microsoft.AzureStackHCI",
  "namespace": "Microsoft.AzureStackHCI",
  "authorizations": [
    {
      "applicationId": "1412d89f-b8a8-4111-b4fd-e82905cbd85d",
      "roleDefinitionId": "90ffa33f-4875-44d8-b86f-d41c3aa6050e",
      "managedByRoleDefinitionId": "5ece1ad5-ab30-4099-b16c-3aa7c8f5acb9"
    },
    {
      "applicationId": "1322e676-dee7-41ee-a874-ac923822781c",
      "roleDefinitionId": "e91a9804-9f4d-4501-bf85-03bd4ea78451"
    },
    {
      "applicationId": "319f651f-7ddb-4fc6-9857-7aef9250bd05",
      "roleDefinitionId": "12580382-2aec-4b61-ae1c-ecbdb4a0a25f"
    }
  ],
  "resourceTypes": [
    {
      "resourceType": "clusters",
      "locations": [
        "East US",
        "West Europe",
        "Southeast Asia",
        "East US 2 EUAP"
      ],
      "apiVersions": [
        "2020-10-01"
      ],
      "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove, SupportsTags, SupportsLocation"
    },
    {
      "resourceType": "operations",
      "locations": [],
      "apiVersions": [
        "2021-01-01-preview",
        "2020-11-01-preview",
        "2020-10-01",
        "2020-03-01-preview"
      ],
      "capabilities": "None"
    },
    {
      "resourceType": "locations",
      "locations": [],
      "apiVersions": [
        "2020-11-01-preview",
        "2020-10-01"
      ],
      "capabilities": "None"
    },
    {
      "resourceType": "Locations/OperationStatuses",
      "locations": [
        "East US",
        "East US 2 EUAP",
        "West Europe",
        "Southeast Asia"
      ],
      "apiVersions": [
        "2020-10-01"
      ],
      "capabilities": "None"
    },
    {
      "resourceType": "galleryImages",
      "locations": [
        "East US 2 EUAP",
        "East US",
        "West Europe"
      ],
      "apiVersions": [
        "2020-11-01-preview"
      ],
      "capabilities": "SupportsTags, SupportsLocation"
    },
    {
      "resourceType": "networkInterfaces",
      "locations": [
        "East US 2 EUAP",
        "East US",
        "West Europe"
      ],
      "apiVersions": [
        "2020-11-01-preview"
      ],
      "capabilities": "SupportsTags, SupportsLocation"
    },
    {
      "resourceType": "virtualMachines",
      "locations": [
        "East US 2 EUAP",
        "East US",
        "West Europe"
      ],
      "apiVersions": [
        "2020-11-01-preview"
      ],
      "capabilities": "SupportsTags, SupportsLocation"
    },
    {
      "resourceType": "virtualNetworks",
      "locations": [
        "East US 2 EUAP",
        "East US",
        "West Europe"
      ],
      "apiVersions": [
        "2020-11-01-preview"
      ],
      "capabilities": "SupportsTags, SupportsLocation"
    },
    {
      "resourceType": "virtualHardDisks",
      "locations": [
        "East US 2 EUAP",
        "East US",
        "West Europe"
      ],
      "apiVersions": [
        "2020-11-01-preview"
      ],
      "capabilities": "SupportsTags, SupportsLocation"
    }
  ],
  "registrationState": "Registered",
  "registrationPolicy": "RegistrationRequired"
}

DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://eastus2euap.management.azure.com//Subscriptions/__subscription_id__/resourceGroups/DinosCanaryRG/providers/Microsoft.AzureStackHCI/clusters/nwdgc
l156/arcsettings/default?api-version=2020-10-01

Headers:
x-ms-client-request-id        : 1f50166d-eb7b-4dd3-99a7-4504adef9722
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
BadRequest

Headers:
Pragma                        : no-cache
x-ms-failure-cause            : gateway
x-ms-request-id               : c8bbfc50-a1b8-465a-ace8-604255d0cdda
x-ms-correlation-request-id   : c8bbfc50-a1b8-465a-ace8-604255d0cdda
x-ms-routing-request-id       : EASTUS2EUAP:20210427T213707Z:c8bbfc50-a1b8-465a-ace8-604255d0cdda
Strict-Transport-Security     : max-age=31536000; includeSubDomains
X-Content-Type-Options        : nosniff
Cache-Control                 : no-cache
Date                          : Tue, 27 Apr 2021 21:37:06 GMT

Body:
{
  "error": {
    "code": "NoRegisteredProviderFound",
    "message": "No registered resource provider found for location 'eastus2euap' and API version '2020-10-01' for type 'clusters/arcSettings'. The supported api-versions
are '2021-01-01-preview'. The supported locations are 'eastus2euap, eastus, westeurope, southeastasia'."
  }
}

Get-AzResource : No registered resource provider found for location 'eastus2euap' and API version '2020-10-01' for type 'clusters/arcSettings'. The supported
api-versions are '2021-01-01-preview'. The supported locations are 'eastus2euap, eastus, westeurope, southeastasia'.
StatusCode: 400
ReasonPhrase: Bad Request
OperationID : c8bbfc50-a1b8-465a-ace8-604255d0cdda
At line:1 char:1
+ Get-AzResource -ResourceId /Subscriptions/680d0dad-59aa-4464-adf3-b34 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-AzResource], ResourceManagerCloudException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.GetAzureResourceCmdlet

DEBUG: AzureQoSEvent: CommandName - Get-AzResource; IsSuccess - False; Duration - 00:00:00.6360788; Exception - No registered resource provider found for location
'eastus2euap' and API version '2020-10-01' for type 'clusters/arcSettings'. The supported api-versions are '2021-01-01-preview'. The supported locations are 'eastus2euap,
 eastus, westeurope, southeastasia'.
StatusCode: 400
ReasonPhrase: Bad Request
OperationID : c8bbfc50-a1b8-465a-ace8-604255d0cdda;
DEBUG: Finish sending metric.
DEBUG: 2:37:08 PM - GetAzureResourceCmdlet end processing.

Error output

PS C:\Users\xxxxx> Resolve-AzError
DEBUG: 2:41:07 PM - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'.
DEBUG: 2:41:07 PM - using account id 'digot@microsoft.com'...
WARNING: Upcoming breaking changes in the cmdlet 'Resolve-AzError' :
The `Resolve-Error` alias will be removed in a future release.  Please change any scripts that use this alias to use `Resolve-AzError` instead.
Note : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell.

   HistoryId: 67

RequestId      :
Message        : No registered resource provider found for location 'eastus2euap' and API version '2020-10-01' for type 'clusters/arcSettings'. The supported
                 api-versions are '2021-01-01-preview'. The supported locations are 'eastus2euap, eastus, westeurope, southeastasia'.
                 StatusCode: 400
                 ReasonPhrase: Bad Request
                 OperationID : c8bbfc50-a1b8-465a-ace8-604255d0cdda
ServerMessage  :
ServerResponse :
RequestMessage :
InvocationInfo : {Get-AzResource}
Line           : Get-AzResource -ResourceId /Subscriptions/680d0dad-59aa-4464-adf3-b34b2b427e8c/resourceGroups/DinosCanaryRG/providers/Microsoft.AzureStackHCI/clusters/nw
                 dgcl156/arcsettings/default -ApiVersion '2021-01-01-preview'
Position       : At line:1 char:1
                 + Get-AzResource -ResourceId /Subscriptions/680d0dad-59aa-4464-adf3-b34 ...
                 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
StackTrace     :    at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.HandleException(ExceptionDispatchInfo capturedException)
                    at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.ExecuteCmdlet()
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
HistoryId      : 67

   HistoryId: 64

RequestId      :
Message        : No registered resource provider found for location 'eastus2euap' and API version '2020-10-01' for type 'clusters/arcSettings'. The supported
                 api-versions are '2021-01-01-preview'. The supported locations are 'eastus2euap, eastus, westeurope, southeastasia'.
                 StatusCode: 400
                 ReasonPhrase: Bad Request
                 OperationID : 0db08d4c-3512-41ea-96a8-7bcf7abcc4c2
ServerMessage  :
ServerResponse :
RequestMessage :
InvocationInfo : {Get-AzResource}
Line           : Get-AzResource -ResourceId /Subscriptions/680d0dad-59aa-4464-adf3-b34b2b427e8c/resourceGroups/DinosCanaryRG/providers/Microsoft.AzureStackHCI/clusters/nw
                 dgcl156/arcsettings/default -ApiVersion '2021-01-01-preview'
Position       : At line:1 char:1
                 + Get-AzResource -ResourceId /Subscriptions/680d0dad-59aa-4464-adf3-b34 ...
                 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
StackTrace     :    at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.HandleException(ExceptionDispatchInfo capturedException)
                    at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.ExecuteCmdlet()
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
HistoryId      : 64

   HistoryId: 58

RequestId      :
Message        : No registered resource provider found for location 'eastus2euap' and API version '2020-10-01' for type 'clusters/arcSettings'. The supported
                 api-versions are '2021-01-01-preview'. The supported locations are 'eastus2euap, eastus, westeurope, southeastasia'.
                 StatusCode: 400
                 ReasonPhrase: Bad Request
                 OperationID : b3895112-09ec-4f3f-959e-0029cd1c6fb3
ServerMessage  :
ServerResponse :
RequestMessage :
InvocationInfo : {Get-AzResource}
Line           : Get-AzResource -ResourceId /Subscriptions/680d0dad-59aa-4464-adf3-b34b2b427e8c/resourceGroups/DinosCanaryRG/providers/Microsoft.AzureStackHCI/clusters/nw
                 dgcl156/arcsettings/default -ApiVersion '2021-01-01-preview'
Position       : At line:1 char:1
                 + Get-AzResource -ResourceId /Subscriptions/680d0dad-59aa-4464-adf3-b34 ...
                 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
StackTrace     :    at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.HandleException(ExceptionDispatchInfo capturedException)
                    at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.ExecuteCmdlet()
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
HistoryId      : 58

   HistoryId: -1

Message        : The property 'ResourceManagerUrl' cannot be found on this object. Verify that the property exists and can be set.
StackTrace     :    at CallSite.Target(Closure , CallSite , Object , String )
                    at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
                    at System.Management.Automation.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)
                    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Exception      : System.Management.Automation.RuntimeException
InvocationInfo : {}
Line           : $azEnv.ResourceManagerUrl = ('https://{0}.management.azure.com/' -f $Region)
Position       : At line:1 char:1
                 + $azEnv.ResourceManagerUrl = ('https://{0}.management.azure.com/' -f $ ...
                 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : -1

Message        : The property 'Name' cannot be found on this object. Verify that the property exists and can be set.
StackTrace     :    at CallSite.Target(Closure , CallSite , Object , String )
                    at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
                    at System.Management.Automation.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)
                    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Exception      : System.Management.Automation.RuntimeException
InvocationInfo : {}
Line           : $azEnv.Name = "AzureCanaryEastUS2EUAP"
Position       : At line:1 char:1
                 + $azEnv.Name = "AzureCanaryEastUS2EUAP"
                 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : -1

   HistoryId: 39

RequestId      : a4b6852d-9394-431a-bed8-638413331106
Message        : Principal 7de413324d634c419c1061935e9d19a1 does not exist in the directory c76bd4d1-bea3-45ea-be1b-4a745a675d07.
ServerMessage  : PrincipalNotFound: Principal 7de413324d634c419c1061935e9d19a1 does not exist in the directory c76bd4d1-bea3-45ea-be1b-4a745a675d07.
                 (System.Collections.Generic.List`1[Microsoft.Rest.Azure.CloudError])
ServerResponse : {BadRequest}
RequestMessage : {PUT https://eastus2euap.management.azure.com//subscriptions/680d0dad-59aa-4464-adf3-b34b2b427e8c/providers/Microsoft.Authorization/roleAssignments/ec815
                 99e-240b-45e5-bf69-3868cd6c4ccf?api-version=2020-04-01-preview}
InvocationInfo : {New-AzRoleAssignment}
Line           :             New-AzRoleAssignment -ObjectId $sp.ObjectId -RoleDefinitionName $AzureConnectedMachineOnboardingRole | Out-Null

Position       : At C:\Az.StackHCI.psm1:1140 char:13
                 +             New-AzRoleAssignment -ObjectId $sp.ObjectId -RoleDefiniti ...
                 +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
StackTrace     :    at Microsoft.Azure.Management.Authorization.RoleAssignmentsOperations.<CreateWithHttpMessagesAsync>d__8.MoveNext()
                 --- End of stack trace from previous location where exception was thrown ---
                    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
                    at Microsoft.Azure.Management.Authorization.RoleAssignmentsOperationsExtensions.<CreateAsync>d__7.MoveNext()
                 --- End of stack trace from previous location where exception was thrown ---
                    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
                    at Microsoft.Azure.Management.Authorization.RoleAssignmentsOperationsExtensions.Create(IRoleAssignmentsOperations operations, String scope, String
                 roleAssignmentName, RoleAssignmentCreateParameters parameters)
                    at Microsoft.Azure.Commands.Resources.Models.Authorization.AuthorizationClient.CreateRoleAssignment(FilterRoleAssignmentsOptions parameters, Guid
                 roleAssignmentId)
                    at Microsoft.Azure.Commands.Resources.NewAzureRoleAssignmentCommand.ExecuteCmdlet()
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
HistoryId      : 39

   HistoryId: 35

Message        : ResourceCreationValidateFailed : The resource validation failed.
                 CorrelationId: 00a404c2-09d4-4166-8d3e-9d8f3ab3fbf2
StackTrace     :    at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.HandleException(ExceptionDispatchInfo capturedException)
                    at Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.ResourceManagerCmdletBase.ExecuteCmdlet()
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception      : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Entities.ErrorResponses.ErrorResponseMessageException
InvocationInfo : {New-AzResource}
Line           :                 $arcres = New-AzResource -ResourceId $arcResourceId -ApiVersion $HCIArcAPIVersion -Force

Position       : At C:\Az.StackHCI.psm1:2227 char:27
                 + ...   $arcres = New-AzResource -ResourceId $arcResourceId -ApiVersion $HC ...
                 +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 35

   HistoryId: 30

Message        : The term 'C:\Program Files\AzureConnectedMachineAgent\azcmagent.exe' is not recognized as the name of a cmdlet, function, script file, or operable
                 program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
StackTrace     :    at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandTypes commandTypes, SearchResolutionOptions
                 searchResolutionOptions, CommandOrigin commandOrigin, ExecutionContext context)
                    at System.Management.Automation.CommandDiscovery.LookupCommandProcessor(String commandName, CommandOrigin commandOrigin, Nullable`1 useLocalScope)
                    at System.Management.Automation.ExecutionContext.CreateCommand(String command, Boolean dotSource)
                    at System.Management.Automation.PipelineOps.AddCommand(PipelineProcessor pipe, CommandParameterInternal[] commandElements, CommandBaseAst
                 commandBaseAst, CommandRedirection[] redirections, ExecutionContext context)
                    at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements,
                 CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)
                    at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
                    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Exception      : System.Management.Automation.CommandNotFoundException
InvocationInfo : {}
Line           : & 'C:\Program Files\AzureConnectedMachineAgent\azcmagent.exe' show --json
Position       : At line:1 char:3
                 + & 'C:\Program Files\AzureConnectedMachineAgent\azcmagent.exe' show -- ...
                 +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 30

   HistoryId: 28

Message        : The term 'C:\Program Files\AzureConnectedMachineAgent\azcmagent.exe' is not recognized as the name of a cmdlet, function, script file, or operable
                 program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
StackTrace     :    at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandTypes commandTypes, SearchResolutionOptions
                 searchResolutionOptions, CommandOrigin commandOrigin, ExecutionContext context)
                    at System.Management.Automation.CommandDiscovery.LookupCommandProcessor(String commandName, CommandOrigin commandOrigin, Nullable`1 useLocalScope)
                    at System.Management.Automation.ExecutionContext.CreateCommand(String command, Boolean dotSource)
                    at System.Management.Automation.PipelineOps.AddCommand(PipelineProcessor pipe, CommandParameterInternal[] commandElements, CommandBaseAst
                 commandBaseAst, CommandRedirection[] redirections, ExecutionContext context)
                    at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements,
                 CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)
                    at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
                    at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
Exception      : System.Management.Automation.CommandNotFoundException
InvocationInfo : {}
Line           : & 'C:\Program Files\AzureConnectedMachineAgent\azcmagent.exe' show --json
Position       : At line:1 char:3
                 + & 'C:\Program Files\AzureConnectedMachineAgent\azcmagent.exe' show -- ...
                 +   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 28

   HistoryId: 3

RequestId      : 787e7599-0c11-41e1-b522-caabffbef3c0
Message        : Principal d795cbff9e5749ea8a572ef2b449ba8e does not exist in the directory c76bd4d1-bea3-45ea-be1b-4a745a675d07.
ServerMessage  : PrincipalNotFound: Principal d795cbff9e5749ea8a572ef2b449ba8e does not exist in the directory c76bd4d1-bea3-45ea-be1b-4a745a675d07.
                 (System.Collections.Generic.List`1[Microsoft.Rest.Azure.CloudError])
ServerResponse : {BadRequest}
RequestMessage : {PUT https://eastus2euap.management.azure.com//subscriptions/680d0dad-59aa-4464-adf3-b34b2b427e8c/providers/Microsoft.Authorization/roleAssignments/428fa
                 185-88ec-4dae-93c9-13c5c3b9f7bf?api-version=2020-04-01-preview}
InvocationInfo : {New-AzRoleAssignment}
Line           :             New-AzRoleAssignment -ObjectId $sp.ObjectId -RoleDefinitionName $AzureConnectedMachineOnboardingRole | Out-Null

Position       : At C:\Az.StackHCI.psm1:1140 char:13
                 +             New-AzRoleAssignment -ObjectId $sp.ObjectId -RoleDefiniti ...
                 +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
StackTrace     :    at Microsoft.Azure.Management.Authorization.RoleAssignmentsOperations.<CreateWithHttpMessagesAsync>d__8.MoveNext()
                 --- End of stack trace from previous location where exception was thrown ---
                    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
                    at Microsoft.Azure.Management.Authorization.RoleAssignmentsOperationsExtensions.<CreateAsync>d__7.MoveNext()
                 --- End of stack trace from previous location where exception was thrown ---
                    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
                    at Microsoft.Azure.Management.Authorization.RoleAssignmentsOperationsExtensions.Create(IRoleAssignmentsOperations operations, String scope, String
                 roleAssignmentName, RoleAssignmentCreateParameters parameters)
                    at Microsoft.Azure.Commands.Resources.Models.Authorization.AuthorizationClient.CreateRoleAssignment(FilterRoleAssignmentsOptions parameters, Guid
                 roleAssignmentId)
                    at Microsoft.Azure.Commands.Resources.NewAzureRoleAssignmentCommand.ExecuteCmdlet()
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
HistoryId      : 3

RequestId      : 2ce0e9f1-3371-47a5-8e62-eed1d2702afd
Message        : Principal d795cbff9e5749ea8a572ef2b449ba8e does not exist in the directory c76bd4d1-bea3-45ea-be1b-4a745a675d07.
ServerMessage  : PrincipalNotFound: Principal d795cbff9e5749ea8a572ef2b449ba8e does not exist in the directory c76bd4d1-bea3-45ea-be1b-4a745a675d07.
                 (System.Collections.Generic.List`1[Microsoft.Rest.Azure.CloudError])
ServerResponse : {BadRequest}
RequestMessage : {PUT https://eastus2euap.management.azure.com//subscriptions/680d0dad-59aa-4464-adf3-b34b2b427e8c/providers/Microsoft.Authorization/roleAssignments/12d2e
                 b49-03aa-4d2b-86d5-a439cbfae825?api-version=2020-04-01-preview}
InvocationInfo : {New-AzRoleAssignment}
Line           :             New-AzRoleAssignment -ObjectId $sp.ObjectId -RoleDefinitionName $AzureConnectedMachineOnboardingRole | Out-Null

Position       : At C:\Az.StackHCI.psm1:1140 char:13
                 +             New-AzRoleAssignment -ObjectId $sp.ObjectId -RoleDefiniti ...
                 +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
StackTrace     :    at Microsoft.Azure.Management.Authorization.RoleAssignmentsOperations.<CreateWithHttpMessagesAsync>d__8.MoveNext()
                 --- End of stack trace from previous location where exception was thrown ---
                    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
                    at Microsoft.Azure.Management.Authorization.RoleAssignmentsOperationsExtensions.<CreateAsync>d__7.MoveNext()
                 --- End of stack trace from previous location where exception was thrown ---
                    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
                    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
                    at Microsoft.Azure.Management.Authorization.RoleAssignmentsOperationsExtensions.Create(IRoleAssignmentsOperations operations, String scope, String
                 roleAssignmentName, RoleAssignmentCreateParameters parameters)
                    at Microsoft.Azure.Commands.Resources.Models.Authorization.AuthorizationClient.CreateRoleAssignment(FilterRoleAssignmentsOptions parameters, Guid
                 roleAssignmentId)
                    at Microsoft.Azure.Commands.Resources.NewAzureRoleAssignmentCommand.ExecuteCmdlet()
                    at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
HistoryId      : 3

Message        : The specified module 'AzureAD' was not loaded because no valid module file was found in any module directory.
StackTrace     :
Exception      : System.IO.FileNotFoundException
InvocationInfo : {Import-Module}
Line           :         Import-Module -Name AzureAD -ErrorAction Stop

Position       : At C:\Az.StackHCI.psm1:799 char:9
                 +         Import-Module -Name AzureAD -ErrorAction Stop
                 +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 3

Message        : The specified module 'Az.Resources' was not loaded because no valid module file was found in any module directory.
StackTrace     :
Exception      : System.IO.FileNotFoundException
InvocationInfo : {Import-Module}
Line           :         Import-Module -Name Az.Resources -ErrorAction Stop

Position       : At C:\Az.StackHCI.psm1:778 char:9
                 +         Import-Module -Name Az.Resources -ErrorAction Stop
                 +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 3

Message        : No match was found for the specified search criteria and provider name 'Nuget'. Try 'Get-PackageProvider -ListAvailable' to see if the provider exists
                 on the system.
StackTrace     :
Exception      : System.Exception
InvocationInfo : {Import-PackageProvider}
Line           :             Import-PackageProvider -Name Nuget -MinimumVersion "2.8.5.201" -ErrorAction Stop

Position       : At C:\Az.StackHCI.psm1:1758 char:13
                 +             Import-PackageProvider -Name Nuget -MinimumVersion "2.8.5 ...
                 +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 3

   HistoryId: 1

Message        : Property NoAutoUpdate does not exist at path HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU.
StackTrace     :
Exception      : System.Management.Automation.PSArgumentException
InvocationInfo : {Get-ItemProperty}
Line           :         $NoAutoUpdateVal = Get-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoUpdate" -ErrorAction
                 SilentlyContinue

Position       : At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\Microsoft.ServerCore.SConfig\2.0.0.0\SConfig.Update.psm1:16 char:28
                 + ... UpdateVal = Get-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft ...
                 +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId      : 1

The Azure PowerShell team is listening, please let us know how we are doing: https://aka.ms/azpssurvey?Q_CHL=ERROR.

DEBUG: AzureQoSEvent: CommandName - Resolve-AzError; IsSuccess - True; Duration - 00:00:00.9171855
DEBUG: Finish sending metric.
DEBUG: 2:41:08 PM - ResolveError end processing.
dingmeng-xue commented 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"
    },
ghost commented 3 years ago

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!

digot007 commented 3 years ago

THe issue can be closed now. I see that RP is missing the api version.

dingmeng-xue commented 3 years ago

Thanks digot007.