Giter VIP home page Giter VIP logo

azure-policies's Introduction

azure-policies

This repo keeps Azure Policies set and up to date depending on what is on the main branch. The Policies and Policy Sets are based on an export of the Policies from the outputs of the Microsoft CAF module

The policies/ folder contains a sub folder for each policy. Inside each subfolder is a policy.json file describing the policy. The initiatives/ folder contains a sub folder for each policy set. Inside each subfolder is a policy.json file describing the policy set.

The workflow for this repo can keep any or all of the policies up-to-date if properly set to track the changes to each in main.

To run this as an action, you will need to create a service principal with the Resource Policy Contributor role on your root management group. This action can be set to run on all commits to main by changing the workflow file.

Setup

  1. az ad sp create-for-rbac --name "GitHubAzurePoliciesAction" --sdk-auth

  2. Capture the entire json object that is output from this command, and use that to populate your Azure Secret called AZURE_CREDENTIALS.

  3. Then, you will need to go into the Root Management Group in the Azure portal, and grant this SP the Resource Plicy Contributor role on that scope.

  4. You will need to also create a secret called MANAGEMENT_GROUP_ID with your root Management Group's UUID.

For more info, you can reference these pages:

The azure/login GitHub action:

The manage-azure-policy action README (as of 1-Apr-2022 some of the commands listed in this README do not work)

azure-policies's People

Contributors

djtjwillia avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.