Message: The value 'SystemAssigned, UserAssigned' of parameter 'identity' is not allowed. Allowed values are: UserAssigned, None.

Anthony Pirolli 20 Reputation points Microsoft Employee
2025-08-11T15:24:43.2033333+00:00

Message: The value 'SystemAssigned, UserAssigned' of parameter 'identity' is not allowed. Allowed values are: UserAssigned, None.

I am unable to enabled SystemAssigned Identity on my VMSS even though the API version I am using says this is an allowed parameter.

https://free.blessedness.top/en-us/azure/templates/microsoft.compute/2024-11-01/virtualmachinescalesets?pivots=deployment-language-bicep#virtualmachinescalesetidentity

Can I have some assistance on why this is the case?

The end goal is to deploy EntraID extension to login to our Linux type VMSS.

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
{count} votes

Answer accepted by question author
  1. Durga Reshma Malthi 11,590 Reputation points Microsoft External Staff Moderator
    2025-08-11T16:42:59.8933333+00:00

    Hi Anthony Pirolli

    If you are using a bicep template, ensure that the identity block must be structured correctly to support both identity types.

    identity: {
      type: 'SystemAssigned, UserAssigned'
      userAssignedIdentities: {
        '/subscriptions/<sub-id>/resourceGroups/<rg-name>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<identity-name>': {}
      }
    }
    

    And as per this GitHub document - https://github.com/Azure/bicep-registry-modules/issues/2671, it was mentioned that you cannot use a system-assigned identity with orchestrationMode: 'Flexible' but must use Uniform.

    Additional References:

    https://stackoverflow.com/questions/70165163/assigning-user-assigned-identity-to-azure-vmss-fails

    Hope this helps!

    Please Let me know if you have any queries.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Durga Reshma Malthi 11,590 Reputation points Microsoft External Staff Moderator
    2025-08-12T10:05:12.6366667+00:00

    Hi Anthony Pirolli

    As per this GitHub document - https://github.com/Azure/bicep-registry-modules/issues/2671, it was mentioned that you cannot use a system-assigned identity with orchestrationMode: 'Flexible' but must use Uniform.

    Flexible orchestration does not support System Assigned at the VMSS resource itself , the identity has to be enabled per VM instance.

    • Uniform orchestration - Identity is managed at the scale set level.
    • Flexible orchestration - Identity must be managed per VM instance.

    But Bicep or ARM templates cannot assign System Assigned identity to individual VMSS instances during initial deployment in Flexible mode. You’ll need to use CLI, PowerShell, or REST API post-deployment.

    However, you can try this bicep template - https://free.blessedness.top/en-us/azure/templates/microsoft.compute/virtualmachinescalesets?pivots=deployment-language-bicep, but ensure you might configure the identity.

    resource vmss 'Microsoft.Compute/virtualMachineScaleSets@2021-03-01' = {
      name: 'myVMSS'
      location: resourceGroup().location
      sku: {
        name: 'Standard_DS1_v2'
        tier: 'Standard'
        capacity: 2
      }
      properties: {
        virtualMachineProfile: {
          identity: {
            type: 'SystemAssigned'
          }
          // Other VMSS properties
        }
      }
    }
    

    Additional References:

    https://free.blessedness.top/en-us/entra/identity/managed-identities-azure-resources/how-to-configure-managed-identities?pivots=qs-configure-portal-windows-vm

    https://free.blessedness.top/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-orchestration-modes

    Hope this helps!

    Please Let me know if you have any queries.

    0 comments No comments

  2. Anthony Pirolli 20 Reputation points Microsoft Employee
    2025-08-13T15:20:49.7966667+00:00

    Hello @Durga Reshma Malthi , I will have to give this a try. Thank you and I will let you know if this works!


  3. Anthony Pirolli 20 Reputation points Microsoft Employee
    2025-08-14T12:56:18.4733333+00:00

    Hello @Durga Reshma Malthi , this does not work as the API provided does not allow this to be a thing. At this point is just looks like it will have to be manually enabled. Definitely something that I think should be changed.

                            InnerError: 
                                Code: BadRequest
                                Message: Could not find member 'identity' on object of type 'VirtualMachineProfile'. Path 'properties.virtualMachineProfile.identity', line 1, position 1313.
                                Target: vmss.properties.virtualMachineProfile.identity
    

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.