Skip to content

Commit

Permalink
Pass Client ID directly to Credential class
Browse files Browse the repository at this point in the history
  • Loading branch information
DrizzlyOwl committed Mar 12, 2024
1 parent f7a0703 commit 45a8760
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions azure-function/src/functions/scheduledCronTrigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ function getCredentials() {
try {
if (azure_uami && azure_clientId) {
process.context.log("Loaded UAMI Client ID from Environment", azure_clientId)
credential = new ManagedIdentityCredential({
managedIdentityClientId: azure_clientId
})
credential = new ManagedIdentityCredential(azure_clientId)
return credential
}

Expand Down

0 comments on commit 45a8760

Please sign in to comment.