Skip to content

Commit 461046c

Browse files
Merge pull request #261480 from cephalin/onedeploy
add onedeploy code
2 parents 782a575 + b2e5c4c commit 461046c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

articles/app-service/deploy-zip.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,28 @@ The above endpoint does not work for Linux App Services at this time. Consider u
101101

102102
-----
103103

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](/azure/templates/microsoft.web/2021-03-01/sites/extensions-onedeploy?pivots=deployment-language-arm-template).
123+
>
124+
>
125+
104126
## Enable build automation for ZIP deploy
105127
106128
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)