Skip to content

Fix: Use GlobalStandard SKU for Azure OpenAI deployment in Switzerland North#104

Merged
fpittelo merged 2 commits intodevfrom
copilot/fix-terraform-apply-issue
Nov 30, 2025
Merged

Fix: Use GlobalStandard SKU for Azure OpenAI deployment in Switzerland North#104
fpittelo merged 2 commits intodevfrom
copilot/fix-terraform-apply-issue

Conversation

Copy link
Contributor

Copilot AI commented Nov 30, 2025

Terraform Apply failing because Standard SKU for gpt-4o is not supported in Switzerland North region. Azure requires GlobalStandard SKU for this model/region combination.

Changes

  • modules/cognitive_account/variables.tf - Add configurable deployment_sku_name variable (default: GlobalStandard)
  • modules/cognitive_account/main.tf - Use variable instead of hardcoded "Standard"
  • infra/variables.tf - Add deployment_sku_name to environment type definition; set to GlobalStandard for all environments
  • infra/main.tf - Pass deployment_sku_name to cognitive_account module
# Before
sku {
  name     = "Standard"  # Not supported in Switzerland North for gpt-4o
  capacity = 10
}

# After
sku {
  name     = var.deployment_sku_name  # Configurable per environment
  capacity = 10
}

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • checkpoint-api.hashicorp.com
    • Triggering command: /usr/local/bin/terraform terraform --version (dns block)
    • Triggering command: /usr/local/bin/terraform terraform fmt -check -recursive . (dns block)
    • Triggering command: /usr/local/bin/terraform terraform fmt -recursive . (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Terraform Apply issue: The specified SKU 'Standard' for model 'gpt-4o 2024-05-13' is not supported in this region 'switzerlandnorth'.</issue_title>
<issue_description>Terraform Apply issue:

│ Error: creating Deployment (Subscription: ""
│ Resource Group Name: "dev-alpinebot"
│ Account Name: "dev-alpinebot-ai-8419"
│ Deployment Name: "dev-alpinebot-ai-dpl"): performing CreateOrUpdate: unexpected status 400 (400 Bad Request) with error: InvalidResourceProperties: The specified SKU 'Standard' for model 'gpt-4o 2024-05-13' is not supported in this region 'switzerlandnorth'.

│ with module.cognitive_account.azurerm_cognitive_deployment.openai_deployment,
│ on ../modules/cognitive_account/main.tf line 12, in resource "azurerm_cognitive_deployment" "openai_deployment":
│ 12: resource "azurerm_cognitive_deployment" "openai_deployment" {

│ creating Deployment (Subscription: "
"
│ Resource Group Name: "dev-alpinebot"
│ Account Name: "dev-alpinebot-ai-8419"
│ Deployment Name: "dev-alpinebot-ai-dpl"): performing CreateOrUpdate:
│ unexpected status 400 (400 Bad Request) with error:
│ InvalidResourceProperties: The specified SKU 'Standard' for model 'gpt-4o
│ 2024-05-13' is not supported in this region 'switzerlandnorth'.

Releasing state lock. This may take a few moments...
Error: Terraform exited with code 1.
Error: Process completed with exit code 1.</issue_description>

<agent_instructions>I'm struggling with this issue. Can you analyze the Terraform code, especially the variables and make sure we use the correct values for the Azure Open AI cognitive account SKU and mode for Switzerland North. Thanks.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@github-actions
Copy link

🤖 Hi @Copilot, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

@github-actions
Copy link

🤖 I'm sorry @Copilot, but I was unable to process your request. Please see the logs for more details.

…d North

Co-authored-by: fpittelo <3135901+fpittelo@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix Terraform apply issue for unsupported SKU in Switzerland region Fix: Use GlobalStandard SKU for Azure OpenAI deployment in Switzerland North Nov 30, 2025
Copilot AI requested a review from fpittelo November 30, 2025 12:48
@fpittelo fpittelo added the bug Something isn't working label Nov 30, 2025
Copy link
Owner

@fpittelo fpittelo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@fpittelo fpittelo marked this pull request as ready for review November 30, 2025 12:50
@fpittelo fpittelo merged commit 99ea2ed into dev Nov 30, 2025
@fpittelo fpittelo deleted the copilot/fix-terraform-apply-issue branch November 30, 2025 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants