Skip to content

Commit d0ff49b

Browse files
committed
add onedeploy code
1 parent 02895f9 commit d0ff49b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

articles/app-service/deploy-zip.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,27 @@ The following example uses [Publish-AzWebapp](/powershell/module/az.websites/pub
6565
Publish-AzWebApp -ResourceGroupName Default-Web-WestUS -Name MyApp -ArchivePath <zip-package-path>
6666
```
6767

68+
# [ARM template](#tab/arm)
69+
70+
The following example configures the location of the ZIP package in an ARM template. Replace the placeholders `<app-name>` and `<zip-package-uri>`. The <zip-package-uri> can be a public endpoint, but it's best to use blob storage with a SAS key to protect it.
71+
72+
```Bicep
73+
{
74+
"apiVersion": "2021-03-01",
75+
"name": "onedeploy",
76+
"type": "Extensions",
77+
"dependsOn": [
78+
"[resourceId('Microsoft.Web/Sites', <app-name>')]"
79+
],
80+
"properties": {
81+
"packageUri": "<zip-package-uri>",
82+
"type":"zip"
83+
}
84+
}
85+
```
86+
87+
For more information, see [Microsoft.Web sites/extensions 'onedeploy' 2021-03-01](https://learn.microsoft.com/azure/templates/microsoft.web/2021-03-01/sites/extensions-onedeploy?pivots=deployment-language-arm-template).
88+
6889
# [Kudu API](#tab/api)
6990

7091
The following example uses the cURL tool to deploy a ZIP package. Replace the placeholders `<username>`, `<password>`, `<zip-package-path>`, and `<app-name>`. Use the [deployment credentials](deploy-configure-credentials.md) for authentication.

0 commit comments

Comments
 (0)