A Microsoft cloud service that enables deployment of Azure services across hybrid and multicloud environments.
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