How to upgrade older windows server o/s to server 2022 in azure?
$resourceGroup = "WindowsServerUpgrades"
$location = "WestUS2"
$diskName = "WindowsServer2022UpgradeDisk"
$sku = "server2022Upgrade"
$publisher = "MicrosoftWindowsServer"
$offer = "WindowsServerUpgrade"
$managedDiskSKU = "Standard_LRS"
$versions = Get-AzVMImage -PublisherName $publisher -Location $location -Offer $offer -Skus $sku | sort-object -Descending {[version] $_.Version }
$latestString = $versions[0].Version
$image = Get-AzVMImage -Location $location `
-PublisherName $publisher `
-Offer $offer `
-Skus $sku `
-Version $latestString
if (-not (Get-AzResourceGroup -Name $resourceGroup -ErrorAction SilentlyContinue)) {
New-AzResourceGroup -Name $resourceGroup -Location $location
}
if ($zone){
$diskConfig = New-AzDiskConfig -SkuName $managedDiskSKU `
-CreateOption FromImage `
-Zone $zone `
-Location $location
} else {
$diskConfig = New-AzDiskConfig -SkuName $managedDiskSKU `
-CreateOption FromImage `
-Location $location
}
Set-AzDiskImageReference -Disk $diskConfig -Id $image.Id -Lun 0
New-AzDisk -ResourceGroupName $resourceGroup `
-DiskName $diskName `
-Disk $diskConfig
.\setup.exe /auto upgrade /dynamicupdate disable
Azure Arc Enabled ESU's - • Azure - Arc Enabled ESU's !!!
Azure Arc Onboarding - • Azure Arc - Onboarding !!!
Azure AI + Custom Data + Chat Bot !!! 😎 - • Azure AI + Custom Data + Chat Bot !!! 😎
MS Entra ID Logs Archive !!! - • MS Entra ID Logs Archive !!!
Azure - IOT Hub + Stream Analytics + Power BI !!! - • Azure - IOT Hub + Stream Analytics + ...
Azure - Analyze Real Time Data !!! - • Azure - Analyze Real Time Data !!!
Azure AD PIM (Part 2) - • Azure AD PIM (Part 2) !!!
Azure AD PIM Explained (Part 1) - • Azure AD PIM Explained !!! (Part 1)
Azure Web APP Service "Access Restriction"(Part 4) - • Azure APP Service "Access Restriction...
Azure App Service Scaling(Part 3) - • Azure App Service Scaling !!!(Part 3)
Deployment Slots in Azure APP Service Explained (Part 2) - • Deployment Slots Explained !!! (Part 2)
Azure APP Service , APP Service Plan Tiers Explained(Part 1) - • Azure APP & APP Service Plan Explaine...
Azure - How to create azure AD B2C Tenant? - • Azure - How to create azure AD B2C Te...
AVD + INTUNE + Azure AD - • AVD + INTUNE + Azure AD !!!
How to assign/remove license within azure AD - • How to assign/remove license within a...
Azure Stack HCI 😎 - • Azure Stack HCI !!!
How to upgrade to azure Defender - • How to upgrade to azure Defender?
Do I need Azure Security Center ? 🙂 - • Do I need Azure Security Center ? 🙂
MFA in azure AD(Do I Need to PAY)🤔 - • MFA in azure AD(Do I Need to PAY) ??? 🤔🤔
Who is responsible for security in cloud ? 🙂 - • Who is responsible for security in cl...
Azure - AVD Deployment with Cloud only Identity - • Azure - AVD Deployment with Cloud onl...
Azure AD - Company Branding - • Azure AD - Company Branding !!!
Azure Migrate v/s Azure Site Recovery - • Azure Migrate v/s Azure Site Recovery...
Azure - What is Hybrid Identity ? - • Azure - What is Hybrid Identity ?
Azure Virtual Desktop - "VM on Demand" 🙋♂️ - • Azure Virtual Desktop - "VM on Demand...
Windows 365 (CLOUD PC EXPLAINED)🤔 - • Windows 365 (CLOUD PC EXPLAINED) !!! 🤔
Azure - Resource Mover Explained - • Azure - Resource Mover Explained !!!
Azure - How to enable/disable MFA in azure AD? - • Azure - How to enable/disable MFA in ...
Azure - Application GW with WAF & APP Service Deployment - • Azure - Application GW with WAF & APP...
Azure - "WVD Zero to Hero"😎 - • Azure - AVD Zero to Hero !!!😎😎😎
Azure - Radius Server , P2S VPN & AD Domain Services Authentication !!! - • Azure - Radius Server , P2S VPN & AD ...
Azure - Update Management - • Azure - Update Management !!!
Azure - Web App & Sql DB - • Azure - Web App & Sql DB
Azure - Private Link - • Azure - Private Link
Azure - Role Based access Control Explained - • Azure - Role Based access Control (RB...
Azure - Application Security Group Explained - • Azure - Application Security Group Ex...
Azure - Data Lake & Blob Storage Comparison - • Azure - Data Lake & Blob Storage Comp...
Azure - Create Replica DC in Azure - • Azure - Create Replica DC in Azure?
Azure - Bastion Service Explained - • Azure - Bastion Service Explained !!!
Azure - Global Vnet Peering - • Azure - Global Vnet Peering !!!