Code Monkey home page Code Monkey logo

azure-policy-engine's Introduction

Azure-Policy-Engine

Microsoft Azure Policy is a useful tool to enforce organizational standards and ensure compliance but managing policy purely though the Azure Portal is labour intensive and repetitive which makes a programmatic solution that manages Azure Policy useful. The Policy Engine is a software tool to interface with Azure Policy without having to use the Portal, Azure CLI or REST API calls which are all slower than a pure Python3 solution using the Azure SDK for Python. Create/Manage/Delete Azure Policies at specific scopes with a few simple commands. The Policy Engine comes with a github actions workflow which ensures the code is properly linted and passes a suite of unit and integration tests on commit.

Installation

  1. Clone the repo
git clone https://github.com/Michael-Wang98/Azure-Policy-Engine.git
  1. Create a .env file in the local directory and enter the Azure credentials of the client using the policy engine according to the template shown below links to documentation for getting these values below
AZURE_CLIENT_ID = <YOUR_CLIENT_ID_HERE>
AZURE_CLIENT_SECRET = <YOUR_CLIENT_SECRET_HERE>
AZURE_TENANT_ID = <YOUR_TENANT_ID_HERE>
AZURE_SUBSCRIPTION_ID = <YOUR_SUBSCRIPTION_ID_HERE>
  1. Install dependencies as specified in the requirements.txt file

Technologies

Project is created with:

  • Python3.8

  • Azure SDK

Usage

Work in Progress

Roadmap

  • Add functionality for Azure Policy Initiatives
  • Expand test suite
  • Specify structure to arrange policy definition templates and initiative templates

License

Distributed under the MIT License. See LICENSE for more information.

Useful Links

What is Azure Policy?

How to get Azure Client ID

How to get Azure Client Secret

How to get Azure Tenant ID

How to get Azure Subscription ID

azure-policy-engine's People

Contributors

michael-wang98 avatar michaelh5w avatar

Watchers

 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.