Skip to content

Commit 69ff94e

Browse files
Merge pull request #283838 from EdB-MSFT/SFI-prometheus-remote-write-vms
SFI update image and IDs
2 parents 5727f0a + e8f341b commit 69ff94e

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed
-956 Bytes
Loading
2.8 KB
Loading

articles/azure-monitor/essentials/prometheus-remote-write-virtual-machines.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: EdB-MSFT
55
ms.author: edbaynash
66
ms.topic: conceptual
77
ms.custom: devx-track-azurecli
8-
ms.date: 07/28/2024
8+
ms.date: 08/07/2024
99
#customer intent: As an azure administrator, I want to send Prometheus metrics from my self-managed Prometheus instance to an Azure Monitor workspace.
1010
---
1111

@@ -203,15 +203,15 @@ Note the value of the `clientId` of the managed identity that you create. This I
203203
204204
```azurecli
205205
{
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",
208208
"location": "eastus",
209209
"name": "PromRemoteWriteIdentity",
210-
"principalId": "98765432-0123-abcd-9876-1a2b3c4d5e6f",
210+
"principalId": "aaaaaaaa-bbbb-cccc-1111-222222222222",
211211
"resourceGroup": "rg-001",
212212
"systemData": null,
213213
"tags": {},
214-
"tenantId": "ffff1234-aa01-02bb-03cc-0f9e8d7c6b5a",
214+
"tenantId": "ffff5f5f-aa6a-bb7b-cc8c-dddddd9d9d9d",
215215
"type": "Microsoft.ManagedIdentity/userAssignedIdentities"
216216
}
217217
```
@@ -229,8 +229,8 @@ Note the value of the `clientId` of the managed identity that you create. This I
229229
```azurecli
230230
az role assignment create \
231231
--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
234234
```
235235
236236
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
258258
az vm identity assign \
259259
-g rg-prom-on-vm \
260260
-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
262262
```
263263
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).
264264
@@ -275,15 +275,15 @@ For example,
275275
az ad sp create-for-rbac \
276276
--name PromRemoteWriteApp \
277277
--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
279279
```
280280
The following is an example of the output displayed:
281281
```azurecli
282282
{
283-
"appId": "01234567-abcd-ef01-2345-67890abcdef0",
283+
"appId": "66667777-aaaa-8888-bbbb-9999cccc0000",
284284
"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"
287287
}
288288
```
289289

0 commit comments

Comments
 (0)