Coder Social home page Coder Social logo

razorspoint / azure-devops-azure-policy-extension Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 1.8 MB

Extension for deploying Azure Governance topcis (Policies, Initiatives) with Azure DevOps (formerly VSTS)

Home Page: https://razorspoint.github.io/azure-devops-azure-policy-extension

License: MIT License

PowerShell 100.00%
azure azure-devops policy initiative governance powershell

azure-devops-azure-policy-extension's Introduction

Azure Policy and Governance Pipeline Tasks

Visual Studio Marketplace Version Visual Studio Marketplace Installs - Azure DevOps Extension Visual Studio Marketplace Rating Twitter URL Twitter Follow

This extension is hosted on the Visual Studio Marketplace for Azure DevOps and helps you to deploy Azure Policies into your Azure tenant. Detailed documentation can be found on the GitHub Pages.

Pipeline Status

Azure DevOps tests Azure DevOps coverage

Stage Status History
Overall Build status Azure DevOps Build History
Build Build status
Marketplace Test Release Environment status
Marketplace Live Release Environment status

Contributing

Contributions are very much welcome no matter how small they are!

Just go ahead and fork the repo and raise a pull request. Additionally you can also

  1. Check the Issues page and start contributing to one of the suggested issues.
  2. If you have an new suggestion then raise an issue or comment on an existing issue with what you want to contribute.
  3. Just align shortly with me on the issue. If you want you can go right ahead but to not make unnecessary commit it would be easier to align before coding.
  4. Include a link to the issue in your pull request.
  5. If it is a bug or an error, then you can create the pull request right away.

Coding Guidelines

  1. Follow the general best practice PowerShell coding guidelines
  2. This repo uses PSScriptAnalyzer with the default ruleset. I would like to have no warnings and errors within the build!
  3. Write unit tests with Pester for you code that you contribute.

azure-devops-azure-policy-extension's People

Contributors

sebastianschuetze avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

azure-devops-azure-policy-extension's Issues

Execute Azure Blueprints

More a feature request than an issue.

Az MS have released (in Preview at this time) Azure Blueprints to allow a governed definition of "stuff", it would be great to be able to have a nice integration into DevOps whereby the pipeline can execute a Blueprint as a release step.

Whilst it is currently possible to fire off a REST call, this is neither elegant nor desired but a "user friendly" plugin would be much better.

Not using mode when redeploying

Describe the bug
When re-deploying policies spliited deployment, mode is not used.
When policy initially is deployed mode is set to all, this setting is not used when redeployed.

In the DeploySplittedPolicyDefinition.ps1 i found the following contruct:
if($policy){
Write-Output "Policy '$Name' exists and will be updated."
$policy = Set-AzureRmPolicyDefinition @scope @policyParameter

}else{
Write-Output "Policy '$Name' does not exist and will be created."
$policyParameter.Mode = $Mode
$policy = New-AzureRmPolicyDefinition @scope @policyParameter

}

I think mode is not set, when policy exists?

Allow to deploy multiple Azure Policies by path

On the marketplace the following has been requested:

Can I deploy multiple policies by defining just one task? E.g. Giving path to the folder that contains all the policies definition?

This can be added probably in an easy way.

Deployment Error 'Missing SubscriptionId'

I'm trying to deploy a Policy Definition by using the "Splitted Deployment", but receiving the following error message:
image

Settings of the DevOps Task:
Definition Location: Management Group
Type of Deployment: Splitted Deployment
Mode: all
Name, Displayname, Description, Category: --> All Containing a value
Parameters / Policy Rule: --> Files are published from CI Pipeline

These are the two files I'm trying to deploy (originally JSON files - converted to txt in order to upload here):
Policy_AuditPIP_Parameters copy.txt
Policy_AuditPIP_Rule copy.txt

A Service Connection to a Subscription within the scope of the target management group has been configured and works also (SPN Role: Resource Policy Contributor).

Any ideas if I'm doing something wrong?

No Advanced options set, so cannot change service connection...

Only see a button called "Authorize" there is no drop down or any advanced options and since I.

  1. Do not want to use my personal account to login to Azure.
  2. Do not have access with my personal account as its not the same I use for Azure.

How come you say there is an advanced options and manage connections but I cannot see this in my deployment task?

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.