Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Commit 2b5b6ab

Browse files
committed
Pass clientId
1 parent 2a23db4 commit 2b5b6ab

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/NuGet.Services.KeyVault/KeyVaultReader.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ private SecretClient InitializeClient()
6161
TokenCredential credential = null;
6262
if (_configuration.UseManagedIdentity)
6363
{
64-
credential = new DefaultAzureCredential();
64+
credential = new DefaultAzureCredential(new DefaultAzureCredentialOptions
65+
{
66+
ManagedIdentityClientId = _configuration.ClientId
67+
});
6568
}
6669
else
6770
{

0 commit comments

Comments
 (0)