Skip to content

Commit

Permalink
Add example for creating site extension to web app
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoxing-ms committed Jul 20, 2021
1 parent 1f4a0ea commit 1430b05
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/azure-cli/azure/cli/command_modules/resource/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -1988,6 +1988,13 @@
- name: Create a resource by using the latest api-version whether this version is a preview version.
text: >
az resource create -g myRG -n myApiApp --resource-type Microsoft.web/sites --is-full-object --properties @jsonConfigFile --latest-include-preview
- name: Create a site extension to a web app
text: |
az resource create -g myRG --api-version "2018-02-01" \\
--name "{sitename+slot}/siteextensions/Contrast.NetCore.Azure.SiteExtension" \\
--resource-type Microsoft.Web/sites/siteextensions --is-full-object \\
--properties "{ \\"id\\": \\"Contrast.NetCore.Azure.SiteExtension\\", \\
\\"location\\": \\"West US\\", \\"version\\": \\"1.9.0\\" }"
"""

helps['resource delete'] = """
Expand Down

0 comments on commit 1430b05

Please sign in to comment.