Skip to content

Commit

Permalink
Update deploy-storage-account.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rrichley authored Dec 30, 2024
1 parent a112c14 commit dfed39f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/deploy-storage-account.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy Azure Storage Account and Associate Log Analytics Workspace
name: Deploy Azure Storage Account and Configure Diagnostic Settings

on:
push:
Expand All @@ -22,16 +22,22 @@ jobs:
run: |
az group create --name rrblobtest --location "UK South"
- name: Deploy Storage Account and Log Analytics Workspace
- name: Deploy Storage Account
run: |
az deployment group create \
--resource-group rrblobtest \
--template-file bicep/storage-account.bicep \
--parameters location="UK South" \
storageAccountName="teststorage20241229" \
containerName="images" \
allowedIP="92.16.42.251" \
logAnalyticsWorkspaceName="rrlogtest"
allowedIP="92.16.42.251"
- name: Create Log Analytics Workspace
run: |
az monitor log-analytics workspace create \
--resource-group rrblobtest \
--workspace-name rrlogtest \
--location "UK South"
- name: Associate Log Analytics Workspace with Storage Account
run: |
Expand Down

0 comments on commit dfed39f

Please sign in to comment.