Skip to content

Get-AzVM returns false when Identity.Type is SystemAssigned (type = ResourceIdentityType) #29191

@samgovier

Description

@samgovier

Description

When using Get-AzVM to get VM information, there are three possible non-null values that identity.type can have: "SystemAssigned", "UserAssigned", and "SystemAssignedUserAssigned" (or the other way around, I can't remember). I expect that this value $vm.Identity.Type would return true if it's any of these non-null values, but it returns false when it's only set to SystemAssigned.

Issue script & Debug output

PS>$win = Get-AzVM -Name SIESPSRG21 -ResourceGroupName rg-siesp-psjh-sg-dev-01-westus2
DEBUG: 11:54:34 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:54:34 AM - GetAzureVMCommand begin processing with ParameterSet 'DefaultParamSet'.
DEBUG: 11:54:34 AM - using account id 'email.redacted@providence.org'...
DEBUG: 11:54:34 AM - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [Az.Compute], Cmdlet = [Get-AzVM]. Returning default value [True].
DEBUG: [Common.Authentication]: Authenticating using Account: 'email.redacted@providence.org', environment: 'AzureCloud', tenant: '2e319086-9a26-46a3-865f-615bed576786'
DEBUG: 11:54:34 AM - [ConfigManager] Got nothing from [DisableInstanceDiscovery], Module = [], Cmdlet = []. Returning default value [False].
DEBUG: 11:54:34 AM - [ConfigManager] Got [False] from [EnableLoginByWam], Module = [], Cmdlet = [].
DEBUG: 11:54:34 AM - [SilentAuthenticator] Calling SharedTokenCacheCredential.GetTokenAsync - TenantId:'2e319086-9a26-46a3-865f-615bed576786', Scopes:'https://management.core.windows.net//.default', AuthorityHost:'https://login.microsoftonline.com/', UserId:'email.redacted@providence.org'
DEBUG: SharedTokenCacheCredential.GetToken invoked. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z] [Internal cache] Clearing user token cache accessor.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z] [Internal cache] Total number of cache partitions found while getting refresh tokens: 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - d507a49f-f947-4b2b-95be-d1e874a55bcb] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - d507a49f-f947-4b2b-95be-d1e874a55bcb] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - d507a49f-f947-4b2b-95be-d1e874a55bcb] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - d507a49f-f947-4b2b-95be-d1e874a55bcb] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - d507a49f-f947-4b2b-95be-d1e874a55bcb] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - d507a49f-f947-4b2b-95be-d1e874a55bcb] IsLegacyAdalCacheEnabled: yes
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z] Found 1 cache accounts and 0 broker accounts
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z] Returning 1 accounts
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - 007e83de-c993-4fad-a558-5e1eeef10133] MSAL MSAL.CoreCLR with assembly version '4.65.0.0'. CorrelationId(007e83de-c993-4fad-a558-5e1eeef10133)
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - 007e83de-c993-4fad-a558-5e1eeef10133] === AcquireTokenSilent Parameters ===
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - 007e83de-c993-4fad-a558-5e1eeef10133] LoginHint provided: False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - 007e83de-c993-4fad-a558-5e1eeef10133] Account provided: True
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - 007e83de-c993-4fad-a558-5e1eeef10133] ForceRefresh: False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - 007e83de-c993-4fad-a558-5e1eeef10133] 
=== Request Data ===
Authority Provided? - True
Scopes - https://management.core.windows.net//.default
Extra Query Params Keys (space separated) - 
ApiId - AcquireTokenSilent
IsConfidentialClient - False
SendX5C - False
LoginHint ? False
IsBrokerConfigured - False
HomeAccountId - False
CorrelationId - 007e83de-c993-4fad-a558-5e1eeef10133
UserAssertion set: False
LongRunningOboCacheKey set: False
Region configured:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - 007e83de-c993-4fad-a558-5e1eeef10133] === Token Acquisition (SilentRequest) started:
	 Scopes: https://management.core.windows.net//.default
	Authority Host: login.microsoftonline.com
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z] [Internal cache] Clearing user token cache accessor.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - 007e83de-c993-4fad-a558-5e1eeef10133] [Internal cache] Total number of cache partitions found while getting access tokens: 1
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - 007e83de-c993-4fad-a558-5e1eeef10133] [FindAccessTokenAsync] Discovered 3 access tokens in cache using partition key: e03b7c97-3b19-4444-bf3b-58ef513c0731.2e319086-9a26-46a3-865f-615bed576786
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - 007e83de-c993-4fad-a558-5e1eeef10133] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - 007e83de-c993-4fad-a558-5e1eeef10133] Access token is not expired. Returning the found cache entry. [Current time (02/20/2026 19:54:34) - Expiration Time (02/20/2026 21:19:03 +00:00) - Extended Expiration Time (02/20/2026 21:19:03 +00:00)]
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - 007e83de-c993-4fad-a558-5e1eeef10133] Returning access token found in cache. RefreshOn exists ? False
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - 007e83de-c993-4fad-a558-5e1eeef10133] [Region discovery] Not using a regional authority.
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - 007e83de-c993-4fad-a558-5e1eeef10133] 
	=== Token Acquisition finished successfully:
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - 007e83de-c993-4fad-a558-5e1eeef10133]  AT expiration time: 2/20/2026 9:19:03 PM +00:00, scopes: https://management.core.windows.net//.default https://management.core.windows.net//user_impersonation. source: Cache
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - 007e83de-c993-4fad-a558-5e1eeef10133] 
[LogMetricsFromAuthResult] Cache Refresh Reason: NotApplicable
[LogMetricsFromAuthResult] DurationInCacheInMs: 0
[LogMetricsFromAuthResult] DurationTotalInMs: 2
[LogMetricsFromAuthResult] DurationInHttpInMs: 0
DEBUG: False MSAL 4.65.0.0 MSAL.CoreCLR .NET 9.0.10 Microsoft Windows 10.0.22631 [2026-02-20 19:54:34Z - 007e83de-c993-4fad-a558-5e1eeef10133] TokenEndpoint: ****
DEBUG: SharedTokenCacheCredential.GetToken succeeded. Scopes: [ https://management.core.windows.net//.default ] ParentRequestId:  ExpiresOn: 2026-02-20T21:19:03.0000000+00:00
DEBUG: [Common.Authentication]: Received token with LoginType 'User', Tenant: '2e319086-9a26-46a3-865f-615bed576786', UserId: 'email.redacted@providence.org'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/3cf33413-45ac-4155-a866-b4b50a042305/resourceGroups/rg-siesp-psjh-sg-dev-01-westus2/providers/Microsoft.Compute/virtualMachines/SIESPSRG21?api-version=2025-04-01

Headers:
Accept-Language               : en-US
x-ms-client-request-id        : 1d0f90f8-74f2-4137-bd07-b4d3d0d70be7

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

Status Code:
OK

Headers:
Cache-Control                 : no-cache
Pragma                        : no-cache
ETag                          : "11"
x-ms-ratelimit-remaining-resource: Microsoft.Compute/LowCostGetSubscriptionMaximum;23981,Microsoft.Compute/LowCostGetResource;26
x-ms-need-to-refresh-epl-cache: False
Strict-Transport-Security     : max-age=31536000; includeSubDomains
x-ms-request-id               : 9298617c-914d-43ea-a840-b8d677dfe6c1
x-ms-ratelimit-remaining-subscription-reads: 249
x-ms-ratelimit-remaining-subscription-global-reads: 3749
x-ms-correlation-request-id   : 825f3733-3a79-4704-8fc7-a28dd37e71cc
x-ms-routing-request-id       : WESTUS2:20260220T195435Z:825f3733-3a79-4704-8fc7-a28dd37e71cc
X-Content-Type-Options        : nosniff
X-Cache                       : CONFIG_NOCACHE
X-MSEdge-Ref                  : Ref A: 25431A1253B642D6932B4D9A6E115DF3 Ref B: MWH011020808052 Ref C: 2026-02-20T19:54:34Z
Date                          : Fri, 20 Feb 2026 19:54:34 GMT

Body:
{
  "name": "SIESPSRG21",
  "id": "/subscriptions/3cf33413-45ac-4155-a866-b4b50a042305/resourceGroups/rg-siesp-psjh-sg-dev-01-westus2/providers/Microsoft.Compute/virtualMachines/SIESPSRG21",
  "type": "Microsoft.Compute/virtualMachines",
  "location": "westus2",
  "tags": {
    "ansibleRole": "default",
    "ansibledsc": "dscenabled",
    "appFamily": "SIE Server Provisioning Automation",
    "applicationCI": "Service Integration Engineering Server Provisioning Automation",
    "applicationID": "APM0013420",
    "backupType": "azure",
    "creator": "email.redacted@providence.org",
    "deployedBy": "ProvStudio",
    "domain": "ad.providence.org",
    "maintenanceDay": "SU",
    "maintenanceStatus": "inactive",
    "maintenanceTime": "0001-0400",
    "maintenanceWindow": "SU-0001-0400-PT",
    "moduleOwner": "email.redacted@providence.org",
    "securityPatching": "AU-NOX-1-SU-0001-0400",
    "supportGroup": "Service Integration Engineering"
  },
  "identity": {
    "type": "SystemAssigned",
    "principalId": "14523122-2fd1-4b22-86cc-6dc2ce796604",
    "tenantId": "2e319086-9a26-46a3-865f-615bed576786"
  },
  "properties": {
    "hardwareProfile": {
      "vmSize": "Standard_D2ads_v5"
    },
    "provisioningState": "Succeeded",
    "vmId": "937af882-83e2-4e80-9bc8-4033a0ab97bd",
    "storageProfile": {
      "imageReference": {
        "id": "/subscriptions/ef277f44-e50b-46ea-9e84-85a98719b140/resourceGroups/rg-prod-serverimage-gallery/providers/Microsoft.Compute/galleries/prod_serverimage_gallery/images/sie_win25dc_g2",
        "exactVersion": "2026.0213.0708"
      },
      "osDisk": {
        "osType": "Windows",
        "name": "SIESPSRG21-osdisk",
        "createOption": "FromImage",
        "caching": "ReadWrite",
        "writeAcceleratorEnabled": false,
        "managedDisk": {
          "storageAccountType": "StandardSSD_LRS",
          "id": "/subscriptions/3cf33413-45ac-4155-a866-b4b50a042305/resourceGroups/rg-siesp-psjh-sg-dev-01-westus2/providers/Microsoft.Compute/disks/SIESPSRG21-osdisk"
        },
        "deleteOption": "Detach",
        "diskSizeGB": 127
      },
      "dataDisks": [
        {
          "lun": 0,
          "name": "SIESPSRG21_disk00_d",
          "createOption": "Attach",
          "caching": "ReadWrite",
          "writeAcceleratorEnabled": false,
          "managedDisk": {
            "storageAccountType": "StandardSSD_LRS",
            "id": "/subscriptions/3cf33413-45ac-4155-a866-b4b50a042305/resourceGroups/rg-siesp-psjh-sg-dev-01-westus2/providers/Microsoft.Compute/disks/SIESPSRG21_disk00_d"
          },
          "deleteOption": "Detach",
          "diskSizeGB": 32,
          "toBeDetached": false
        }
      ],
      "diskControllerType": "SCSI"
    },
    "osProfile": {
      "computerName": "SIESPSRG21",
      "adminUsername": "TftempAdmin",
      "windowsConfiguration": {
        "provisionVMAgent": true,
        "enableAutomaticUpdates": true,
        "patchSettings": {
          "patchMode": "AutomaticByOS",
          "assessmentMode": "ImageDefault",
          "enableHotpatching": false
        },
        "timeZone": "Pacific Standard Time",
        "winRM": {
          "listeners": []
        },
        "additionalUnattendContent": [
          {
            "passName": "OobeSystem",
            "componentName": "Microsoft-Windows-Shell-Setup",
            "settingName": "AutoLogon"
          },
          {
            "passName": "OobeSystem",
            "componentName": "Microsoft-Windows-Shell-Setup",
            "settingName": "FirstLogonCommands"
          }
        ],
        "enableVMAgentPlatformUpdates": true
      },
      "secrets": [],
      "allowExtensionOperations": true,
      "requireGuestProvisionSignal": true
    },
    "securityProfile": {
      "uefiSettings": {
        "secureBootEnabled": true,
        "vTpmEnabled": true
      },
      "encryptionAtHost": true,
      "securityType": "TrustedLaunch"
    },
    "networkProfile": {
      "networkInterfaces": [
        {
          "id": "/subscriptions/3cf33413-45ac-4155-a866-b4b50a042305/resourceGroups/rg-siesp-psjh-sg-dev-01-westus2/providers/Microsoft.Network/networkInterfaces/SIESPSRG21-nic",
          "properties": {
            "primary": true
          }
        }
      ]
    },
    "diagnosticsProfile": {
      "bootDiagnostics": {
        "enabled": true
      }
    },
    "licenseType": "Windows_Server",
    "priority": "Regular",
    "extensionsTimeBudget": "PT1H30M",
    "timeCreated": "2026-02-16T15:45:57.8457633-08:00"
  },
  "etag": "\"11\"",
  "zones": [
    "2"
  ],
  "resources": [
    {
      "name": "AzureMonitorWindowsAgent",
      "id": "/subscriptions/3cf33413-45ac-4155-a866-b4b50a042305/resourceGroups/rg-siesp-psjh-sg-dev-01-westus2/providers/Microsoft.Compute/virtualMachines/SIESPSRG21/extensions/AzureMonitorWindowsAgent",
      "type": "Microsoft.Compute/virtualMachines/extensions",
      "location": "westus2",
      "tags": {
        "appFamily": "SIE Server Provisioning Automation",
        "applicationCI": "Service Integration Engineering Server Provisioning Automation",
        "applicationID": "APM0013420",
        "supportGroup": "Service Integration Engineering"
      },
      "properties": {
        "autoUpgradeMinorVersion": true,
        "provisioningState": "Succeeded",
        "enableAutomaticUpgrade": true,
        "publisher": "Microsoft.Azure.Monitor",
        "type": "AzureMonitorWindowsAgent",
        "typeHandlerVersion": "1.2",
        "settings": {
          "authentication": {
            "managedIdentity": {
              "identifier-name": "mi_res_id",
              "identifier-value": "/subscriptions/294874c1-88ab-4979-b17a-38c3a00d7fad/resourceGroups/mpaas-core-prod/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mi-userassigned-mpaas-ama"
            }
          }
        }
      }
    },
    {
      "name": "ChangeTracking-Windows",
      "id": "/subscriptions/3cf33413-45ac-4155-a866-b4b50a042305/resourceGroups/rg-siesp-psjh-sg-dev-01-westus2/providers/Microsoft.Compute/virtualMachines/SIESPSRG21/extensions/ChangeTracking-Windows",
      "type": "Microsoft.Compute/virtualMachines/extensions",
      "location": "westus2",
      "tags": {
        "appFamily": "SIE Server Provisioning Automation",
        "applicationCI": "Service Integration Engineering Server Provisioning Automation",
        "applicationID": "APM0013420",
        "supportGroup": "Service Integration Engineering"
      },
      "properties": {
        "autoUpgradeMinorVersion": true,
        "provisioningState": "Succeeded",
        "enableAutomaticUpgrade": true,
        "publisher": "Microsoft.Azure.ChangeTrackingAndInventory",
        "type": "ChangeTracking-Windows",
        "typeHandlerVersion": "2.0",
        "settings": {}
      }
    }
  ]
}
DEBUG: 11:54:35 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:54:35 AM - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:54:35 AM - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:54:35 AM - No authentication telemetry is found for the current cmdlet with Id 1d0f90f8-74f2-4137-bd07-b4d3d0d70be7.
DEBUG: AzureQoSEvent:  Module: Az.Compute:11.3.0; CommandName: Get-AzVM; PSVersion: 7.5.4; IsSuccess: True; Duration: 00:00:00.1580931; SanitizeDuration: 00:00:00.0000290
DEBUG: 11:54:35 AM - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:54:35 AM - GetAzureVMCommand end processing.
�]633;D;0��]633;A��]633;P;Cwd=C:\x5cUsers\x5csam.govier\x5cSource\x5cTools-SIE\x5cPowerShell�PS C:\Users\sam.govier\Source\Tools-SIE\PowerShell> �]633;B�
PS>$global:__psEditorServices_userInput = $args[0]
PS>$global:__psEditorServices_userInput = ""
PS>$win.Identity

PrincipalId                          TenantId                                       Type UserAssignedIdentities
-----------                          --------                                       ---- ----------------------
14523122-2fd1-4b22-86cc-6dc2ce796604 2e319086-9a26-46a3-865f-615bed576786 SystemAssigned

�]633;D;0��]633;A��]633;P;Cwd=C:\x5cUsers\x5csam.govier\x5cSource\x5cTools-SIE\x5cPowerShell�PS C:\Users\sam.govier\Source\Tools-SIE\PowerShell> �]633;B�
PS>$global:__psEditorServices_userInput = $args[0]
PS>$global:__psEditorServices_userInput = ""
PS>$win.Identity.Type
SystemAssigned
�]633;D;0��]633;A��]633;P;Cwd=C:\x5cUsers\x5csam.govier\x5cSource\x5cTools-SIE\x5cPowerShell�PS C:\Users\sam.govier\Source\Tools-SIE\PowerShell> �]633;B�
PS>$global:__psEditorServices_userInput = $args[0]
PS>$global:__psEditorServices_userInput = ""
PS>$win.Identity.Type.GetType()

IsPublic IsSerial Name                                     BaseType
-------- -------- ----                                     --------
True     True     ResourceIdentityType                     System.Enum

�]633;D;0��]633;A��]633;P;Cwd=C:\x5cUsers\x5csam.govier\x5cSource\x5cTools-SIE\x5cPowerShell�PS C:\Users\sam.govier\Source\Tools-SIE\PowerShell> �]633;B�
PS>$global:__psEditorServices_userInput = $args[0]
PS>$global:__psEditorServices_userInput = ""
PS>[bool]$win.Identity.Type
False
�]633;D;0��]633;A��]633;P;Cwd=C:\x5cUsers\x5csam.govier\x5cSource\x5cTools-SIE\x5cPowerShell�PS C:\Users\sam.govier\Source\Tools-SIE\PowerShell> �]633;B�
PS>$global:__psEditorServices_userInput = $args[0]
PS>$global:__psEditorServices_userInput = ""
PS>Stop-Transcript

Environment data

Name                           Value
----                           -----
PSVersion                      7.5.4
PSEdition                      Core
GitCommitId                    7.5.4
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

ModuleType Version    PreRelease Name                                ExportedCommands
---------- -------    ---------- ----                                ----------------
Script     5.3.2                 Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault…}
Script     11.3.0                Az.Compute                          {Add-AzGalleryInVMAccessControlProfileVersionRulesIdentity, Add-AzGalleryInVMAccessControlProfileVersionRulesPrivilege, Add-AzGalleryInVMAccessControlProfile… 
Script     7.11.1                Az.RecoveryServices                 {Add-AzRecoveryServicesAsrReplicationProtectedItemDisk, Backup-AzRecoveryServicesBackupItem, Copy-AzRecoveryServicesVault, Disable-AzRecoveryServicesBackupAu… 
Script     9.0.1                 Az.Resources                        {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment…}

Error output

# These errors are from earlier work so shouldn't be applicable.

DEBUG: 11:58:56 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].

   HistoryId: 13

Message        : A parameter cannot be found that matches parameter name 'MemberObjectId'.
StackTrace     :    at System.Management.Automation.CmdletParameterBinderController.VerifyArgumentsProcessed(ParameterBindingException originalBindingException)
                    at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParametersNoValidation(Collection`1 arguments)
                    at System.Management.Automation.CmdletParameterBinderController.BindCommandLineParameters(Collection`1 arguments)
                    at System.Management.Automation.CommandProcessor.BindCommandLineParameters()
                    at System.Management.Automation.CommandProcessor.Prepare(IDictionary psDefaultParameterValues)
                    at System.Management.Automation.CommandProcessorBase.DoPrepare(IDictionary psDefaultParameterValues)
                    at System.Management.Automation.Internal.PipelineProcessor.Start(Boolean incomingStream)
                    at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)
                 --- End of stack trace from previous location ---
                    at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input)
                    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.ParameterBindingException
InvocationInfo : {Get-AzADGroup}
Line           : Get-AzADGroup -MemberObjectId (Get-AzADUser -SignedIn).Id
Position       : At line:1 char:15
                 + Get-AzADGroup -MemberObjectId (Get-AzADUser -SignedIn).Id
                 +               ~~~~~~~~~~~~~~~
HistoryId      : 13

DEBUG: 11:58:56 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].

   HistoryId: 5

Message        : An error occurred stopping transcription: The host is not currently transcribing.
StackTrace     :    at Microsoft.PowerShell.Commands.StopTranscriptCommand.BeginProcessing()
                    at System.Management.Automation.Cmdlet.DoBeginProcessing()
                    at System.Management.Automation.CommandProcessorBase.DoBegin()
Exception      : System.Management.Automation.PSInvalidOperationException
InvocationInfo : {Stop-Transcript}
Line           : Stop-Transcript
Position       : At line:1 char:1
                 + Stop-Transcript
                 + ~~~~~~~~~~~~~~~
HistoryId      : 5

DEBUG: 11:58:56 AM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message        : The host is not currently transcribing.
StackTrace     :    at System.Management.Automation.Host.PSHostUserInterface.StopTranscribing()
                    at Microsoft.PowerShell.Commands.StopTranscriptCommand.BeginProcessing()
Exception      : System.Management.Automation.PSInvalidOperationException
InvocationInfo : {Stop-Transcript}
Line           : Stop-Transcript
Position       : At line:1 char:1
                 + Stop-Transcript
                 + ~~~~~~~~~~~~~~~
HistoryId      : 5



DEBUG: 11:58:56 AM - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:58:56 AM - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:58:56 AM - No authentication telemetry is found for the current cmdlet with Id 6b688f2b-56b6-41e7-b20e-b56d8c7f062d.
DEBUG: AzureQoSEvent:  Module: Az.Accounts:5.3.2; CommandName: Resolve-AzError; PSVersion: 7.5.4; IsSuccess: True; Duration: 00:00:00.0624485; SanitizeDuration: 00:00:00.0010843
DEBUG: 11:58:56 AM - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 11:58:57 AM - ResolveError end processing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Compute - VMService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reported

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions