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
"storageProfile": { | |
"imageReference": { | |
"publisher": "Canonical", | |
"offer": "UbuntuServer", | |
"sku": "16.04.0-LTS", | |
"version": "latest" | |
}, | |
"osDisk": { | |
"name": "myOSDisk", | |
"createOption": "FromImage" |
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
{ | |
"apiVersion": "2015-06-15", | |
"type": "Microsoft.Network/networkSecurityGroups", | |
"name": "VMSecurityGroup", | |
"location": "[resourceGroup().location]", | |
"tags": { | |
"displayName": "VMSecurityGroup" | |
}, | |
"properties": { | |
"securityRules": [ |
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
function Configure-AzureWinRMHTTPS { | |
<# | |
.SYNOPSIS | |
Configure WinRM over HTTPS inside an Azure VM. | |
.DESCRIPTION | |
1. Creates a self signed certificate on the Azure VM. | |
2. Creates and executes a custom script extension to enable Win RM over HTTPS and opens 5986 in the Windows Firewall | |
3. Creates a Network Security Rules for the Network Security Group attached the the first NIC attached the the VM allowing inbound traffic on port 5986 | |
.EXAMPLE | |
Configure-AzureWinRMHTTPS -ResourceGroupName "TestGroup" -VMName "TestVM" |
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
"dependsOn": [ | |
"[resourceId('Microsoft.Resources/deployments', 'ACR')]" | |
], |
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
"registryServer": { | |
"value": "[reference(resourceId('Microsoft.Resources/deployments','ACR')).outputs.registryServer.value]" | |
}, | |
"registryUsername": { | |
"value": "[reference(resourceId('Microsoft.Resources/deployments','ACR')).outputs.registryUsername.value]" | |
}, | |
"registryPassword": { | |
"value": "[reference(resourceId('Microsoft.Resources/deployments','ACR')).outputs.registryPassword.value]" | |
}, |
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": { | |
"registryName": { | |
"type": "string", | |
"metadata": { | |
"description": "The name of the container registry." | |
} | |
}, |
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
"outputs": { | |
"registryServer": { | |
"value": "[reference(resourceId('Microsoft.ContainerRegistry/registries',parameters('acrName'))).loginServer]", | |
"type": "string" | |
}, | |
"registryUsername": { | |
"value": "[parameters('acrName')]", | |
"type": "string" | |
}, | |
"registryPassword": { |
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": { | |
"adminUsername": { | |
"type": "string", | |
"metadata": { | |
"description": "User name for the Virtual Machine." | |
} | |
}, |
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
"properties":{ | |
...stuff_exists_here | |
}, | |
"resources": [ | |
...we_will_put_our_extension_here | |
] |
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
{ | |
"type": "extensions", | |
"name": "DockerExtension", | |
"tags": { | |
"displayName": "DockerExtension" | |
}, | |
"apiVersion": "2016-03-30", | |
"location": "[resourceGroup().location]", | |
"dependsOn": [ | |
"[resourceId('Microsoft.Compute/virtualMachines/', variables('vmName'))]" |