From 23943360c2ba290a1df3fff8b92f6ddee568feae Mon Sep 17 00:00:00 2001 From: Sergey Galuzo Date: Thu, 16 Oct 2025 11:11:06 -0700 Subject: [PATCH] Switched to use default azure credential instead of interactive --- tools/BlobRewriter/Program.cs | 2 +- tools/PerfTester/Program.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/BlobRewriter/Program.cs b/tools/BlobRewriter/Program.cs index dd70584c22..7107f44f8a 100644 --- a/tools/BlobRewriter/Program.cs +++ b/tools/BlobRewriter/Program.cs @@ -404,7 +404,7 @@ private static BlobContainerClient GetContainer(string storageConnectionString, { try { - var blobServiceClient = string.IsNullOrEmpty(storageUri) ? new BlobServiceClient(storageConnectionString) : new BlobServiceClient(new Uri(storageUri), string.IsNullOrEmpty(storageUAMI) ? new InteractiveBrowserCredential() : new ManagedIdentityCredential(storageUAMI)); + var blobServiceClient = string.IsNullOrEmpty(storageUri) ? new BlobServiceClient(storageConnectionString) : new BlobServiceClient(new Uri(storageUri), string.IsNullOrEmpty(storageUAMI) ? new DefaultAzureCredential() : new ManagedIdentityCredential(storageUAMI)); var blobContainerClient = blobServiceClient.GetBlobContainerClient(storageContainerName); if (!blobContainerClient.Exists()) diff --git a/tools/PerfTester/Program.cs b/tools/PerfTester/Program.cs index d74cde4e6b..8ff7414b31 100644 --- a/tools/PerfTester/Program.cs +++ b/tools/PerfTester/Program.cs @@ -731,7 +731,7 @@ private static BlobContainerClient GetContainer(string storageConnectionString, { try { - var blobServiceClient = string.IsNullOrEmpty(storageUri) ? new BlobServiceClient(storageConnectionString) : new BlobServiceClient(new Uri(storageUri), string.IsNullOrEmpty(storageUAMI) ? new InteractiveBrowserCredential() : new ManagedIdentityCredential(storageUAMI)); + var blobServiceClient = string.IsNullOrEmpty(storageUri) ? new BlobServiceClient(storageConnectionString) : new BlobServiceClient(new Uri(storageUri), string.IsNullOrEmpty(storageUAMI) ? new DefaultAzureCredential() : new ManagedIdentityCredential(storageUAMI)); var blobContainerClient = blobServiceClient.GetBlobContainerClient(storageContainerName); if (!blobContainerClient.Exists())