Skip to content

Commit dfc6366

Browse files
authored
Merge pull request #47149 from daveba/fix-formatting
[Azure AD MSI] Fix formatting issues
2 parents f0e974b + 2d59650 commit dfc6366

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

articles/active-directory/managed-service-identity/qs-configure-powershell-windows-vm.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,12 @@ To assign a user assigned identity to an existing Azure VM:
153153

154154
2. Create a user assigned identity using the [New-AzureRmUserAssignedIdentity](/powershell/module/azurerm.managedserviceidentity/new-azurermuserassignedidentity) cmdlet. Note the `Id` in the output because you will need this in the next step.
155155

156-
> [!IMPORTANT]
157-
> Creating user assigned identities only supports alphanumeric and hyphen (0-9 or a-z or A-Z or -) characters. Additionally, name should be limited to 24 character length for the assignment to VM/VMSS to work properly. Check back for updates. For more information see [FAQs and known issues](known-issues.md)
156+
> [!IMPORTANT]
157+
> Creating user assigned identities only supports alphanumeric and hyphen (0-9 or a-z or A-Z or -) characters. Additionally, name should be limited to 24 character length for the assignment to VM/VMSS to work properly. Check back for updates. For more information see [FAQs and known issues](known-issues.md)
158158
159-
160-
```powershell
161-
New-AzureRmUserAssignedIdentity -ResourceGroupName <RESOURCEGROUP> -Name <USER ASSIGNED IDENTITY NAME>
162-
```
159+
```powershell
160+
New-AzureRmUserAssignedIdentity -ResourceGroupName <RESOURCEGROUP> -Name <USER ASSIGNED IDENTITY NAME>
161+
```
163162
3. Retrieve the VM properties using the `Get-AzureRmVM` cmdlet. Then to assign a user assigned identity to the Azure VM, use the `-IdentityType` and `-IdentityID` switch on the [Update-AzureRmVM](/powershell/module/azurerm.compute/update-azurermvm) cmdlet. The value for the`-IdentityId` parameter is the `Id` you noted in the previous step. Replace `<VM NAME>`, `<SUBSCRIPTION ID>`, `<RESROURCE GROUP>`, and `<USER ASSIGNED IDENTITY NAME>` with your own values.
164163

165164
```powershell

0 commit comments

Comments
 (0)