@@ -302,7 +302,7 @@ DefaultAzureCredential credential = new(
302
302
});
303
303
304
304
// First Blob Storage client that uses a user-assigned managed identity
305
- BlobServiceClient blobServiceClient = new(
305
+ BlobServiceClient blobServiceClient1 = new(
306
306
new Uri("https://<receipt-storage-account>.blob.core.windows.net"),
307
307
credential);
308
308
@@ -316,7 +316,7 @@ string clientIdDatabases =
316
316
Environment.GetEnvironmentVariable("Managed_Identity_Client_ID_Databases")!;
317
317
318
318
// Create an Azure Cosmos DB client
319
- CosmosClient client = new(
319
+ CosmosClient cosmosClient = new(
320
320
Environment.GetEnvironmentVariable("COSMOS_ENDPOINT", EnvironmentVariableTarget.Process),
321
321
new DefaultAzureCredential(
322
322
new DefaultAzureCredentialOptions
@@ -500,7 +500,8 @@ Add the following to your code:
500
500
public class AzureStorageConfiguration {
501
501
@Bean("secondBlobServiceClient")
502
502
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();
504
505
}
505
506
506
507
@Bean("firstBlobServiceClient")
@@ -515,7 +516,7 @@ public class AzureStorageConfiguration {
515
516
public class ExampleService {
516
517
@Autowired
517
518
@Qualifier (" firstBlobServiceClient" )
518
- private BlobServiceClient blobServiceClient ;
519
+ private BlobServiceClient blobServiceClient1 ;
519
520
520
521
@Autowired
521
522
@Qualifier (" secondBlobServiceClient" )
@@ -557,7 +558,7 @@ public class ExampleService {
557
558
const storageAccountName2 = process.env.AZURE_STORAGE_ACCOUNT_NAME_2;
558
559
559
560
// First Blob Storage client that uses a managed identity
560
- const blobServiceClient = new BlobServiceClient(
561
+ const blobServiceClient1 = new BlobServiceClient(
561
562
` https://${storageAccountName1} .blob.core.windows.net` ,
562
563
credential
563
564
);
@@ -575,7 +576,7 @@ public class ExampleService {
575
576
const cosmosDbAccountEndpoint = process.env.COSMOS_ENDPOINT;
576
577
577
578
// Create an Azure Cosmos DB client
578
- const client = new CosmosClient({
579
+ const cosmosClient = new CosmosClient({
579
580
endpoint: cosmosDbAccountEndpoint,
580
581
credential: new DefaultAzureCredential({
581
582
managedIdentityClientId: clientIdDatabases
0 commit comments