Skip to content

Commit f4c2bc1

Browse files
docs: add troubleshooting for aci zone issue (Azure#256)
# Pull Request ## Issue Azure#187 ## Description This PR adds automatic zone detection and an override variable for faulty regions. ## License By submitting this pull request, I confirm that my contribution is made under the terms of the projects associated license.
1 parent d23e47a commit f4c2bc1

File tree

3 files changed

+43
-2
lines changed

3 files changed

+43
-2
lines changed

Diff for: .github/linters/.markdown-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ MD004: false # ul-style - Unordered list style
2222
MD007:
2323
indent: 2 # ul-indent - Unordered list indentation
2424
MD013:
25-
line_length: 600 # line-length - Line length
25+
line_length: 1000 # line-length - Line length
2626
MD026:
2727
punctuation: ".,;:!。,;:" # no-trailing-punctuation - Trailing punctuation in heading
2828
MD029: false # ol-prefix - Ordered list item prefix

Diff for: .github/linters/.yaml-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ extends: default
44
rules:
55
# 500 chars should be enough, but don't fail if a line is longer
66
line-length:
7-
max: 500
7+
max: 1000
88
level: warning
99
truthy:
1010
check-keys: false

Diff for: docs/wiki/Troubleshooting.md

+41
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,44 @@ This only affects you if you have Enterprise licensing and have chosen to use a
4141
<!-- markdownlint-enable no-inline-html -->
4242

4343
[Issues]: https://github.com/Azure/alz-terraform-accelerator/issues "Our issues log"
44+
45+
## Error: creating Container Group
46+
47+
If you see the following error, it is due to region (e.g. swedencentral) stating it supports availability zones, but it does not support them for Azure Container Instance. There is no way to detect this with automation, so requires a manual workaround at this time.
48+
49+
In order to work around this issue, add the following setting to your input config file:
50+
51+
```yaml
52+
# GitHub
53+
runner_container_zone_support: false
54+
55+
# Azure DevOps
56+
agent_container_zone_support: false
57+
```
58+
59+
```text
60+
61+
│ Error: creating Container Group (Subscription: "0d754f66-65b4-4f64-97f5-221f0174ad48"
62+
│ Resource Group Name: "rg-alz-r14c67r424-agents-swedencentral-001"
63+
│ Container Group Name: "aci-alz-r14c67r424-swedencentral-002"): polling after ContainerGroupsCreateOrUpdate: polling failed: the Azure API returned the following error:
64+
65+
│ Status: "Failed"
66+
│ Code: "Failed"
67+
│ Message: "The requested resource is not available in the location 'swedencentral' at this moment. Please retry with a different resource request or in another location. Resource requested: '2' CPU '4' GB memory 'Linux' OS"
68+
│ Activity Id: ""
69+
70+
│ ---
71+
72+
│ API Response:
73+
74+
│ ----[start]----
75+
│ {"id":"/subscriptions/**754f66-****-4f64-****-221f0174ad4**/resourceGroups/rg-alz-r14c67r424-agents-swedencentral-001/providers/Microsoft.ContainerInstance/containerGroups/aci-alz-r14c67r424-swedencentral-002","status":"Failed","startTime":"2024-11-29T11:15:39.9940663Z","properties":{"events":[{"count":1,"firstTimestamp":"2024-11-29T11:15:41.1163736Z","lastTimestamp":"2024-11-29T11:15:41.1163736Z","name":"InsufficientCapacity.","message":"The requested resource is not available in the location 'swedencentral' at this moment. Please retry with a different resource request or in another location. Resource requested: '2' CPU '4' GB memory 'Linux' OS","type":"Warning"}]},"error":{"message":"The requested resource is not available in the location 'swedencentral' at this moment. Please retry with a different resource request or in another location. Resource requested: '2' CPU '4' GB memory 'Linux' OS"}}
76+
│ -----[end]-----
77+
78+
79+
│ with module.azure.azurerm_container_group.alz["agent_02"],
80+
│ on ../../modules/azure/container_instances.tf line 1, in resource "azurerm_container_group" "alz":
81+
│ 1: resource "azurerm_container_group" "alz" {
82+
83+
84+
```

0 commit comments

Comments
 (0)