Deploy and Manage Azure COmpute Resources
Deploy and Manage Azure COmpute Resources
azure portal
enter a resource group > create > search for virtual machine > create
set name, region, availability option, set the image
set up the authentication method you prefer
set up disk
creste a new data disk (NB: it's different from the OS disk) if needed
resize a vm
enter the vm > availability + scale (left panel) > size
choose the new size > resize
NB: if the vm is running, you cannot resize to all the possible sizes. Stop it
if you want more options
NB: resizing make the resource temporarly unavailable
encrypt vm disk
powershell
create a key vault
New-AzKeyVault -Name [vault name] -ReosurceGroupName [rg name] -
Location [vault location] -EnabledForDiskEncryption
save vault details in a variable
$jeyvault = Get-AzKeyVault -VaultName [vault name] -ReosurceGroupName
[rg name]
encrypt the disk
Set-AzVmDiskEncruptionExtension -ResourceGroupName [rg name] -VMName
[vm name] -DiskEncryptionKeyVailtUrl $keyvault-VaultUri DiskEncryptionKeyVaultId
$keyvault.resourceId [-SkypVmBackup] -VolumeType All