nikomix/Sync Azure Policy Definitions
Recursively sync custom Azure Policy definitions at tenant scope from a folder structure.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| root | Root folder that contains policy folders. | yes | — |
| tenant-id | Azure tenant ID used for service principal login. | yes | — |
| client-id | Azure service principal app (client) ID. | yes | — |
| client-secret | Azure service principal client secret. | yes | — |
| policy-name-prefix | Optional prefix added to generated policy definition names. | no | "" |
| allow-overwrite | If false, existing policy definitions are not updated. | no | true |
| delete-missing-policies | If true, delete custom tenant policy definitions that are not present in the repository. | no | false |
| delete-missing-initiatives | If true, delete custom tenant policy set definitions not represented by root-level JSON files. | no | false |
| dry-run | If true, only logs what would be created. | no | false |
| log-level | Logging verbosity. One of quiet, normal, verbose. | no | normal |
Outputs
| name | description |
|---|---|
| created-count | Number of policy definitions created or updated. |
| deleted-count | Number of policy definitions deleted because they were missing from the repository. |
| warning-count | Number of warnings for tenant policy definitions not present in the repository. |
| initiative-created-count | Number of policy initiatives created or updated. |
| initiative-deleted-count | Number of policy initiatives deleted because they were missing from root-level JSON files. |
| initiative-warning-count | Number of warnings for tenant policy initiatives not represented by root-level JSON files. |