forked from Azure/Community-Policy
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (30 loc) · 1.12 KB
/
manage-azure-policy-1e59415b.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: manage-azure-policy-1e59415b
on:
workflow_dispatch:
inputs:
remarks:
description: 'Reason for triggering the workflow run'
required: false
default: 'Updating Azure Policies'
## Uncomment the following if you wish to automatically trigger workflow run with every commit
#
# push:
# paths:
# - 'deploy-diagnostic-settings-to-azure-firewall/policies/Deploy_Diagnostic_Settings_for_Azure_Firewall_to_Log_Analytics_workspace_855bd88d-18bf-42c2-a519-9e7798bb7ee4/**'
# - .github/workflows/manage-azure-policy-1e59415b.yml
jobs:
apply-azure-policy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{secrets.AZURE_CREDENTIALS_1e59415b}}
allow-no-subscriptions: true
- name: Create or Update Azure Policies
uses: azure/manage-azure-policy@v0
with:
paths: |
deploy-diagnostic-settings-to-azure-firewall/policies/Deploy_Diagnostic_Settings_for_Azure_Firewall_to_Log_Analytics_workspace_855bd88d-18bf-42c2-a519-9e7798bb7ee4/**