fix 201vmsspacker jumpbox, MSI_ID is object id not client id, we need az cli to retrieve client id

This commit is contained in:
hezijie
2024-01-03 17:08:44 +08:00
committed by lonegunmanb
parent b6d3ffd601
commit 22b2e39335
2 changed files with 3 additions and 3 deletions

View File

@ -116,8 +116,7 @@ func test201VmssPackerJumpbox(t *testing.T) {
if clientId := os.Getenv("ARM_CLIENT_ID"); clientId != "" {
packerVars["client_id"] = clientId
}
if identityId := os.Getenv("MSI_ID"); identityId != "" {
packerVars["client_id"] = identityId
if os.Getenv("MSI_ID") != "" {
useMsi = true
}
if clientSecret := os.Getenv("ARM_CLIENT_SECRET"); clientSecret != "" {