Created
November 14, 2018 16:55
-
-
Save ducke/5d50b1faf17d1e3d593f47ee58cab58b to your computer and use it in GitHub Desktop.
ARM Template ConfigMgr Technical Preview
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/2015-01-01/deploymentTemplate.json", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"newVMName": { | |
"type": "string", | |
"defaultValue": "ConfigMgrTP" | |
}, | |
"labName": { | |
"type": "string", | |
"defaultValue": "ConfigMgrLab" | |
}, | |
"size": { | |
"type": "string", | |
"defaultValue": "Standard_B2ms" | |
}, | |
"userName": { | |
"type": "string", | |
"defaultValue": "ConfigMgrAdmin" | |
}, | |
"password": { | |
"type": "securestring", | |
"defaultValue": "[[[ConfigMgrAdmin]]" | |
}, | |
"Install_RuckZuck_Packages_packages": { | |
"type": "string", | |
"defaultValue": "" | |
}, | |
"Create_Domain_DomainName": { | |
"type": "string", | |
"defaultValue": "contoso" | |
}, | |
"Create_Domain_DomainFQDN": { | |
"type": "string", | |
"defaultValue": "contoso.com" | |
}, | |
"Create_Domain_SafeModePW": { | |
"type": "securestring", | |
"defaultValue": "[[[ConfigMgrAdmin]]" | |
}, | |
"Configuration_Manager_Technical_Preview_SiteCode": { | |
"type": "string", | |
"defaultValue": "TST" | |
}, | |
"Configuration_Manager_Technical_Preview_SiteName": { | |
"type": "string", | |
"defaultValue": "Test Site" | |
} | |
}, | |
"variables": { | |
"labSubnetName": "[concat(variables('labVirtualNetworkName'), 'Subnet')]", | |
"labVirtualNetworkId": "[resourceId('Microsoft.DevTestLab/labs/virtualnetworks', parameters('labName'), variables('labVirtualNetworkName'))]", | |
"labVirtualNetworkName": "[concat('Dtl', parameters('labName'))]", | |
"vmId": "[resourceId ('Microsoft.DevTestLab/labs/virtualmachines', parameters('labName'), parameters('newVMName'))]", | |
"vmName": "[concat(parameters('labName'), '/', parameters('newVMName'))]" | |
}, | |
"resources": [ | |
{ | |
"apiVersion": "2018-10-15-preview", | |
"type": "Microsoft.DevTestLab/labs/virtualmachines", | |
"name": "[variables('vmName')]", | |
"location": "[resourceGroup().location]", | |
"properties": { | |
"labVirtualNetworkId": "[variables('labVirtualNetworkId')]", | |
"notes": "SQL Server 2016 SP2 Standard on Windows Server 2016", | |
"galleryImageReference": { | |
"offer": "SQL2016SP2-WS2016", | |
"publisher": "MicrosoftSQLServer", | |
"sku": "Standard", | |
"osType": "Windows", | |
"version": "latest" | |
}, | |
"size": "[parameters('size')]", | |
"userName": "[parameters('userName')]", | |
"password": "[parameters('password')]", | |
"isAuthenticationWithSshKey": false, | |
"artifacts": [ | |
{ | |
"artifactId": "[resourceId('Microsoft.DevTestLab/labs/artifactSources/artifacts', parameters('labName'), 'public repo', 'windows-ruckzuck')]", | |
"parameters": [ | |
{ | |
"name": "packages", | |
"value": "[parameters('Install_RuckZuck_Packages_packages')]" | |
} | |
] | |
}, | |
{ | |
"artifactId": "[resourceId('Microsoft.DevTestLab/labs/artifactSources/artifacts', parameters('labName'), 'public repo', 'windows-CreateDomain')]", | |
"parameters": [ | |
{ | |
"name": "DomainName", | |
"value": "[parameters('Create_Domain_DomainName')]" | |
}, | |
{ | |
"name": "DomainFQDN", | |
"value": "[parameters('Create_Domain_DomainFQDN')]" | |
}, | |
{ | |
"name": "SafeModePW", | |
"value": "[parameters('Create_Domain_SafeModePW')]" | |
} | |
] | |
}, | |
{ | |
"artifactId": "[resourceId('Microsoft.DevTestLab/labs/artifactSources/artifacts', parameters('labName'), 'public repo', 'windows-ConfigurationManagerTechnicalPreview')]", | |
"parameters": [ | |
{ | |
"name": "SiteCode", | |
"value": "[parameters('Configuration_Manager_Technical_Preview_SiteCode')]" | |
}, | |
{ | |
"name": "SiteName", | |
"value": "[parameters('Configuration_Manager_Technical_Preview_SiteName')]" | |
} | |
] | |
} | |
], | |
"labSubnetName": "[variables('labSubnetName')]", | |
"disallowPublicIpAddress": true, | |
"storageType": "Standard", | |
"allowClaim": false, | |
"networkInterface": { | |
"sharedPublicIpAddressConfiguration": { | |
"inboundNatRules": [ | |
{ | |
"transportProtocol": "tcp", | |
"backendPort": 3389 | |
} | |
] | |
} | |
} | |
} | |
} | |
], | |
"outputs": { | |
"labVMId": { | |
"type": "string", | |
"value": "[variables('vmId')]" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment