azure-cli: az container create returns an internal server error

Related command az container create --resource-group my-resource --file aci-single-container-example.yaml

Describe the bug Running the above command returns the following error: (InternalServerError) Encountered an internal server error. The tracking activity id is 'c32bf750-e356-49c8-93a9-7f40059f3297', correlation id is '7d842e62-8376-4ffa-a466-72ce7a1afd62'. I’m at dead end trying to follow this and resolve.

Expected behavior Container will be created

Environment summary Running from WSL bash and powershell

azure-cli                         2.40.0 *

core                              2.40.0 *
telemetry                          1.0.8

Dependencies:
msal                            1.18.0b1
azure-mgmt-resource             21.1.0b1

Additional context

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

Hi @SaurabhSharma-MSFT, I engaged with our Cloud service provider and they reviewed the yaml and spotted an error in it for the subnetIds block, my id pointed to the vnet, not the subnet.

 subnetIds:
    - id: '/subscriptions/xxxxxx-xxxxxxx/resourceGroups/RESOURCE-GROUP/providers/Microsoft.Network/virtualNetworks/dev-vnet-01'
      name: 'dev-vnet-aci'

needed to be

 subnetIds:
    - id: '/subscriptions/xxxxxx-xxxxxxx/resourceGroups/RESOURCE-GROUP/providers/Microsoft.Network/virtualNetworks/dev-vnet-01/subnets/dev-vnet-aci'
      name: 'dev-vnet-aci'

Thanks for your help and maybe this error can be caught better in the future.

@stevenjh sorry for delay on this one. I will look into this and get back to you as soon as possible.