Skip to content

Commit ad2816d

Browse files
committed
updating windows tab
1 parent 0d011c9 commit ad2816d

File tree

1 file changed

+28
-13
lines changed

1 file changed

+28
-13
lines changed

articles/app-service/provision-resource-bicep.md

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,33 @@ This template contains several parameters that are predefined for your convenien
8989

9090
---
9191

92+
## Deploy the template
93+
94+
Copy and paste the template to your preferred editor/IDE and save the file to your local working directory.
95+
96+
Azure CLI is used here to deploy the template. You can also use the Azure portal, Azure PowerShell, and REST API. To learn other deployment methods, see [Bicep Deployment Commands](../azure-resource-manager/bicep/deploy-cli.md).
97+
98+
The following code creates a resource group, an App Service plan, and a web app. A default resource group, App Service plan, and location have been set for you. Replace `<app-name>` with a globally unique app name (valid characters are `a-z`, `0-9`, and `-`).
99+
100+
Open up a terminal where the Azure CLI is installed and run the code below to create a Node.js app on Linux.
101+
102+
```azurecli-interactive
103+
az group create --name myResourceGroup --location "southcentralus" &&
104+
az deployment group create --resource-group myResourceGroup --template-file <path-to-template>
105+
```
106+
107+
To deploy a different language stack, update `linuxFxVersion` with appropriate values. Samples are shown below. To show current versions, run the following command in the Cloud Shell: `az webapp config show --resource-group myResourceGroup --name <app-name> --query linuxFxVersion`
108+
109+
| Language | Example |
110+
|-------------|------------------------------------------------------|
111+
| **.NET** | linuxFxVersion="DOTNETCORE&#124;3.0" |
112+
| **PHP** | linuxFxVersion="PHP&#124;7.4" |
113+
| **Node.js** | linuxFxVersion="NODE&#124;10.15" |
114+
| **Java** | linuxFxVersion="JAVA&#124;1.8 &#124;TOMCAT&#124;9.0" |
115+
| **Python** | linuxFxVersion="PYTHON&#124;3.8" |
116+
117+
---
118+
92119
::: zone-end
93120

94121
::: zone pivot="app-service-bicep-windows-container"
@@ -148,8 +175,6 @@ This template contains several parameters that are predefined for your convenien
148175

149176
---
150177

151-
::: zone-end
152-
153178
## Deploy the template
154179

155180
Copy and paste the template to your preferred editor/IDE and save the file to your local working directory.
@@ -165,17 +190,7 @@ az group create --name myResourceGroup --location "southcentralus" &&
165190
az deployment group create --resource-group myResourceGroup --template-file <path-to-template>
166191
```
167192

168-
To deploy a different language stack, update `linuxFxVersion` with appropriate values. Samples are shown below. To show current versions, run the following command in the Cloud Shell: `az webapp config show --resource-group myResourceGroup --name <app-name> --query linuxFxVersion`
169-
170-
| Language | Example |
171-
|-------------|------------------------------------------------------|
172-
| **.NET** | linuxFxVersion="DOTNETCORE&#124;3.0" |
173-
| **PHP** | linuxFxVersion="PHP&#124;7.4" |
174-
| **Node.js** | linuxFxVersion="NODE&#124;10.15" |
175-
| **Java** | linuxFxVersion="JAVA&#124;1.8 &#124;TOMCAT&#124;9.0" |
176-
| **Python** | linuxFxVersion="PYTHON&#124;3.8" |
177-
178-
---
193+
::: zone-end
179194

180195
## Validate the deployment
181196

0 commit comments

Comments
 (0)