Last active
June 28, 2022 11:46
-
-
Save criscunhasantos/9346a4bdf085d8b734084f16a15687c5 to your computer and use it in GitHub Desktop.
Azure Cheat Sheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$RG = '' | |
$VMNAME = '' | |
$vm = Get-AzVM -ResourceGroup $RG -Name $VMNAME | |
$vm.LicenseType = "Windows_Server" | |
Update-AzVM -ResourceGroupName $RG -VM $vm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$locName = "brazilsouth" | |
$offerName = "WindowsServer" | |
$pubName = "MicrosoftWindowsServer" | |
$skuName = Get-AzVMImageSku -Location $locName -PublisherName $pubName -Offer $offerName | Select Skus | Out-GridView -PassThru | |
Get-AzVMImage -Location $locName -PublisherName $pubName -Offer $offerName -Sku $skuName | Select Version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment