@@ -5,7 +5,7 @@ author: EdB-MSFT
5
5
ms.author : edbaynash
6
6
ms.topic : conceptual
7
7
ms.custom : devx-track-azurecli
8
- ms.date : 07/28 /2024
8
+ ms.date : 08/07 /2024
9
9
# customer intent: As an azure administrator, I want to send Prometheus metrics from my self-managed Prometheus instance to an Azure Monitor workspace.
10
10
---
11
11
@@ -203,15 +203,15 @@ Note the value of the `clientId` of the managed identity that you create. This I
203
203
204
204
```azurecli
205
205
{
206
- "clientId": "abcdef01-a123-b456-d789-0123abc345de ",
207
- "id": "/subscriptions/12345678-abcd-1234-abcd-1234567890ab /resourcegroups/rg-001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/PromRemoteWriteIdentity",
206
+ "clientId": "00001111-aaaa-2222-bbbb-3333cccc4444 ",
207
+ "id": "/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e /resourcegroups/rg-001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/PromRemoteWriteIdentity",
208
208
"location": "eastus",
209
209
"name": "PromRemoteWriteIdentity",
210
- "principalId": "98765432-0123-abcd-9876-1a2b3c4d5e6f ",
210
+ "principalId": "aaaaaaaa-bbbb-cccc-1111-222222222222 ",
211
211
"resourceGroup": "rg-001",
212
212
"systemData": null,
213
213
"tags": {},
214
- "tenantId": "ffff1234-aa01-02bb-03cc-0f9e8d7c6b5a ",
214
+ "tenantId": "ffff5f5f-aa6a-bb7b-cc8c-dddddd9d9d9d ",
215
215
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
216
216
}
217
217
```
@@ -229,8 +229,8 @@ Note the value of the `clientId` of the managed identity that you create. This I
229
229
```azurecli
230
230
az role assignment create \
231
231
--role "Monitoring Metrics Publisher" \
232
- --assignee abcdef01-a123-b456-d789-0123abc345de \
233
- --scope /subscriptions/12345678-abcd-1234-abcd-1234567890ab /resourceGroups/MA_amw-001_eastus_managed/providers/Microsoft.Insights/dataCollectionRules/amw-001
232
+ --assignee 00001111-aaaa-2222-bbbb-3333cccc4444 \
233
+ --scope /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e /resourceGroups/MA_amw-001_eastus_managed/providers/Microsoft.Insights/dataCollectionRules/amw-001
234
234
```
235
235
236
236
1. Assign the managed identity to a Virtual Machine or Virtual Machine Scale Set.
@@ -258,7 +258,7 @@ Note the value of the `clientId` of the managed identity that you create. This I
258
258
az vm identity assign \
259
259
-g rg-prom-on-vm \
260
260
-n win-vm-prom \
261
- --identities /subscriptions/12345678-abcd-1234-abcd-1234567890ab /resourcegroups/rg-001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/PromRemoteWriteIdentity
261
+ --identities /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e /resourcegroups/rg-001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/PromRemoteWriteIdentity
262
262
```
263
263
For more information, see [az identity create](/cli/azure/identity#az-identity-create) and [az role assignment create](/cli/azure/role/assignment#az-role-assignment-create).
264
264
@@ -275,15 +275,15 @@ For example,
275
275
az ad sp create-for-rbac \
276
276
--name PromRemoteWriteApp \
277
277
--role "Monitoring Metrics Publisher" \
278
- --scopes /subscriptions/abcdef00-1234-5678-abcd-1234567890ab /resourceGroups/MA_amw-001_eastus_managed/providers/Microsoft.nsights/dataCollectionRules/amw-001
278
+ --scopes /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e /resourceGroups/MA_amw-001_eastus_managed/providers/Microsoft.nsights/dataCollectionRules/amw-001
279
279
```
280
280
The following is an example of the output displayed:
281
281
``` azurecli
282
282
{
283
- "appId": "01234567-abcd-ef01-2345-67890abcdef0 ",
283
+ "appId": "66667777-aaaa-8888-bbbb-9999cccc0000 ",
284
284
"displayName": "PromRemoteWriteApp",
285
- "password": "AbCDefgh1234578~zxcv.09875dslkhjKLHJHLKJ ",
286
- "tenant": "abcdef00-1234-5687-abcd-1234567890ab "
285
+ "password": "Aa1Bb~2Cc3.-Dd4Ee5Ff6Gg7Hh8Ii9_Jj0Kk1Ll2 ",
286
+ "tenant": "ffff5f5f-aa6a-bb7b-cc8c-dddddd9d9d9d "
287
287
}
288
288
```
289
289
0 commit comments