Skip to content

This repository holds Azure policies to enforce Microsoft's naming convention for Azure resources

License

Notifications You must be signed in to change notification settings

jonathan-vella/Azure-Naming-Convention-Policy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Naming Convention Initiative

This repository holds a bunch of Terraform modules that creates an initiatve holding Azure polices to audit or enfore a specific naming convention. However it doesn't assign anything.

The preset follows Microsoft naming convention which was proposed here

However you can modify them according to your needs. The underyling module uses a notLike condition so you can check for pre- and postfixes, e.g. app-* would match app-some-web-application whereas *-app would match some-web-application-app.

How to use

  1. Download terraform binary from here
  2. Clone this repository
  3. Ensure you are logged into your tenant by using az login
  4. terraform init
  5. terraform plan
  6. terraform apply
  7. Assign initiative according to your needs

Important notes

  • After assigning an initiative it takes up to 30min until it becomes active!

Current limitations

  • Currently grouping of policies within the initiative is not possible due to a terraform bug

Further reading

About

This repository holds Azure policies to enforce Microsoft's naming convention for Azure resources

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Bicep 79.9%
  • PowerShell 20.1%