Skip to content

Instantly share code, notes, and snippets.

{
"if": {
"field": "tags",
"exists": "false"
},
"then": {
"effect": "append",
"details": [
{
"field": "tags",
@averkinderen
averkinderen / PolicyDeployment.ps1
Last active August 10, 2017 18:30
Azure Resource Policy deployment
$policyName = Read-Host "Specify the name of the policy";
$policyDescription = Read-Host "Specify the description of the policy"
$policyFile = Read-Host "Path to json policy file";
#Login to the Azure Resource Management Account
Login-AzureRmAccount
#region Get Azure Subscriptions
$subscriptions = Get-AzureRmSubscription
$menu = @{}