AzureStack-QuickStart-Templ.../101-simple-windows-vm-custo...
Karsten Bott fd99d6b4e3 Create Linux VM with Managed Disks using Custom Image (#419)
* added create linux vm using managed disk and custom image

* added create linux vm using managed disk and custom image

* renamed port description for ssh

* updated readme

* quickstart images

* bumped compte api back for 1901 compliance

* add windows image
2019-06-13 14:18:34 -07:00
..
images Create Linux VM with Managed Disks using Custom Image (#419) 2019-06-13 14:18:34 -07:00
README.md Create Linux VM with Managed Disks using Custom Image (#419) 2019-06-13 14:18:34 -07:00
azuredeploy.json Create Linux VM with Managed Disks using Custom Image (#419) 2019-06-13 14:18:34 -07:00
azuredeploy.parameters.json Create Linux VM with Managed Disks using Custom Image (#419) 2019-06-13 14:18:34 -07:00
deploy_image.ps1 Create Linux VM with Managed Disks using Custom Image (#419) 2019-06-13 14:18:34 -07:00
metadata.json Create Linux VM with Managed Disks using Custom Image (#419) 2019-06-13 14:18:34 -07:00

README.md

[IaaS windows VM using managed disk from custom image]

This template deploys a Windows VM from a Custom Image using Managed Disk

ManagedDisks

Tags: [Windows]

Endpoint Version Validated
Microsoft Azure Stack - yes

Prerequisites

AzureStack must be 1901 or greater to support Custom Images

Prepare or Download a Customized Windows Image Template Follow the below links to create/download a Windows Image

  1. https://azure.microsoft.com/en-us/documentation/articles/azure-stack-Windows/
  2. https://azure.microsoft.com/en-us/documentation/articles/azure-stack-add-image-pir/

Deployment Options

for all deployments, a vhd file and a ssh public key is required. the powershell script option reads the key from a specified sshKeyfile ( your_keyfile.pub)

ResourceGroup

  1. Deploy to Azure Stack portal using custom deployment Upload the Image to a Storage Account, with Public read Access During Deployment, Specify the imageUri Parameter of the vhd Deploy the Image using the Quickstart templates from Template Deployment template

  2. Deploy through Visual Studio Upload the Image to a Storage Account, with Public read Access During Deployment, Specify the imageUri Parameter of the vhd use the azuredeploy.json and azuredeploy.parameters.json to deploy

  3. Deploy the solution from PowerShell with the following PowerShell script

Follow the below link to configure the Azure Stack environment with Add-AzureRmEnvironment cmdlet and authenticate a user to the environment https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-powershell-configure

the ExampleScript will create

  • a Storage Account and Image Resource Group ( Default: image in image_rg)
  • upload the Windows Image
  • Deploy the vhd to Deployment resource Group
.\deploy_image.ps1 -Image $HOME\Downloads\MyWindowsVM.vhd