Skip to content

Commit 7d765a0

Browse files
committed
fix bean not found
1 parent 779369c commit 7d765a0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -421,10 +421,11 @@ spring:
421421
client-id: <Managed_Identity_Client_ID_Databases>
422422
managed-identity-enabled: true
423423
storage:
424-
blob:
425-
credential:
426-
client-id: <Managed_Identity_Client_ID_Storage>
427-
managed-identity-enabled: true
424+
blob:
425+
endpoint: https://<contract-storage-account>.blob.core.windows.net
426+
credential:
427+
client-id: <Managed_Identity_Client_ID_Storage>
428+
managed-identity-enabled: true
428429
datasource:
429430
url: jdbc:sqlserver://<azure-sql-hostname>.database.windows.net:1433;database=<database-name>;encrypt=true;trustServerCertificate=false;hostNameInCertificate=*.database.windows.net;loginTimeout=30;Authentication=ActiveDirectoryMSI;
430431
```
@@ -445,7 +446,7 @@ public class AzureStorageConfiguration {
445446

446447
@Bean("firstBlobServiceClient")
447448
public BlobServiceClient firstBlobServiceClient(BlobServiceClientBuilder builder) {
448-
return builder.endpoint("https://<contract-storage-account>.blob.core.windows.net").buildClient();
449+
return builder.buildClient();
449450
}
450451
}
451452
```

0 commit comments

Comments
 (0)