Skip to content

Commit 0c9027a

Browse files
authored
Fixes YML file 7-create-environment.md
1 parent 33d25da commit 0c9027a

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

content/guided-workshop/exercises/7-create-environment.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -139,27 +139,27 @@ You've now configured Azure and added secrets & variables to your repository. Yo
139139
name: Create Azure resources
140140
on: [workflow_dispatch]
141141
jobs:
142-
build-and-deploy:
142+
build-and-deploy:
143143
runs-on: ubuntu-latest
144144
steps:
145-
146-
# Checkout code
147-
- uses: actions/checkout@main
148-
149-
# Log into Azure
150-
- uses: azure/login@v1
145+
146+
# Checkout code
147+
- uses: actions/checkout@main
148+
149+
# Log into Azure
150+
- uses: azure/login@v1
151151
with:
152-
creds: ${{ secrets.AZURE_CREDENTIALS }}
153-
154-
# Deploy Bicep file
155-
- name: create resources
152+
creds: ${{ secrets.AZURE_CREDENTIALS }}
153+
154+
# Deploy Bicep file
155+
- name: create resources
156156
uses: azure/arm-deploy@v1
157157
with:
158-
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION }}
159-
resourceGroupName: ${{ vars.AZURE_RG }}
160-
template: ${{ github.workspace }}/config/main.bicep
161-
parameters: 'namePrefix=${{ vars.AZURE_PREFIX }}'
162-
failOnStdErr: false
158+
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION }}
159+
resourceGroupName: ${{ vars.AZURE_RG }}
160+
template: ${{ github.workspace }}/config/main.bicep
161+
parameters: 'namePrefix=${{ vars.AZURE_PREFIX }}'
162+
failOnStdErr: false
163163
```
164164
165165
The workflow is set to run on `workflow_dispatch`, which is a manual trigger. The steps checkout the code, log into Azure using the credentials you created and stored previously, then create the resources defined in the **main.bicep** in the resource group you created with the prefix you defined. Notice how secrets are read by using `${{ secrets.NAME }}` and variables with `${{ variables.NAME }}`.

0 commit comments

Comments
 (0)