Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.11k stars 3.75k forks source link

Unable to enable System-Assign Managed Identity on VMSS #25378

Open dretta opened 5 days ago

dretta commented 5 days ago

Description

I am not able to enable the System-Assigned Managed Identity for Virtual Machine Scaling Sets. I have made a new VMSS (making me the owner of it thus having all permissions needed) and tried to enable the System-Assigned Managed Identity through the Portal and Azure PowerShell but both attempts fail.

This does not apply to the instances, individually enabling each VM still works.

f2815316-c818-4b6e-82ca-a7c247071df9 96d76102-e544-4338-be05-1b1689fc062f

Issue script & Debug output

PS C:\Users\danielretta> Update-AzVmss -ResourceGroupName myResourceGroup -Name myScaleSet -IdentityType "SystemAssigned"

Environment data

PS C:\Users\danielretta> $PSVersionTable

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

Module versions

PS C:\Users\danielretta> Get-Module Az*

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     3.0.0      Az.Accounts                         {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear...
Script     8.0.0      Az.Compute                          {Add-AzImageDataDisk, Add-AzVhd, Add-AzVMAdditionalUnatten...
Script     7.1.0      Az.Resources                        {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDeny...

Error output

Update-AzVmss : The value 'SystemAssigned' of parameter 'identity' is not allowed. Allowed values are: UserAssigned,
None.
ErrorCode: InvalidParameter
ErrorMessage: The value 'SystemAssigned' of parameter 'identity' is not allowed. Allowed values are: UserAssigned,
None.
ErrorTarget: identity
StatusCode: 400
ReasonPhrase:
OperationID : 39667a5d-5391-4680-aa57-e5c413a49de0
At line:1 char:1
+ Update-AzVmss -ResourceGroupName myResourceGroup -Name myScaleSet -Id ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Update-AzVmss], ComputeCloudException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.Automation.UpdateAzureRmVmss
isra-fel commented 4 days ago

Hi @dretta I'll loop in the developers of the Az.Compute module but if you are experiencing issues both on Azure Portal and with Azure PowerShell, it's recommended to contact Azure support for a quicker response.

microsoft-github-policy-service[bot] commented 4 days ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @TravisCragg-MSFT, @sandeepraichura.

microsoft-github-policy-service[bot] commented 4 days ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @TravisCragg-MSFT, @sandeepraichura.