Skip to content

Commit 7523a00

Browse files
committed
fix formatting
1 parent 9954ce2 commit 7523a00

File tree

2 files changed

+39
-39
lines changed

2 files changed

+39
-39
lines changed

articles/active-directory/managed-service-identity/msi-tutorial-linux-vm-access-arm.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -69,29 +69,29 @@ For this tutorial, you first create a new Linux VM. You can also opt to use an e
6969
7070
2. Create a user-assigned identity using [az identity create](/cli/azure/identity#az_identity_create). The `-g` parameter specifies the resource group where the MSI is created, and the `-n` parameter specifies its name. Be sure to replace the `<RESOURCE GROUP>` and `<MSI NAME>` parameter values with your own values:
7171
72-
[!INCLUDE[ua-character-limit](~/includes/managed-identity-ua-character-limits.md)]
72+
[!INCLUDE[ua-character-limit](~/includes/managed-identity-ua-character-limits.md)]
7373
7474
75-
```azurecli-interactive
76-
az identity create -g <RESOURCE GROUP> -n <MSI NAME>
77-
```
75+
```azurecli-interactive
76+
az identity create -g <RESOURCE GROUP> -n <MSI NAME>
77+
```
7878

79-
The response contains details for the user assigned identity created, similar to the following example. Note the `id` value for your user assigned identity, as it will be used in the next step:
79+
The response contains details for the user assigned identity created, similar to the following example. Note the `id` value for your user assigned identity, as it will be used in the next step:
8080

81-
```json
82-
{
83-
"clientId": "73444643-8088-4d70-9532-c3a0fdc190fz",
84-
"clientSecretUrl": "https://control-westcentralus.identity.azure.net/subscriptions/<SUBSCRIPTON ID>/resourcegroups/<RESOURCE GROUP>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<MSI NAME>/credentials?tid=5678&oid=9012&aid=12344643-8088-4d70-9532-c3a0fdc190fz",
85-
"id": "/subscriptions/<SUBSCRIPTON ID>/resourcegroups/<RESOURCE GROUP>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<MSI NAME>",
86-
"location": "westcentralus",
87-
"name": "<MSI NAME>",
88-
"principalId": "9012",
89-
"resourceGroup": "<RESOURCE GROUP>",
90-
"tags": {},
91-
"tenantId": "733a8f0e-ec41-4e69-8ad8-971fc4b533bl",
92-
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
93-
}
94-
```
81+
```json
82+
{
83+
"clientId": "73444643-8088-4d70-9532-c3a0fdc190fz",
84+
"clientSecretUrl": "https://control-westcentralus.identity.azure.net/subscriptions/<SUBSCRIPTON ID>/resourcegroups/<RESOURCE GROUP>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<MSI NAME>/credentials?tid=5678&oid=9012&aid=12344643-8088-4d70-9532-c3a0fdc190fz",
85+
"id": "/subscriptions/<SUBSCRIPTON ID>/resourcegroups/<RESOURCE GROUP>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<MSI NAME>",
86+
"location": "westcentralus",
87+
"name": "<MSI NAME>",
88+
"principalId": "9012",
89+
"resourceGroup": "<RESOURCE GROUP>",
90+
"tags": {},
91+
"tenantId": "733a8f0e-ec41-4e69-8ad8-971fc4b533bl",
92+
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
93+
}
94+
```
9595

9696
## Assign a user assigned identity to your Linux VM
9797

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -116,31 +116,31 @@ This section walks you through creation of a VM with assignment of a user assign
116116
[!INCLUDE[ua-character-limit](~/includes/managed-identity-ua-character-limits.md)]
117117

118118

119-
```azurecli-interactive
120-
az identity create -g myResourceGroup -n myUserAssignedIdentity
121-
```
119+
```azurecli-interactive
120+
az identity create -g myResourceGroup -n myUserAssignedIdentity
121+
```
122122
The response contains details for the user assigned identity created, similar to the following. The resource id value assigned to the user assigned identity is used in the following step.
123123

124-
```json
125-
{
126-
"clientId": "73444643-8088-4d70-9532-c3a0fdc190fz",
127-
"clientSecretUrl": "https://control-westcentralus.identity.azure.net/subscriptions/<SUBSCRIPTON ID>/resourcegroups/<RESOURCE GROUP>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<MSI NAME>/credentials?tid=5678&oid=9012&aid=73444643-8088-4d70-9532-c3a0fdc190fz",
128-
"id": "/subscriptions/<SUBSCRIPTON ID>/resourcegroups/<RESOURCE GROUP>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<MSI NAME>",
129-
"location": "westcentralus",
130-
"name": "<MSI NAME>",
131-
"principalId": "e5fdfdc1-ed84-4d48-8551-fe9fb9dedfll",
132-
"resourceGroup": "<RESOURCE GROUP>",
133-
"tags": {},
134-
"tenantId": "733a8f0e-ec41-4e69-8ad8-971fc4b533bl",
135-
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
136-
}
137-
```
124+
```json
125+
{
126+
"clientId": "73444643-8088-4d70-9532-c3a0fdc190fz",
127+
"clientSecretUrl": "https://control-westcentralus.identity.azure.net/subscriptions/<SUBSCRIPTON ID>/resourcegroups/<RESOURCE GROUP>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<MSI NAME>/credentials?tid=5678&oid=9012&aid=73444643-8088-4d70-9532-c3a0fdc190fz",
128+
"id": "/subscriptions/<SUBSCRIPTON ID>/resourcegroups/<RESOURCE GROUP>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<MSI NAME>",
129+
"location": "westcentralus",
130+
"name": "<MSI NAME>",
131+
"principalId": "e5fdfdc1-ed84-4d48-8551-fe9fb9dedfll",
132+
"resourceGroup": "<RESOURCE GROUP>",
133+
"tags": {},
134+
"tenantId": "733a8f0e-ec41-4e69-8ad8-971fc4b533bl",
135+
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
136+
}
137+
```
138138

139139
3. Create a VM using [az vm create](/cli/azure/vm/#az_vm_create). The following example creates a VM associated with the new user assigned identity, as specified by the `--assign-identity` parameter. Be sure to replace the `<RESOURCE GROUP>`, `<VM NAME>`, `<USER NAME>`, `<PASSWORD>`, and `<MSI ID>` parameter values with your own values. For `<MSI ID>`, use the user assigned identity's resource `id` property created in the previous step:
140140

141-
```azurecli-interactive
142-
az vm create --resource-group <RESOURCE GROUP> --name <VM NAME> --image UbuntuLTS --admin-username <USER NAME> --admin-password <PASSWORD> --assign-identity <MSI ID>
143-
```
141+
```azurecli-interactive
142+
az vm create --resource-group <RESOURCE GROUP> --name <VM NAME> --image UbuntuLTS --admin-username <USER NAME> --admin-password <PASSWORD> --assign-identity <MSI ID>
143+
```
144144

145145
### Assign a user assigned identity to an existing Azure VM
146146

0 commit comments

Comments
 (0)