Skip to content

Commit dfed39f

Browse files
authored
Update deploy-storage-account.yml
1 parent a112c14 commit dfed39f

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/deploy-storage-account.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy Azure Storage Account and Associate Log Analytics Workspace
1+
name: Deploy Azure Storage Account and Configure Diagnostic Settings
22

33
on:
44
push:
@@ -22,16 +22,22 @@ jobs:
2222
run: |
2323
az group create --name rrblobtest --location "UK South"
2424
25-
- name: Deploy Storage Account and Log Analytics Workspace
25+
- name: Deploy Storage Account
2626
run: |
2727
az deployment group create \
2828
--resource-group rrblobtest \
2929
--template-file bicep/storage-account.bicep \
3030
--parameters location="UK South" \
3131
storageAccountName="teststorage20241229" \
3232
containerName="images" \
33-
allowedIP="92.16.42.251" \
34-
logAnalyticsWorkspaceName="rrlogtest"
33+
allowedIP="92.16.42.251"
34+
35+
- name: Create Log Analytics Workspace
36+
run: |
37+
az monitor log-analytics workspace create \
38+
--resource-group rrblobtest \
39+
--workspace-name rrlogtest \
40+
--location "UK South"
3541
3642
- name: Associate Log Analytics Workspace with Storage Account
3743
run: |

0 commit comments

Comments
 (0)