Skip to content

Commit 10827ab

Browse files
committed
edits
1 parent 04e7920 commit 10827ab

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

articles/static-web-apps/publish-bicep.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
22
title: 'Deploy Azure Static Web Apps with Bicep'
3-
description: Deploy Azure Static Web Apps using Bicep including resource creation and configuration. Link your own Azure Function to support your static web app.
3+
description: Deploy Azure Static Web Apps using Bicep including resource creation and configuration. Link your own Azure Functions app to support your static web app.
44
services: static-web-apps
5-
ms.custom:
65
author: craigshoemaker
76
ms.service: azure-static-web-apps
87
ms.topic: how-to
@@ -13,20 +12,20 @@ ms.author: cshoe
1312

1413
# Deploy Azure Static Web Apps with Bicep
1514

16-
Use a bicep file to create your Azure Static Web app to Azure. Bicep is a domain-specific language (DSL) that uses declarative syntax to define and create Azure resources repeatedly in a consistent manner.
15+
Use a Bicep file to create your Azure Static Web app to Azure. Bicep is a domain-specific language (DSL) that uses declarative syntax to define and create Azure resources repeatedly in a consistent manner.
1716

1817
To deploy your static web app, you need to:
1918
* Create resources with Bicep
2019
* Deploy your source code. Use one of the following tools to deploy your app:
2120
* [Azure Developer CLI](/azure/developer/azure-developer-cli)
2221
* [Static Web Apps CLI](https://github.com/Azure/static-web-apps-cli)
23-
* GitHub Actions
22+
* [GitHub Actions](https://docs.github.com/actions)
2423

2524
## Bicep by example
2625

27-
The bicep examples in this article use [Azure Verified Modules (AVM)](https://azure.github.io/Azure-Verified-Modules/) when possible and [bicep](/azure/azure-resource-manager/bicep/) when AVM isn't available. You'll be able to recognize AVM because the referenced module includes `avm/res` such as `br/public:avm/res/web/static-site:0.3.0`.
26+
The Bicep examples in this article use [Azure Verified Modules (AVM)](https://azure.github.io/Azure-Verified-Modules/) when possible and [Bicep](/azure/azure-resource-manager/Bicep/) when AVM isn't available. You'll be able to recognize AVM because the referenced module includes `avm/res` such as `br/public:avm/res/web/static-site:0.3.0`.
2827

29-
```bicep
28+
```Bicep
3029
module swa 'br/public:avm/res/web/static-site:0.3.0' = {
3130
name: 'client'
3231
scope: rg
@@ -39,23 +38,23 @@ module swa 'br/public:avm/res/web/static-site:0.3.0' = {
3938
}
4039
```
4140

42-
AVM allows you to adopt bicep code, which has been built and is maintained by professional engineers fluent in bicep. These modules aren't only supported and maintained, they're opinionated about what proper bicep files look like.
41+
AVM allows you to adopt Bicep code, which has been built and is maintained by professional engineers fluent in Bicep. These modules aren't only supported and maintained, they're opinionated about what proper Bicep files look like.
4342

4443
## Prerequisites
4544

46-
- [Bicep](../azure-resource-manager/bicep/install.md)
47-
- Optional, [Visual Studio Code extension for Bicep](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-bicep). This extension is used to immediately run your bicep file, which creates your resources.
45+
- [Bicep](../azure-resource-manager/Bicep/install.md)
46+
- Optional, [Visual Studio Code extension for Bicep](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-Bicep). This extension is used to immediately run your Bicep file, which creates your resources.
4847

4948
## Create a static web app resource
5049

51-
Create a `main.bicep` file with the bicep code below to:
50+
Create a `main.Bicep` file with the Bicep code below to:
5251

5352
* Create a unique string, `resourceToken`.
5453
* Create tags for the resources. Tags are filterable in the Azure portal.
5554
* Create a unique resource group.
5655
* Create a Static web app.
5756

58-
```bicep
57+
```Bicep
5958
targetScope = 'subscription'
6059
6160
@description('The name of the Azure region that will be used for the deployment.')
@@ -65,7 +64,7 @@ param location string ='eastus2'
6564
var resourceToken = uniqueString(subscription().subscriptionId, location)
6665
6766
@description('Tags to be added to all resources')
68-
var tags = { 'docs-bicep-example-swa': resourceToken }
67+
var tags = { 'docs-Bicep-example-swa': resourceToken }
6968
7069
@description('Create a resource group')
7170
resource rg 'Microsoft.Resources/resourceGroups@2024-03-01' = {
@@ -99,13 +98,13 @@ Save the values of the output variables. You'll need these to configure the reso
9998

10099
To create a static web app with a linked backend function app, you need to use a standard plan for your static web app and complete the following steps.
101100

102-
* [Create the Azure Function app](/azure/azure-functions/functions-create-first-function-bicep). You need the `resourceId` for the Function app, which looks like: `/subscriptions/<SUBSCRIPTION-ID>/resourcegroups/<RESOURCE-GROUP-NAME>/providers/Microsoft.Web/sites/<FUNCTION-APP-NAME>`.
103-
* Create the static web app using the [bicep in the previous section](#create-a-static-web-app-resource).
101+
* [Create the Azure Function app](/azure/azure-functions/functions-create-first-function-Bicep). You need the `resourceId` for the Function app, which looks like: `/subscriptions/<SUBSCRIPTION-ID>/resourcegroups/<RESOURCE-GROUP-NAME>/providers/Microsoft.Web/sites/<FUNCTION-APP-NAME>`.
102+
* Create the static web app using the [Bicep in the previous section](#create-a-static-web-app-resource).
104103
* Link the static web app to the function app.
105104

106-
Create a `config.bicep` file to link the static web app to the function app.
105+
Create a `config.Bicep` file to link the static web app to the function app.
107106

108-
```bicep
107+
```Bicep
109108
targetScope = 'resourceGroup'
110109
111110
@description('The name of the Azure region that will be used for the deployment.')

0 commit comments

Comments
 (0)