Answer accepted by question author
Hello Martin, it looks like what you’re hitting is expected behavior—on Windows Server Datacenter 2022 that wasn’t deployed as an Azure Marketplace VM, the “Use pay-as-you-go billing” choice is deliberately unavailable (greyed out). That option only becomes selectable when the underlying OS is a pay-as-you-go SKU from Azure Marketplace. On Standard you were “cheating” by installing the Evaluation edition locally and then switching license types in-place, but with Datacenter that isn’t exposed unless you’re on an Azure‐provisioned image.
Here’s what you can try:
- Deploy a Windows Server Datacenter 2022 VM from the Azure Marketplace
- Spin up a new VM in Azure using the Windows Server Datacenter 2022 image
- Connect it to Azure Arc (using the AzureConnectedMachineAgent)
- When you run the Azure Arc > Servers > Extensions > + Add > Azure extension for SQL Server flow, you’ll now see Use pay-as-you-go billing enabled.
- If you need to stay strictly “on-prem” or non-Marketplace, use the SQL setup command line to force the Azure pay-as-you-go license acceptance. From an elevated prompt on your Datacenter box run something like:
That parameter set installs the Database Engine and registers the pay-as-you-go license—bypassing the GUI limitation.Setup.exe /Q /IAcceptSQLServerLicenseTerms /IAcceptAzureLicenseTerms /ACTION=INSTALL /FEATURES=SQLEngine,FullText /INSTANCENAME=MSSQLSERVER - Once SQL Server is up, onboard the instance to Azure Arc (or re-run the extension install) to complete billing registration.
Hope that helps unblock you. If you’re still seeing “greyed out” or errors, can you share:
• Are these truly Azure-provisioned VMs or on-prem/VMware?
• Exact OS SKU output from winver or systeminfo
• Versions of AzureConnectedMachineAgent & Azure SQL Arc Extension
• Any lines from C:\ProgramData\GuestConfig\extension_logs\Microsoft.AzureData.WindowsAgent.SqlServer\unifiedagent.log or the deployer.log
That’ll help narrow it down.
References
• Troubleshoot Azure extension for SQL Server
• Install & connect to Azure via CLI
-
Bharath Y P 9,730 Reputation points • Microsoft External Staff • Moderator
Hello Martin, I just wanted to kindly follow up to check, If the provided answer is helpful, it would be great if you could accept the answer and up-vote. This helps other community members who might face the same issue. Thanks
-
Knapek, Martin 20 Reputation points
Its an on-prem win server datacenter 2022 running on WMware, within my lab with win server datacenter 2022 Evaluation I did the same process and its working.
On this VMwhare is Windows Server Datacenter 2022 onPremise) installed from original ISO image, which is licenseed per vCOREWe prepared a the SERVER fully ARC Enabled through the process:
run RegisterSqlServerArc script for LicencedOnly type, so we have WindowsAget.SQLServer extension ready, and then run .\modify-arc-sql-license-type_offset.ps1as (second, third attachment)
All is ready as showed in attached .zip
Then we do not have binary installation of SQL Server without Evaluation element, so we run classic SQL2025-SSEI-Eval installation for SQL Server , there is no option to go for PAYG during SQL setup
__ I did another series of tests and:__
1) Server 2022 Datacenter licensed – PAYG does not work
2) Server 2022 Datacenter licensed with vmware tools – PAYG does not work
3) Server 2022 Datacenter evaluation – PAYG does not work
4) Server 2019 Standard with HW version 17 (ESXi 7.0) and E1000E network card – PAYG does not work
5) Windows 11 on a regular PC – PAYG does work
6) Windows 2022 Datacenter nested under Hyper-V under a server in our vmware – PAYG works
So I don't think the problem is in the W2022 datacenter server itself, but in some vmware setting, or in the specific HW that vmware provides.AzureArcConnected.png
Sign in to comment
