Upload
shawn-ismail
View
105
Download
2
Embed Size (px)
Citation preview
Shawn Ismail Cloud Architect
@shawnismail [email protected]
https://www.linkedin.com/in/shawnismail
http://www.2tolead.comhttp://www.cloudranger.net
Azure Virtual Machines - Part 5Azure Images
Azure Virtual Machines - Part 5 – Azure Images
• On-premise equivalent is a “Template”• It is the base OS image for a new VM
• Images can be used for quick deployments of VMs and even backups
• OS Image – Only the OS disk• VM Image – OS Disk with Data Disk : Modern Images
Azure Virtual Machines - Part 5 – Azure Images
There are two types of Azure Images:1. Generalized/Generic Images2. Specialized Images
Azure Images are created in 2 ways:3. Capturing an existing VM running in Azure4. Uploading from on-premise
Azure Virtual Machines - Part 5 – Azure Images
Generic ImagesThe are generic in nature; tools are run to generalize the VMSysprep in Windows and waagent in Linux
Azure Virtual Machines - Part 5 – Azure Images
Capture an Azure VM from Magement Portal1. Run Sysprep2. Capture from Management Portal3. Once captured, the VM is deleted. 4. Images can be seen in Images TAB. 5. The VHD for the VM can be deleted
From PowerShellSave-AzureVMImage -ServiceName "crangervm500" -Name "crangervm500" -ImageName "MyAwesomeVMImage" -ImageLabel "My Custom Image" -OSState Generalized
Azure Virtual Machines - Part 5 – Azure Images
Specialized ImagesNo need to run sysprepVM Can be running while Capturing. Ideally turn off the VMDo not check "I have run Sysprep on the VM" while CapturingSince the VM keeps all properties of the VM, it can be used like a checkpoint of a VM
From PowerShellSave-AzureVMImage -ServiceName "crangervm500" -Name "crangervm500" -ImageName "MyAwesomeVMImage" -ImageLabel "My Custom Image" -OSState Specialized
Azure Virtual Machines - Part 5 – Azure Images
Upload OS VHDOnly can upload VHD - Convert-VHD client01.vhdx client01.vhdUploading process is same as uploading a Data Disk from on-premiseOnce uploaded, the VHD file can be used to spin a VM or create an Image
Azure Virtual Machines - Part 5Azure Images
Training Site: http://www.cloudranger.net/azure-training
YouTube: https://www.youtube.com/c/CloudrangerNetwork
Twitter : @shawnismail
Email : [email protected]
LinkedIn: https://www.linkedin.com/in/shawnismail
http://www.2tolead.comhttp://www.cloudranger.net