You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-arc/data/update-service-principal-credentials.md
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,20 @@ ms.subservice: azure-arc-data
7
7
author: AbdullahMSFT
8
8
ms.author: amamun
9
9
ms.reviewer: mikeray
10
-
ms.date: 07/30/2021
10
+
ms.date: 04/16/2024
11
11
ms.topic: how-to
12
12
---
13
13
14
14
# Update service principal credentials
15
15
16
-
When the service principal credentials change, you need to update the secrets in the data controller.
16
+
This article explains how to update the secrets in the data controller.
17
17
18
-
For example, if you deployed the data controller using a specific set of values for service principal tenant ID, client ID, and client secret, and then change one or more of these values, you need to update the secrets in the data controller. Following are the instructions to update Tenant ID, Client ID or the Client secret.
18
+
For example, if you:
19
19
20
+
- Deployed the data controller using a specific set of values for service principal tenant ID, client ID, and client secret
21
+
- Change one or more of these values
22
+
23
+
You need to update the secrets in the data controller.
20
24
21
25
## Background
22
26
@@ -36,7 +40,7 @@ The service principal was created at [Create service principal](upload-metrics-a
@@ -73,14 +77,12 @@ The service principal was created at [Create service principal](upload-metrics-a
73
77
>The values need to be base64 encoded.
74
78
Do not edit any other properties.
75
79
76
-
If an incorrect value is provided for `clientId`, `clientSecret` or `tenantID`then you will see an error message as follows in the `control-xxxx` pod/controller container logs:
80
+
If an incorrect value is provided for `clientId`, `clientSecret`, or `tenantID`the command returns an error message as follows in the `control-xxxx` pod/controller container logs:
77
81
78
82
```output
79
-
YYYY-MM-DD HH:MM:SS.mmmm | ERROR | [AzureUpload] Upload task exception: A configuration issue is preventing authentication - check the error message from the server for details.You can modify the configuration in the application registration portal. See https://aka.ms/msal-net-invalid-client for details. Original exception: AADSTS7000215: Invalid client secret is provided.
83
+
YYYY-MM-DD HH:MM:SS.mmmm | ERROR | [AzureUpload] Upload task exception: A configuration issue is preventing authentication - check the error message from the server for details.You can modify the configuration in the application registration portal. See https://aka.ms/msal-net-invalid-client for details. Original exception: AADSTS7000215: Invalid client secret is provided.
80
84
```
81
85
82
-
83
-
84
86
## Related content
85
87
86
-
[Create service principal](upload-metrics-and-logs-to-azure-monitor.md#create-service-principal)
88
+
-[Create service principal](upload-metrics-and-logs-to-azure-monitor.md#create-service-principal)
Copy file name to clipboardExpand all lines: articles/azure-arc/data/upload-metrics-and-logs-to-azure-monitor.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ ms.custom: devx-track-azurecli
8
8
author: twright-msft
9
9
ms.author: twright
10
10
ms.reviewer: mikeray
11
-
ms.date: 11/03/2021
11
+
ms.date: 04/16/2024
12
12
ms.topic: how-to
13
13
---
14
14
@@ -72,20 +72,20 @@ az ad sp credential reset --name <ServicePrincipalName>
72
72
For example, to create a service principal named `azure-arc-metrics`, run the following command
73
73
74
74
```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
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).
0 commit comments