From 5d3e63d895c4467c3107a27f5a67ba04221a4c34 Mon Sep 17 00:00:00 2001 From: Jared Holgate Date: Fri, 29 Nov 2024 11:41:50 +0000 Subject: [PATCH 1/3] docs: add troubleshooting for aci zone issue --- docs/wiki/Troubleshooting.md | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/docs/wiki/Troubleshooting.md b/docs/wiki/Troubleshooting.md index 670aa0c8..9a8a22d2 100644 --- a/docs/wiki/Troubleshooting.md +++ b/docs/wiki/Troubleshooting.md @@ -41,3 +41,44 @@ This only affects you if you have Enterprise licensing and have chosen to use a [Issues]: https://github.com/Azure/alz-terraform-accelerator/issues "Our issues log" + +## Error: creating Container Group + +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. + +In order to work around this issue, add the following setting to your input config file: + +```yaml +# GitHub +runner_container_zone_support: false + +# Azure DevOps +agent_container_zone_support: false +``` + +``` +╷ +│ Error: creating Container Group (Subscription: "0d754f66-65b4-4f64-97f5-221f0174ad48" +│ Resource Group Name: "rg-alz-r14c67r424-agents-swedencentral-001" +│ Container Group Name: "aci-alz-r14c67r424-swedencentral-002"): polling after ContainerGroupsCreateOrUpdate: polling failed: the Azure API returned the following error: +│ +│ Status: "Failed" +│ Code: "Failed" +│ 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" +│ Activity Id: "" +│ +│ --- +│ +│ API Response: +│ +│ ----[start]---- +│ {"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"}} +│ -----[end]----- +│ +│ +│ with module.azure.azurerm_container_group.alz["agent_02"], +│ on ../../modules/azure/container_instances.tf line 1, in resource "azurerm_container_group" "alz": +│ 1: resource "azurerm_container_group" "alz" { +│ +╵ +``` \ No newline at end of file From 1a552309c972a597dd2045d0a3b8e8002393d1ba Mon Sep 17 00:00:00 2001 From: Jared Holgate Date: Fri, 29 Nov 2024 11:50:47 +0000 Subject: [PATCH 2/3] Fix linting --- .github/linters/.yaml-lint.yml | 2 +- docs/wiki/Troubleshooting.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/linters/.yaml-lint.yml b/.github/linters/.yaml-lint.yml index 96fe9da2..f72e91e1 100644 --- a/.github/linters/.yaml-lint.yml +++ b/.github/linters/.yaml-lint.yml @@ -4,7 +4,7 @@ extends: default rules: # 500 chars should be enough, but don't fail if a line is longer line-length: - max: 500 + max: 1000 level: warning truthy: check-keys: false diff --git a/docs/wiki/Troubleshooting.md b/docs/wiki/Troubleshooting.md index 9a8a22d2..b9fa02f4 100644 --- a/docs/wiki/Troubleshooting.md +++ b/docs/wiki/Troubleshooting.md @@ -56,7 +56,7 @@ runner_container_zone_support: false agent_container_zone_support: false ``` -``` +```text ╷ │ Error: creating Container Group (Subscription: "0d754f66-65b4-4f64-97f5-221f0174ad48" │ Resource Group Name: "rg-alz-r14c67r424-agents-swedencentral-001" From fbe7696f935cd4d2a6748aff3a5fc91157789c24 Mon Sep 17 00:00:00 2001 From: Jared Holgate Date: Fri, 29 Nov 2024 11:51:38 +0000 Subject: [PATCH 3/3] Fxi linting --- .github/linters/.markdown-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml index 76e17abc..fa4396eb 100644 --- a/.github/linters/.markdown-lint.yml +++ b/.github/linters/.markdown-lint.yml @@ -22,7 +22,7 @@ MD004: false # ul-style - Unordered list style MD007: indent: 2 # ul-indent - Unordered list indentation MD013: - line_length: 600 # line-length - Line length + line_length: 1000 # line-length - Line length MD026: punctuation: ".,;:!。,;:" # no-trailing-punctuation - Trailing punctuation in heading MD029: false # ol-prefix - Ordered list item prefix