microsoftfeedback / aci-issues

Issue reporting and tracking for the Azure Container Instances service
Creative Commons Attribution 4.0 International
7 stars 0 forks source link

location specified in yml is ignored #41

Open liupeirong opened 4 years ago

liupeirong commented 4 years ago

The location property specified in the multi-container yml deployment file is ignored. The resulting ACI is always deployed in the default location of the resource group.

magnus-longva-bouvet commented 3 years ago

I see the same behavior when using docker-compose.

docker context create aci mycontext --location westeurope
docker context use mycontext
docker compose up

[+] Running 0/1 ⠇ Group container_instance_test Waiting 1.8s containerinstance.ContainerGroupsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="LocationNotAvailableForResourceType" Message="The provided location 'norwayeast' is not available for resource type 'Microsoft.ContainerInstance/containerGroups'. List of available regions for the resource type is 'westcentralus,westus,eastus,westeurope,westus2,northeurope,southeastasia,eastus2,centralus,australiaeast,uksouth,southcentralus,centralindia,brazilsouth,southindia,northcentralus,eastasia,canadacentral,japaneast,koreacentral,francecentral'."

docker version
Client: Docker Engine - Community
 Cloud integration: 1.0.3
 Version:           19.03.13
 API version:       1.40
 Go version:        go1.13.15
 Git commit:        4484c46d9d
 Built:             Wed Sep 16 17:03:45 2020
 OS/Arch:           linux/amd64
 Experimental:      false