Skip to content

terraform apply: mssqlwin1 ConfigureSqlServer CustomScript extension failed (503 downloading MSI) #554

Description

@doherty100

Summary

A fresh terraform apply of the full sandbox (all base modules enabled) failed on a single resource: the configure_sql_server CustomScript extension on VM mssqlwin1 (vm_mssql_win module). All other resources — including the vwan P2S VPN gateway (31m26s) — provisioned successfully.

Failing command

terraform apply sandbox.tfplan

Step: Scenario 1 (fresh sandbox from scratch), unattended execution phase.

Full error output

Error: creating Extension (Subscription: "8e93423f-d08c-4539-ba3d-8cbc20bc6aa5"
Resource Group Name: "rg-sand-dev-dczipt6p"
Virtual Machine Name: "mssqlwin1"
Extension Name: "vmx-sand-dev-mssqlwin1-ConfigureSqlServer"): polling after CreateOrUpdate: polling failed: the Azure API returned the following error:

Status: "VMExtensionProvisioningError"
Code: ""
Message: "VM has reported a user failure when processing extension 'vmx-sand-dev-mssqlwin1-ConfigureSqlServer'. Please correct the error and try again. (publisher 'Microsoft.Compute' and type 'CustomScriptExtension'). Error code: '72'. Error message: 'Unable to download the msi. This may be due to firewall rules or a networking error. The exception was: The remote server returned an error: (503) Server Unavailable.'. Detailed error: ''. More information on troubleshooting is available at https://aka.ms/VMExtensionCSEWindowsTroubleshoot."

  with module.vm_mssql_win[0].azurerm_virtual_machine_extension.configure_sql_server,
  on modules/vm-mssql-win/compute.tf line 119, in resource "azurerm_virtual_machine_extension" "configure_sql_server":
 119: resource "azurerm_virtual_machine_extension" "configure_sql_server" {

API response timing: startTime 2026-07-08T23:56:01Z, endTime 2026-07-08T23:59:32Z, status Failed.

Context

  • Branch: vnext (commit ca7e52c)
  • Terraform: v1.15.8; providers: azurerm v4.80.0, azapi v2.10.0
  • Modules enabled: all base (vnet_app, vm_jumpbox_linux, vm_mssql_win, mssql, mysql, vwan); vnet_shared always on. Extras disabled.
  • Resource group: rg-sand-dev-dczipt6p; location centralus
  • Only 1 error in the run; all other resources created successfully.

Assessment

The extension reported (503) Server Unavailable while downloading an MSI — a transient networking / remote-server availability error during the CustomScript download, not obviously a config defect. Per the repo error-handling policy, the workflow was stopped on first error without retry or self-patch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions