From 193be0928df1f47a570fe559bd0bfa40a0b88822 Mon Sep 17 00:00:00 2001 From: charlesjoy Date: Wed, 16 Dec 2015 13:46:53 -0800 Subject: [PATCH] File Cleanup --- ...le-Deploy-AzureRM-Template-VM-Creation.ps1 | 26 -- ...edeploy-101-simple-windows-vm-withDNS.json | 246 ------------------ 2 files changed, 272 deletions(-) delete mode 100644 simple-template-examples/vm-creation/Example-Deploy-AzureRM-Template-VM-Creation.ps1 delete mode 100644 simple-template-examples/vm-creation/azuredeploy-101-simple-windows-vm-withDNS.json diff --git a/simple-template-examples/vm-creation/Example-Deploy-AzureRM-Template-VM-Creation.ps1 b/simple-template-examples/vm-creation/Example-Deploy-AzureRM-Template-VM-Creation.ps1 deleted file mode 100644 index d2bb4c2..0000000 --- a/simple-template-examples/vm-creation/Example-Deploy-AzureRM-Template-VM-Creation.ps1 +++ /dev/null @@ -1,26 +0,0 @@ -########## -# DEPLOY # -########## - -# Set Deployment Variables -$myNum = "001" #Modify this per deployment -$RGName = "myRG$myNum" -$myLocation = "local" -$myBlobStorageEndpoint = "blob.azurestack.local" - -# Create Resource Group for Template Deployment -New-AzureRMResourceGroup -Name $RGName -Location $myLocation - -# Deploy Simple IaaS Template -New-AzureRmResourceGroupDeployment ` - -Name "myDeploymen$myNum" ` - -ResourceGroupName $RGName ` - -TemplateFile "c:\templates\azuredeploy-101-simple-windows-vm-withDNS.json" ` - -deploymentLocation $myLocation ` - -blobStorageEndpoint $myBlobStorageEndpoint ` - -newStorageAccountName "mystorage$myNum" ` - -dnsNameForPublicIP "mydns$myNum" ` - -adminUsername "admin" ` - -adminPassword ("User@123" | ConvertTo-SecureString -AsPlainText -Force) ` - -vmName "myVM$myNum" ` - -windowsOSVersion "2012-R2-Datacenter" \ No newline at end of file diff --git a/simple-template-examples/vm-creation/azuredeploy-101-simple-windows-vm-withDNS.json b/simple-template-examples/vm-creation/azuredeploy-101-simple-windows-vm-withDNS.json deleted file mode 100644 index 5c69cc3..0000000 --- a/simple-template-examples/vm-creation/azuredeploy-101-simple-windows-vm-withDNS.json +++ /dev/null @@ -1,246 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "newStorageAccountName": { - "type": "string", - "metadata": { - "description": "Unique DNS Name for the Storage Account where the Virtual Machine's disks will be placed." - } - }, - "vmName": { - "type": "string", - "metadata": { - "description": "Name of the VM." - } - }, - "blobStorageEndpoint": { - "type": "string", - "defaultValue": "blob.azurestack.local", - "allowedValues": [ - "blob.azurestack.local", - "blob.core.windows.net" - ], - "metadata": { - "description": "Blob storage endpoint" - } - }, - - - "deploymentLocation": { - "type": "string", - "defaultValue": "local", - "allowedValues": [ - "local", - "westus", - "eastus" - ], - "metadata": { - "description": "Blob storage endpoint" - } - }, - "adminUsername": { - "type": "string", - "metadata": { - "description": "Username for the Virtual Machine." - } - }, - "adminPassword": { - "type": "securestring", - "metadata": { - "description": "Password for the Virtual Machine." - } - }, - "dnsNameForPublicIP": { - "type": "string", - "metadata": { - "description": "Unique DNS Name for the Public IP used to access the Virtual Machine." - } - }, - "windowsOSVersion": { - "type": "string", - "defaultValue": "2012-R2-Datacenter", - "allowedValues": [ - "2008-R2-SP1", - "2012-Datacenter", - "2012-R2-Datacenter" - ], - "metadata": { - "description": "The Windows version for the VM. This will pick a fully patched image of this given Windows version. Allowed values: 2008-R2-SP1, 2012-Datacenter, 2012-R2-Datacenter." - } - } - }, - "variables": { - "location": "[parameters('deploymentLocation')]", - "imagePublisher": "MicrosoftWindowsServer", - "imageOffer": "WindowsServer", - "OSDiskName": "osdisk", - "nicName": "myVnic", - "addressPrefix": "10.0.0.0/24", - "subnetName": "mySubnet", - "subnetPrefix": "10.0.0.0/24", - "storageAccountType": "Standard_LRS", - "publicIPAddressName": "myPublicIP", - "publicIPAddressType": "Dynamic", - "vmStorageAccountContainerName": "vhds", - "vmSize": "Standard_A1", - "virtualNetworkName": "myVnet", - "vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]", - "subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]", - "networkSecurityGroupName": "mySG" - }, - "resources": [ - { - "apiVersion": "2015-05-01-preview", - "type": "Microsoft.Network/networkSecurityGroups", - "name": "[variables('networkSecurityGroupName')]", - "location": "[variables('location')]", - "tags": { - "displayName": "NetworkSecurityGroup" - }, - "properties": { - "securityRules": [ - { - "name": "rule1", - "properties": { - "protocol": "*", - "sourcePortRange": "*", - "destinationPortRange": "*", - "sourceAddressPrefix": "*", - "destinationAddressPrefix": "*", - "access": "Allow", - "priority": 101, - "direction": "Inbound" - } - } - ] - } - }, - { - "type": "Microsoft.Storage/storageAccounts", - "name": "[parameters('newStorageAccountName')]", - "apiVersion": "2015-06-15", - "location": "[variables('location')]", - "properties": { - "accountType": "[variables('storageAccountType')]" - } - }, - { - "apiVersion": "2015-05-01-preview", - "type": "Microsoft.Network/publicIPAddresses", - "name": "[variables('publicIPAddressName')]", - "location": "[variables('location')]", - "properties": { - "publicIPAllocationMethod": "[variables('publicIPAddressType')]", - "dnsSettings": { - "domainNameLabel": "[parameters('dnsNameForPublicIP')]" - } - } - }, - { - "apiVersion": "2015-05-01-preview", - "type": "Microsoft.Network/virtualNetworks", - "name": "[variables('virtualNetworkName')]", - "location": "[variables('location')]", - "dependsOn": [ - "[concat('Microsoft.Network/networkSecurityGroups/', variables('networkSecurityGroupName'))]" - ], - "properties": { - "addressSpace": { - "addressPrefixes": [ - "[variables('addressPrefix')]" - ] - }, - "subnets": [ - { - "name": "[variables('subnetName')]", - "properties": { - "addressPrefix": "[variables('subnetPrefix')]", - "networkSecurityGroup": { - "id": "[resourceId('Microsoft.Network/networkSecurityGroups', variables('networkSecurityGroupName'))]" - } - } - } - ], - "dhcpOptions": { - "dnsServers": ["192.168.100.2"] - } - } - }, - { - "apiVersion": "2015-05-01-preview", - "type": "Microsoft.Network/networkInterfaces", - "name": "[variables('nicName')]", - "location": "[variables('location')]", - "dependsOn": [ - "[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]", - "[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]" - ], - "properties": { - "ipConfigurations": [ - { - "name": "ipconfig1", - "properties": { - "privateIPAllocationMethod": "Dynamic", - "publicIPAddress": { - "id": "[resourceId('Microsoft.Network/publicIPAddresses',variables('publicIPAddressName'))]" - }, - "subnet": { - "id": "[variables('subnetRef')]" - } - } - } - ] - } - }, - { - "apiVersion": "2015-06-15", - "type": "Microsoft.Compute/virtualMachines", - "name": "[parameters('vmName')]", - "location": "[variables('location')]", - "dependsOn": [ - "[concat('Microsoft.Storage/storageAccounts/', parameters('newStorageAccountName'))]", - "[concat('Microsoft.Network/networkInterfaces/', variables('nicName'))]" - ], - "properties": { - "hardwareProfile": { - "vmSize": "[variables('vmSize')]" - }, - "osProfile": { - "computerName": "[parameters('vmName')]", - "adminUsername": "[parameters('adminUsername')]", - "adminPassword": "[parameters('adminPassword')]" - }, - "storageProfile": { - "imageReference": { - "publisher": "[variables('imagePublisher')]", - "offer": "[variables('imageOffer')]", - "sku": "[parameters('windowsOSVersion')]", - "version": "latest" - }, - "osDisk": { - "name": "osdisk", - "vhd": { - "uri": "[concat('http://',parameters('newStorageAccountName'),'.', parameters('blobStorageEndpoint'), '/', variables('vmStorageAccountContainerName'),'/',variables('OSDiskName'),'.vhd')]" - }, - "caching": "ReadWrite", - "createOption": "FromImage" - } - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "[resourceId('Microsoft.Network/networkInterfaces',variables('nicName'))]" - } - ] - }, - "diagnosticsProfile": { - "bootDiagnostics": { - "enabled": "true", - "storageUri": "[concat('http://',parameters('newStorageAccountName'),'.', parameters('blobStorageEndpoint'))]" - } - } - } - } - ] -} \ No newline at end of file