The request matches the documented site-level ZIP deployment contract, so the unexplained 405 MethodNotAllowed requires Microsoft support to trace the ARM correlation ID rather than another change to the ZIP layout or upload process.
Supported operation and authentication
The documented operation is:
POST https://management.azure.com/subscriptions/[Subscription ID]/resourceGroups/[Resource Group] Group]/providers/Microsoft.Web/staticSites/{name}/zipdeploy?api-version=2025-03-01
Authorization: Bearer <ARM-token>
Content-Type: application/json
Its documented body includes properties.appZipUrl, apiZipUrl, deploymentTitle, functionLanguage, and provider. Successful calls return 200 OK or 202 Accepted.^1^
The same reference includes a Python example using DefaultAzureCredential with AZURE_CLIENT_ID, AZURE_TENANT_ID, and AZURE_CLIENT_SECRET, which is the service-principal client-credentials configuration. Therefore, service-principal authentication is supported for this ARM operation, subject to the principal having permission to invoke the action.^1^
The public contract describes appZipUrl only as the URL of the zipped application content; it does not restrict it to an account-key SAS or exclude a user-delegation SAS.^2^ A readable HTTPS user-delegation SAS therefore fits the documented input shape, but the documentation does not explicitly certify particular SAS types, SAS fields, or storage-account network configurations.
Request properties
For an app-only deployment, perform one controlled retry using the smallest documented payload:
curl --fail-with-body -i -X POST \
-H "Authorization: Bearer $ARM_TOKEN" \
-H "Content-Type: application/json" \
--data "{\"properties\":{\"appZipUrl\":\"$APP_ZIP_URL\"}}" \
"https://management.azure.com/subscriptions/[Subscription ID]/resourceGroups/[Resource Group] Group]/providers/Microsoft.Web/staticSites/$SITE_NAME/zipdeploy?api-version=2025-03-01"
This is a diagnostic simplification, not a correction to a documented error:
-
appZipUrl is the relevant app-content field.
-
apiZipUrl and functionLanguage apply when API content exists.
-
deploymentTitle is a label.
-
provider identifies the submitting provider.^2^
- No allowed-value enumeration is documented for
provider; "ArcGIS Nova" is therefore not publicly documented as either required, reserved, or invalid.
-
kind is listed in the request model but is not marked required by the operation reference.^1^
If targeting a named staging environment rather than the primary site, the route is different:
POST .../staticSites/{name}/builds/{environmentName}/zipdeploy?api-version=2025-03-01
The environment name must match the documented alphanumeric pattern.^3^ Your site-level route is correct for deployment to the primary site.
What the available evidence establishes
The Activity Log proves that ARM received a POST for the expected resource-provider action. It does not identify:
- which downstream Static Web Apps endpoint returned 405;
- which downstream HTTP method was used;
- whether ZIP retrieval was attempted;
- whether the response originated in ARM routing,
Microsoft.Web, or a deployment backend.
The absence of GetBlob in aggregated metrics is not enough to conclude that no retrieval occurred. Conversely, the later successful GET with a new SAS does not establish that the original SAS was valid during the failed request.
Support escalation
Open an Azure support request for Static Web Apps → Deployment and provide privately:
- ARM correlation ID and trace/request ID.
- Exact UTC timestamp and region (
West US 2).
- Subscription, resource group, and Static Web App resource ID.
- Full response status, headers, and sanitized body.
- Confirmation that the called operation was
Microsoft.Web/staticSites/zipdeploy/action.
- Whether a minimal
appZipUrl-only retry also returns 405.
- Original SAS start/expiry times, permissions, resource scope, and signing type—without disclosing the signature or complete URL.
- Storage diagnostic logs for the original failure window, if available.
Ask support to identify the failing downstream endpoint and method, determine whether appZipUrl retrieval was initiated, and confirm whether user-delegation SAS URLs are accepted by this operation in West US 2. Continue using the successful SWA CLI deployment-token path as the operational workaround; SWA CLI officially supports deployment tokens for automated deployments.^4^
References
- Static Sites - Create Zip Deployment For Static Site - REST API (Azure App Service) | Microsoft Learn
- StaticSiteZipDeployment Class-Variables
- Static Sites - Create Zip Deployment For Static Site Build - REST API (Azure App Service) | Microsoft Learn
- Deploy a static web app with Azure Static Web Apps CLI