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/storage/common/multiple-identity-scenarios.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,7 @@ You can also enable access to Azure resources for local development by assigning
109
109
using Azure.Messaging.ServiceBus;
110
110
using Azure.Storage.Blobs;
111
111
112
+
// Create an instance of DefaultAzureCredential that will use a system-assigned managed identity
112
113
DefaultAzureCredential credential = new();
113
114
114
115
BlobServiceClient blobServiceClient = new(
@@ -227,7 +228,7 @@ You can also enable access to Azure resources for local development by assigning
227
228
}
228
229
```
229
230
230
-
#### [JavaScript](#tab/javascript)
231
+
#### [Node.js](#tab/javascript)
231
232
232
233
1. In your project, use [npm](https://docs.npmjs.com/) to add a reference to the `@azure/identity` package. This library contains all of the necessary entities to implement `DefaultAzureCredential`. Install any other [Azure SDK libraries](https://www.npmjs.com/search?q=%40azure) which are relevant to your app.
233
234
@@ -389,23 +390,24 @@ Add the following to your code:
389
390
```java
390
391
classDemo {
391
392
publicstaticvoidmain(String[] args) {
392
-
// Get the first user-assigned managed identity ID to connect to shared storage
393
+
// Get the first user-assigned managed identity client ID to connect to shared storage
// Get the second user-assigned managed identity ID to connect to shared databases
@@ -527,7 +529,7 @@ public class ExampleService {
527
529
}
528
530
```
529
531
530
-
#### [JavaScript](#tab/javascript)
532
+
#### [Node.js](#tab/javascript)
531
533
532
534
1. Inside of your project, use [npm](https://docs.npmjs.com/) to add a reference to the `@azure/identity` package. This library contains all of the necessary entities to implement `DefaultAzureCredential`. Install any other [Azure SDK libraries](https://www.npmjs.com/search?q=%40azure) which are relevant to your app.
0 commit comments