diff --git a/test/e2e/quickstart_test.go b/test/e2e/quickstart_test.go index a6459f7c..5bd81a35 100644 --- a/test/e2e/quickstart_test.go +++ b/test/e2e/quickstart_test.go @@ -115,20 +115,16 @@ func test201VmssPackerJumpbox(t *testing.T) { packerVars := map[string]string{ "image_resource_group_name": imageResourceGroupName, } - useMsi := false if clientId := os.Getenv("ARM_CLIENT_ID"); clientId != "" { packerVars["client_id"] = clientId } - if os.Getenv("MSI_ID") != "" { - useMsi = true - } if clientSecret := os.Getenv("ARM_CLIENT_SECRET"); clientSecret != "" { packerVars["client_secret"] = clientSecret } if subscriptionId := os.Getenv("ARM_SUBSCRIPTION_ID"); subscriptionId != "" { packerVars["subscription_id"] = subscriptionId } - if tenantId := os.Getenv("ARM_TENANT_ID"); !useMsi && tenantId != "" { + if tenantId := os.Getenv("ARM_TENANT_ID"); tenantId != "" { packerVars["tenant_id"] = tenantId } patches := gomonkey.ApplyFunc(shell.RunCommandAndGetOutputE, func(t terratest.TestingT, command shell.Command) (string, error) {