Update deploy.yml #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Storage Account and Log Analytics | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Login to Azure | |
uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: Deploy Bicep Template | |
run: | | |
az deployment group create \ | |
--resource-group rrblobtest \ | |
--template-file bicep/main.bicep \ | |
--parameters location="UK South" \ | |
resourceGroupName="rrblobtest" \ | |
storageAccountName="test123434" \ | |
containerName="images" \ | |
allowedIP="92.16.42.251" \ | |
logAnalyticsWorkspaceName="rrlogtest" |