Skip to content

Commit 0670306

Browse files
committed
Rename vars
1 parent f619c94 commit 0670306

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

articles/storage/common/multiple-identity-scenarios.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ DefaultAzureCredential credential = new(
302302
});
303303
304304
// First Blob Storage client that uses a user-assigned managed identity
305-
BlobServiceClient blobServiceClient = new(
305+
BlobServiceClient blobServiceClient1 = new(
306306
new Uri("https://<receipt-storage-account>.blob.core.windows.net"),
307307
credential);
308308
@@ -316,7 +316,7 @@ string clientIdDatabases =
316316
Environment.GetEnvironmentVariable("Managed_Identity_Client_ID_Databases")!;
317317
318318
// Create an Azure Cosmos DB client
319-
CosmosClient client = new(
319+
CosmosClient cosmosClient = new(
320320
Environment.GetEnvironmentVariable("COSMOS_ENDPOINT", EnvironmentVariableTarget.Process),
321321
new DefaultAzureCredential(
322322
new DefaultAzureCredentialOptions
@@ -500,7 +500,8 @@ Add the following to your code:
500500
public class AzureStorageConfiguration {
501501
@Bean("secondBlobServiceClient")
502502
public BlobServiceClient secondBlobServiceClient(BlobServiceClientBuilder builder) {
503-
return builder.endpoint("https://<receipt-storage-account>.blob.core.windows.net").buildClient();
503+
return builder.endpoint("https://<receipt-storage-account>.blob.core.windows.net")
504+
.buildClient();
504505
}
505506

506507
@Bean("firstBlobServiceClient")
@@ -515,7 +516,7 @@ public class AzureStorageConfiguration {
515516
public class ExampleService {
516517
@Autowired
517518
@Qualifier("firstBlobServiceClient")
518-
private BlobServiceClient blobServiceClient;
519+
private BlobServiceClient blobServiceClient1;
519520

520521
@Autowired
521522
@Qualifier("secondBlobServiceClient")
@@ -557,7 +558,7 @@ public class ExampleService {
557558
const storageAccountName2 = process.env.AZURE_STORAGE_ACCOUNT_NAME_2;
558559
559560
// First Blob Storage client that uses a managed identity
560-
const blobServiceClient = new BlobServiceClient(
561+
const blobServiceClient1 = new BlobServiceClient(
561562
`https://${storageAccountName1}.blob.core.windows.net`,
562563
credential
563564
);
@@ -575,7 +576,7 @@ public class ExampleService {
575576
const cosmosDbAccountEndpoint = process.env.COSMOS_ENDPOINT;
576577
577578
// Create an Azure Cosmos DB client
578-
const client = new CosmosClient({
579+
const cosmosClient = new CosmosClient({
579580
endpoint: cosmosDbAccountEndpoint,
580581
credential: new DefaultAzureCredential({
581582
managedIdentityClientId: clientIdDatabases

0 commit comments

Comments
 (0)