Skip to content

Commit 0c6f6d2

Browse files
committed
Update examples
1 parent c21b8aa commit 0c6f6d2

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

articles/azure-arc/data/update-service-principal-credentials.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The service principal was created at [Create service principal](upload-metrics-a
3636
kubectl edit secret/upload-service-principal-secret -n arc
3737
```
3838

39-
The `kubecl edit` command opens the credentials .yml file in the default editor.
39+
The `kubectl edit` command opens the credentials .yml file in the default editor.
4040

4141

4242
1. Edit the service principal secret.
@@ -52,18 +52,18 @@ The service principal was created at [Create service principal](upload-metrics-a
5252
#
5353
apiVersion: v1
5454
data:
55-
authority: aHR0cHM6Ly9sb2dpbi5taWNyb3NvZnRvbmxpbmUuY29t
56-
clientId: NDNiNDcwYrFTGWYzOC00ODhkLTk0ZDYtNTc0MTdkN2YxM2Uw
57-
clientSecret: VFA2RH125XU2MF9+VVhXenZTZVdLdECXFlNKZi00Lm9NSw==
58-
tenantId: NzJmOTg4YmYtODZmMRFVBGTJLSATkxYWItMmQ3Y2QwMTFkYjQ3
55+
authority: <authority id>
56+
clientId: <client id>
57+
clientSecret: <client secret>==
58+
tenantId: <tenant id>
5959
kind: Secret
6060
metadata:
6161
creationTimestamp: "2020-12-02T05:02:04Z"
6262
name: upload-service-principal-secret
6363
namespace: arc
6464
resourceVersion: "7235659"
6565
selfLink: /api/v1/namespaces/arc/secrets/upload-service-principal-secret
66-
uid: 7fb693ff-6caa-4a31-b83e-9bf22be4c112
66+
uid: <globally unique identifier>
6767
type: Opaque
6868
```
6969

articles/azure-arc/data/upload-metrics-and-logs-to-azure-monitor.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,20 @@ az ad sp credential reset --name <ServicePrincipalName>
7272
For example, to create a service principal named `azure-arc-metrics`, run the following command
7373

7474
```azurecli
75-
az ad sp create-for-rbac --name azure-arc-metrics --role Contributor --scopes /subscriptions/a345c178a-845a-6a5g-56a9-ff1b456123z2/resourceGroups/myresourcegroup
75+
az ad sp create-for-rbac --name azure-arc-metrics --role Contributor --scopes /subscriptions/<SubscriptionId>/resourceGroups/myresourcegroup
7676
```
7777

7878
Example output:
7979

8080
```output
81-
"appId": "2e72adbf-de57-4c25-b90d-2f73f126e123",
81+
"appId": "<appId>",
8282
"displayName": "azure-arc-metrics",
8383
"name": "http://azure-arc-metrics",
84-
"password": "5039d676-23f9-416c-9534-3bd6afc78123",
85-
"tenant": "72f988bf-85f1-41af-91ab-2d7cd01ad1234"
84+
"password": "<password>",
85+
"tenant": "<tenant>"
8686
```
8787

88-
Save the `appId`, `password`, and `tenant` values in an environment variable for use later.
88+
Save the `appId`, `password`, and `tenant` values in an environment variable for use later. These values are in the form of globally unique identifier (GUID).
8989

9090
# [Windows](#tab/windows)
9191

0 commit comments

Comments
 (0)