You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/app-service/provision-resource-bicep.md
+28-13Lines changed: 28 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,33 @@ This template contains several parameters that are predefined for your convenien
89
89
90
90
---
91
91
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`
::: zone pivot="app-service-bicep-windows-container"
@@ -148,8 +175,6 @@ This template contains several parameters that are predefined for your convenien
148
175
149
176
---
150
177
151
-
::: zone-end
152
-
153
178
## Deploy the template
154
179
155
180
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" &&
165
190
az deployment group create --resource-group myResourceGroup --template-file <path-to-template>
166
191
```
167
192
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`
0 commit comments