From 1430b05c33659d85032e1702f5042a3d66caac79 Mon Sep 17 00:00:00 2001 From: zhoxing Date: Tue, 20 Jul 2021 14:29:27 +0800 Subject: [PATCH] Add example for creating site extension to web app --- src/azure-cli/azure/cli/command_modules/resource/_help.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/azure-cli/azure/cli/command_modules/resource/_help.py b/src/azure-cli/azure/cli/command_modules/resource/_help.py index a02ebd6198c..203de5be716 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/_help.py +++ b/src/azure-cli/azure/cli/command_modules/resource/_help.py @@ -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'] = """