This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var name = '' | |
| var location = '' | |
| resource serverfarm 'Microsoft.Web/serverfarms@2020-12-01' = { | |
| name: name | |
| location: location | |
| kind: 'linux' | |
| tags: {} | |
| properties: { | |
| reserved: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "displayName": "", | |
| "policyType": "Custom", | |
| "mode": "All", | |
| "parameters": {}, | |
| "policyRule": { | |
| "if": { | |
| "allOf": [ | |
| { | |
| "field": "type", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Get-AzManagementGroups { | |
| [CmdletBinding()] | |
| param( | |
| [Parameter(Mandatory = $true)] | |
| [string]$GroupId | |
| ) | |
| process { | |
| Write-Verbose -Message ("Invoking Get-AzManagementGroup -GroupId " + $GroupId) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ------ | |
| // Scopes | |
| // ------ | |
| targetScope = 'subscription' | |
| // --------- | |
| // Modules | |
| // --------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using Microsoft.Extensions.Configuration; | |
| namespace Settings | |
| { | |
| class Program | |
| { | |
| static int Main(string[] args) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "resources": [ | |
| { | |
| "type": "Microsoft.Management/managementGroups", | |
| "apiVersion": "2020-05-01", | |
| "name": "{guid}", | |
| "scope": "/", | |
| "properties": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $baseUrl = "https://api.github.com" | |
| $repository = "" | |
| $username = "" | |
| $password = "" | |
| $inputs = @{ | |
| "ARM_TENANT_ID" = "" | |
| "ARM_SUBSCRIPTION_ID" = "" | |
| "ARM_CLIENT_ID" = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
| "contentVersion": "1.0.0.0", | |
| "parameters": {}, | |
| "functions": [], | |
| "variables": {}, | |
| "resources": [ | |
| { | |
| "type": "Microsoft.Resources/deployments", | |
| "apiVersion": "2019-10-01", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "displayName": "", | |
| "assignmentName": "", | |
| "name": "(GUID)", | |
| "description": "", | |
| "definitionPath": "./folder/policy.rules.json", | |
| "parameterPath": "./folder/policy.parameters.json" | |
| } | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/bash | |
| IFS=$'\n' | |
| MG_NAME='' | |
| az account management-group show -n $MG_NAME -e -r > ./data.json | |
| # Depth 0 | |
| for i in $(cat data.json | jq -rc '.children[]?') | |
| do |