9
Microsoft Azure Training Shawn Ismail [email protected] http://www.cloudranger.net

Microsoft Azure Training - [18] Azure Virtual Machines - Part 5 - Azure Images (Exam 70-533)

Embed Size (px)

Citation preview

Page 1: Microsoft Azure Training - [18] Azure Virtual Machines - Part 5 - Azure Images (Exam 70-533)

Microsoft Azure Training

Shawn [email protected]

http://www.cloudranger.net

Page 2: Microsoft Azure Training - [18] Azure Virtual Machines - Part 5 - Azure Images (Exam 70-533)

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

Page 3: Microsoft Azure Training - [18] Azure Virtual Machines - Part 5 - Azure Images (Exam 70-533)

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

Page 4: Microsoft Azure Training - [18] Azure Virtual Machines - Part 5 - Azure Images (Exam 70-533)

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

Page 5: Microsoft Azure Training - [18] Azure Virtual Machines - Part 5 - Azure Images (Exam 70-533)

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

Page 6: Microsoft Azure Training - [18] Azure Virtual Machines - Part 5 - Azure Images (Exam 70-533)

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

Page 7: Microsoft Azure Training - [18] Azure Virtual Machines - Part 5 - Azure Images (Exam 70-533)

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

Page 8: Microsoft Azure Training - [18] Azure Virtual Machines - Part 5 - Azure Images (Exam 70-533)

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

Page 9: Microsoft Azure Training - [18] Azure Virtual Machines - Part 5 - Azure Images (Exam 70-533)

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