Skip to content

Commit 35f7292

Browse files
authored
add (#10709)
1 parent 08de4c1 commit 35f7292

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Ng/CommandHelpers.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,11 @@ private static IBlobServiceClientFactory GetBlobServiceClient(
449449
var managedIdentityClientId = arguments.GetOrThrow<string>(argumentNameMap[Arguments.ClientId]);
450450
var identity = new ManagedIdentityCredential(managedIdentityClientId);
451451
var serviceUri = GetServiceUri(arguments, argumentNameMap, "blob");
452+
#if DEBUG
453+
return new BlobServiceClientFactory(serviceUri, new DefaultAzureCredential());
454+
#else
452455
return new BlobServiceClientFactory(serviceUri, identity);
456+
#endif
453457
}
454458

455459
string connectionString = GetConnectionString(arguments, argumentNameMap, "BlobEndpoint", "blob");

0 commit comments

Comments
 (0)