This file contains 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": { | |
"location": { | |
"type": "string" | |
}, | |
"VNetName": { | |
"type": "string", | |
"metadata": { |
This file contains 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/deploymentParameters.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"location": { | |
"value": "eastus" | |
}, | |
"VNetName": { | |
"value": "super-vnet" | |
}, |
This file contains 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
$allPolicies = Get-AzPolicyDefinition | |
$policies = [System.Collections.ArrayList]::new() | |
foreach ($policy in $allPolicies) { | |
if ('DeployIfNotExists' -in $policy.Properties.Parameters.effect.allowedValues) { | |
$policyInfo = [PSCustomObject]@{ | |
Name = $policy.Name | |
DisplayName = $policy.Properties.DisplayName | |
PolicyDefinitionId = $policy.PolicyDefinitionId | |
} |
This file contains 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 massiveBiceps = [ | |
'Arnold' | |
'Sylvester' | |
'Dolph' | |
] | |
resource biceps 'my.provider/strongMan@2021-03-01' = [for name in massiveBiceps: { | |
name: name | |
location: resourceGroup().location | |
}] |
This file contains 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 vnets = [ | |
{ | |
name: 'landingzone-1-vnet' | |
addressPrefix: '10.1.0.0/24' | |
} | |
{ | |
name: 'landingzone-2-vnet' | |
addressPrefix: '10.2.0.0/24' | |
} | |
] |
This file contains 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 vnets = [ | |
{ | |
name: 'landingzone-1-vnet' | |
addressPrefix: '10.1.0.0/24' | |
} | |
{ | |
name: 'landingzone-2-vnet' | |
addressPrefix: '10.2.0.0/24' | |
} | |
] |
This file contains 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 vnets = [ | |
{ | |
name: 'landingzone-1-vnet' | |
addressPrefix: '10.1.0.0/24' | |
enabled: true | |
} | |
{ | |
name: 'landingzone-2-vnet' | |
addressPrefix: '10.2.0.0/24' | |
enabled: false |
This file contains 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
resource virtualNetworks 'Microsoft.Network/virtualNetworks@2020-06-01' = [for i in range(1,4): { | |
name: 'landingzone-${i}-vnet' | |
location: resourceGroup().location | |
properties: { | |
addressSpace: { | |
addressPrefixes: [ | |
'10.${i}.0.0/24' | |
] | |
} | |
} |
This file contains 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 vnets = [ | |
{ | |
namePrefix: 'sandbox' | |
addressPrefix: '10.1.0.0/24' | |
} | |
{ | |
namePrefix: 'sandbox' | |
addressPrefix: '10.2.0.0/24' | |
} | |
{ |
This file contains 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 subnets = [ | |
{ | |
name: 'frontend' | |
subnetPrefix: '10.1.0.0/26' | |
} | |
{ | |
name: 'backend' | |
subnetPrefix: '10.1.0.64/26' | |
} | |
{ |
OlderNewer