Skip to content

Commit 383c21e

Browse files
committed
validation
1 parent d0ff49b commit 383c21e

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

articles/app-service/deploy-zip.md

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -65,27 +65,6 @@ 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-
8968
# [Kudu API](#tab/api)
9069

9170
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.
@@ -122,6 +101,28 @@ The above endpoint does not work for Linux App Services at this time. Consider u
122101

123102
-----
124103

104+
> [!NOTE]
105+
> To deploy a ZIP package in an [ARM template](), upload the ZIP package to an internet-accessible location, then add a `onedeploy` resource like the following JSON. Replace the placeholders `<app-name>` and `<zip-package-uri>`.
106+
>
107+
> ```ARM template
108+
> {
109+
> "type": "Microsoft.Web/sites/extensions",
110+
> "apiVersion": "2021-03-01",
111+
> "name": "onedeploy",
112+
> "dependsOn": [
113+
> "[resourceId('Microsoft.Web/Sites', <app-name>')]"
114+
> ],
115+
> "properties": {
116+
> "packageUri": "<zip-package-uri>",
117+
> "type":"zip"
118+
> }
119+
> }
120+
> ```
121+
>
122+
> The \<zip-package-uri> can be a public endpoint, but it's best to use blob storage with a SAS key to protect it. 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).
123+
>
124+
>
125+
125126
## Enable build automation for ZIP deploy
126127
127128
By default, the deployment engine assumes that a ZIP package is ready to run as-is and doesn't run any build automation. To enable the same build automation as in a [Git deployment](deploy-local-git.md), set the `SCM_DO_BUILD_DURING_DEPLOYMENT` app setting by running the following command in the [Cloud Shell](https://shell.azure.com):

0 commit comments

Comments
 (0)