Static Sites - Create Zip Deployment For Static Site
Description for Deploys zipped content to a static site.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/zipdeploy?api-version=2025-03-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
name
|
path | True |
string |
Name of the static site. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
Name of the resource group to which the resource belongs. |
|
subscription
|
path | True |
string |
Your Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). |
|
api-version
|
query | True |
string |
API Version |
Request Body
| Name | Type | Description |
|---|---|---|
| kind |
string |
Kind of resource. |
| properties.apiZipUrl |
string |
URL for the zipped api content |
| properties.appZipUrl |
string |
URL for the zipped app content |
| properties.deploymentTitle |
string |
A title to label the deployment |
| properties.functionLanguage |
string |
The language of the api content, if it exists |
| properties.provider |
string |
The provider submitting this deployment |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK. |
|
| 202 Accepted |
Asynchronous operation in progress. |
|
| Other Status Codes |
App Service error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
Deploy a site from a zipped package
Sample request
POST https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.Web/staticSites/testStaticSite0/zipdeploy?api-version=2025-03-01
{
"properties": {
"appZipUrl": "https://[examplestorageaccount].com/happy-sea-15afae3e-master-81828877/app-zipdeploy.zip",
"apiZipUrl": "https://[examplestorageaccount].com/happy-sea-15afae3e-master-81828877/api-zipdeploy.zip",
"deploymentTitle": "Update index.html",
"provider": "testProvider",
"functionLanguage": "testFunctionLanguage"
}
}
Sample response
azure-asyncoperation: https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/providers/Microsoft.Web/locations/westus2/operationResults/62e4d893-d233-4005-988e-a428d9f77076?api-version=2019-01-01
Definitions
| Name | Description |
|---|---|
|
Default |
App Service error response. |
| Details | |
| Error |
Error model. |
|
Static |
Static site zip deployment ARM resource. |
DefaultErrorResponse
App Service error response.
| Name | Type | Description |
|---|---|---|
| error |
Error model. |
Details
| Name | Type | Description |
|---|---|---|
| code |
string |
Standardized string to programmatically identify the error. |
| message |
string |
Detailed error description and debugging information. |
| target |
string |
Detailed error description and debugging information. |
Error
Error model.
| Name | Type | Description |
|---|---|---|
| code |
string |
Standardized string to programmatically identify the error. |
| details |
Details[] |
Detailed errors. |
| innererror |
string |
More information to debug error. |
| message |
string |
Detailed error description and debugging information. |
| target |
string |
Detailed error description and debugging information. |
StaticSiteZipDeploymentARMResource
Static site zip deployment ARM resource.
| Name | Type | Description |
|---|---|---|
| id |
string |
Resource Id. |
| kind |
string |
Kind of resource. |
| name |
string |
Resource Name. |
| properties.apiZipUrl |
string |
URL for the zipped api content |
| properties.appZipUrl |
string |
URL for the zipped app content |
| properties.deploymentTitle |
string |
A title to label the deployment |
| properties.functionLanguage |
string |
The language of the api content, if it exists |
| properties.provider |
string |
The provider submitting this deployment |
| type |
string |
Resource type. |