diff --git a/azure/context.go b/azure/context.go index 8a457041b..4c0b0e31f 100644 --- a/azure/context.go +++ b/azure/context.go @@ -77,10 +77,7 @@ func (helper contextCreateACIHelper) createContextData(ctx context.Context, opts } } - location := opts["aciLocation"] - if location == "" { - location = *group.Location - } + location := *group.Location description := fmt.Sprintf("%s@%s", *group.Name, location) if opts["description"] != "" { diff --git a/azure/context_test.go b/azure/context_test.go index 6133f61c9..acfdcd80f 100644 --- a/azure/context_test.go +++ b/azure/context_test.go @@ -179,6 +179,7 @@ func options(subscriptionID string, resourceGroupName string) map[string]string return map[string]string{ "aciSubscriptionID": subscriptionID, "aciResourceGroup": resourceGroupName, + "aciLocation": "eastus", } }