Skip to content

Instantly share code, notes, and snippets.

View krnese's full-sized avatar
💭
Living the dream

Kristian Nese krnese

💭
Living the dream
View GitHub Profile
{
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"addressPrefix": {
"type": "string",
"defaultValue": "192.168.0.0/16"
},
"vnetName": {
"type": "string",
@krnese
krnese / subDelegation
Created December 12, 2022 15:57
Testing
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vNetName": {
"type": "string",
"defaultValue": "ppvnet"
},
"vNetCidr": {
"type": "string",
@krnese
krnese / Region Lockdown
Created October 6, 2022 15:14
PolicyAssignment
{
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"policyAssignmentEnforcementMode": {
"type": "string",
"allowedValues": [
"Default",
"DoNotEnforce"
],
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"managementGroupId": {
"type": "string",
"defaultValue": "/providers/Microsoft.Management/managementGroups/paris"
},
"location": {
"type": "string",
{
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/managementGroupDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"resources": [
{
"type": "Microsoft.Authorization/policyDefinitions",
"apiVersion": "2019-09-01",
"name": "vnet-dns",
"properties": {
@krnese
krnese / DomainJoinVMParams
Created February 15, 2021 17:29
DomainJoinVMParams
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vmSku": {
"value": "Standard_D2_v2"
},
"windowsOsVersion": {
"value": "2019-Datacenter"
},
@krnese
krnese / DomainJoinVM
Created February 15, 2021 17:28
DomainJoinVM
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vmSku": {
"type": "string",
"defaultValue": "Standard_D2_v2"
},
"windowsOsVersion": {
"type": "string",
@krnese
krnese / VMSS to existing vNet with IIS
Created February 11, 2021 23:23
VMSS into existing vNet with IIS
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vmSku": {
"type": "string",
"defaultValue": "Standard_A1_v2",
"metadata": {
"description": "Size of VMs in the VM Scale Set."
}
@krnese
krnese / AAD DS
Created February 8, 2021 19:07
AAD DS
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"sku": {
"type": "String"
},
"domainConfigurationType": {
"type": "String"
},
{
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"resources": [
{
"type": "Microsoft.Authorization/policyDefinitions",
"apiVersion": "2019-06-01",
"name": "keyvaultDiag",
"properties": {