Skip to content

Commit 87b2e34

Browse files
committed
fix e2e test
1 parent 4e145ba commit 87b2e34

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/utils/credentials/credentials.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ func CreateAzureCredentialFile() (*Credentials, error) {
121121
if err != nil {
122122
return nil, err
123123
}
124+
// set env for azidentity.EnvironmentCredential
125+
os.Setenv("AZURE_TENANT_ID", c.TenantID)
126+
os.Setenv("AZURE_CLIENT_ID", c.ClientID)
127+
os.Setenv("AZURE_CLIENT_SECRET", c.ClientSecret)
124128
return parseAndExecuteTemplate(cloud, c.TenantID, c.SubscriptionID, c.ClientID, c.ClientSecret, resourceGroup, location)
125129
}
126130

0 commit comments

Comments
 (0)