Skip to content

Blazor app to aid in building a bicep template for azure policy initiatives

License

Notifications You must be signed in to change notification settings

Expecho/Policy-Initiative-Bicep-Builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Policy Initiative Bicep Builder

Accessible at https://policyinitiativebuilder.yellowbay-9c92f1d3.westeurope.azurecontainerapps.io/

Tools & Resources

Resource Graph Explorer Queries

Get a list of all exemptions

policyresources
| where type == "microsoft.authorization/policyexemptions"
| project
  id,
  name,
  tenantId,
  resourceGroup,
  subscriptionId,
  policyAssignmentId = properties.policyAssignmentId,
  displayName = properties.displayName,
  description = properties.description,
  category = properties.exemptionCategory,
  properties

Get a list of all policies

PolicyResources
| extend subscriptionId = tostring(properties.subscriptionId)
| join kind=leftouter (
    ResourceContainers 
    | where type=='microsoft.resources/subscriptions'
    | project subscriptionName=name, subscriptionId) on subscriptionId
| where type =~ 'Microsoft.PolicyInsights/PolicyStates'
| project 
    policyAssignmentName = properties.policyAssignmentName,
    policy = properties.policyDefinitionReferenceId, 
    state = properties.complianceState, 
    effect = properties.policyDefinitionAction,
    subscriptionId,
    subscriptionName,
    resourceGroup = properties.resourceGroup, 
    resourceType = properties.resourceType,
    resourceId = properties.resourceId,
    properties
| order by tostring(policyAssignmentName) desc, tostring(['state']) asc

About

Blazor app to aid in building a bicep template for azure policy initiatives

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published