Azure Stack Hub 市场常见问题解答Azure Stack Hub Marketplace FAQ

本文解答有关 Azure Stack Hub 市场中市场项的一些常见问题。This article answers some frequently asked questions about Marketplace items in the Azure Stack Hub Marketplace.

市场项Marketplace items

对于 Azure Stack 中心市场项的支持问题,应联系谁?Who should I contact for support issues with Azure Stack Hub Marketplace items?

Azure Marketplace 支持指南还扩展到 Azure Stack 集线器 Marketplace 项。Azure Marketplace support guidance extends to Azure Stack Hub Marketplace items as well. 发布者负责在 Azure Stack 中心市场为其产品提供技术支持。Publishers are responsible for providing technical support for their products on the Azure Stack Hub Marketplace. 若要了解有关 Azure Marketplace 项的支持指南的详细信息,请参阅 Azure Marketplace 常见问题解答一文中的支持部分To learn more about support guidance for Azure Marketplace items, see the support section in the Azure Marketplace FAQs article.

如何更新到较新的 Windows 映像?How do I update to a newer Windows image?

首先,请确定是否有任何 Azure 资源管理器模板引用了特定的版本。First, determine if any Azure Resource Manager templates refer to specific versions. 如果有,请更新这些模板,或保留旧的映像版本。If so, update those templates, or keep older image versions. 最好是使用 version: latestIt's best to use version: latest.

接下来,如果任何虚拟机规模集引用特定版本,则应考虑是否会在以后对其进行缩放,并决定是否保留旧版本。Next, if any virtual machine scale sets refer to a specific version, you should think about whether these will be scaled later, and decide whether to keep older versions. 如果上述两个条件都不适用,请先在 Azure Stack Hub 市场中删除旧映像,然后下载新映像。If neither of these conditions apply, delete older images in Azure Stack Hub Marketplace before downloading newer ones. 如果原始映像是使用“市场管理”下载的,请使用“市场管理”将其删除。Use Marketplace management to delete them if that's how the original was downloaded. 然后下载新版本。Then download the newer version.

Azure Stack Hub 市场上的 Windows Server 映像有哪些许可选项?What are the licensing options for Windows Server images on Azure Stack Hub Marketplace?

Microsoft 通过 Azure Stack 中心市场提供了两个版本的 Windows Server 映像。Microsoft offers two versions of Windows Server images through Azure Stack Hub Marketplace. 在 Azure Stack Hub 环境中只能使用此映像的一个版本。Only one version of this image can be used in an Azure Stack Hub environment.

  • 付即用 (PAYG):这些映像将运行完整的 Windows 计量器。Pay as you go (PAYG): These images run the full-price Windows meters. 谁应使用此选项:使用消耗量计费模型的企业协议 (EA) 客户;不想要使用 SPLA 许可的 CSP。Who should use this option: Enterprise Agreement (EA) customers who use the Consumption billing model; CSPs who don't want to use SPLA licensing.
  • 自带许可证 (BYOL) :这些映像运行基本计量器。Bring Your Own License (BYOL): These images run basic meters. 谁应使用此选项:具有 Windows Server 许可证的 EA 客户、使用 SPLA 许可的 CSP。Who should use this option: EA customers with a Windows Server license; CSPs who use SPLA licensing.

Azure Stack Hub 不支持 Azure 混合使用权益 (AHUB)。Azure Hybrid Use Benefit (AHUB) is not supported on Azure Stack Hub. 通过“容量”模型获取许可证的客户必须使用 BYOL 映像。Customers who license through the "Capacity" model must use the BYOL image. 如果你正在使用 Azure Stack 开发工具包 (ASDK) 进行测试,则可以使用上述任一选项。If you're testing with the Azure Stack Development Kit (ASDK), you can use either of these options.

如果下载了错误的版本并将其提供给租户/用户,该怎么办?What if I downloaded the wrong version to offer my tenants/users?

请先通过“市场管理”删除错误的版本。Delete the incorrect version first through marketplace management. 等待删除操作完成(请查看完成通知,而不要查看“市场管理”边栏选项卡)。Wait for it to complete (look at the notifications for completion, not the Marketplace Management blade). 然后下载正确的版本。Then download the correct version.

如果下载了两个版本的映像,则最终客户在 Azure Stack Hub 市场中只能看到最新版本。If you download both versions of the image, only the latest version is visible to end customers in Azure Stack Hub Marketplace.

如果我的用户在旧版 Windows 生成中错误地选中了“我有许可证”框,但他们其实并没有许可证,该怎么办?What if my user incorrectly checked the "I have a license" box in previous Windows builds, and they don't have a license?

可以通过运行以下脚本,更改许可证模型属性,使其从 BYOL 切换到 PAYG 模型:You can change the license model attribute to switch from BYOL to the PAYG model by running the following script:

$vm= Get-Azvm -ResourceGroup "<your RG>" -Name "<your VM>"
$vm.LicenseType = "None"
Update-AzVM -ResourceGroupName "<your RG>" -VM $vm

可以通过运行以下命令来检查 VM 的许可证类型。You can check the license type of your VM by running the following command. 如果许可证模型显示 Windows_Server,则按 BYOL 价格收费。If the license model says Windows_Server, you'll be charged for the BYOL price. 否则,将按 PAYG 模型对 Windows 计量器收费:Otherwise, you'll be charged for the Windows meter per the PAYG model:

$vm | ft Name, VmId,LicenseType,ProvisioningState

我有一个旧版映像,而我的用户忘记了选中“我有许可证”框,或者我们使用自己的映像且拥有企业协议权利,该怎么办?What if I have an older image and my user forgot to check the "I have a license" box, or we use our own images and we do have Enterprise Agreement entitlement?

可以运行以下命令将许可模型属性更改为 BYOL 模型:You can change the license model attribute to the BYOL model by running the following commands:

$vm= Get-Azvm -ResourceGroup "<your RG>" -Name "<your VM>"
$vm.LicenseType = "Windows_Server"
Update-AzVM -ResourceGroupName "<your RG>" -VM $vm

对于使用 Windows Server 的其他 VM (例如 SQL 或 Machine Learning Server),该如何处理?What about other VMs that use Windows Server, such as SQL or Machine Learning Server?

这些映像确实会应用 licenseType 参数,因此它们是 PAYG。These images do apply the licenseType parameter, so they're PAYG. 可以设置此参数(请参阅以前的常见问题解答)。You can set this parameter (see the previous FAQ answer). 这只适用于 Windows Server 软件,而不适用于 SQL 等分层产品(需要自带许可证)。This only applies to the Windows Server software, not to layered products such as SQL, which require you to bring your own license. PAYG 许可不适用于分层软件产品。PAYG licensing doesn't apply to layered software products.

如果版本为 XX.X.20190410 或更高版本,则只能更改 Azure Stack Hub 市场中 SQL Server 映像的 licenseType 属性 。You can only change the licenseType property for SQL Server images from Azure Stack Hub Marketplace if the version is XX.X.20190410 or higher. 如果正在运行来自 Azure Stack Hub 市场的 SQL Server 映像的旧版本,则不能更改 licenseType 属性,并且必须使用 Azure Stack Hub 市场中的最新 SQL Server 映像重新部署。If you're running an older version of the SQL Server images from Azure Stack Hub Marketplace, you can't change the licenseType attribute and you must redeploy using the latest SQL Server images from Azure Stack Hub Marketplace.

我已签署企业协议 (EA) 且将使用 EA Windows Server 许可证,如何确保映像正确计费?I have an Enterprise Agreement (EA) and will be using my EA Windows Server license; how do I make sure images are billed correctly?

可将 licenseType:Windows_Server 添加到 Azure 资源管理器模板中。You can add licenseType: Windows_Server in an Azure Resource Manager template. 必须将此设置添加到每个虚拟机 (VM) 资源块。This setting must be added to each virtual machine (VM) resource block.

激活Activation

若要在 Azure Stack Hub 上激活 Windows Server VM,必须满足以下条件:To activate a Windows Server VM on Azure Stack Hub, the following conditions must be true:

  • OEM 已在 Azure Stack Hub 上的每个主机系统上设置相应的 BIOS 标记。The OEM has set the appropriate BIOS marker on every host system in Azure Stack Hub.
  • Windows Server 2012 R2 和 Windows Server 2016 必须使用自动 VM 激活Windows Server 2012 R2 and Windows Server 2016 must use Automatic VM Activation. Azure Stack Hub 不支持密钥管理服务 (KMS) 和其他激活服务。Key Management Service (KMS) and other activation services aren't supported on Azure Stack Hub.

如何验证是否已激活我的 VM?How can I verify that my VM is activated?

在提升的命令提示符下运行以下命令:Run the following command from an elevated command prompt:

slmgr /dlv

如果 VM 已正确激活,则 slmgr 输出中会明确指示此状态,并显示主机名。If it's correctly activated, you'll see this clearly indicated and the host name displayed in the slmgr output. 请不要依赖于显示画面中的水印,因为它们可能不是最新的,或者显示你的 VM 后面的其他虚拟机的状态。Don't depend on watermarks on the display as they might not be up to date, or are showing from a different VM behind yours.

我的 VM 未设置为使用 AVMA,如何解决此问题?My VM isn't set up to use AVMA, how can I fix it?

在提升的命令提示符下运行以下命令:Run the following command from an elevated command prompt:

slmgr /ipk <AVMA key>

请参阅自动 VM 激活一文,获取映像使用的密钥。See the Automatic VM Activation article for the keys to use for your image.

我自行创建了 Windows Server 映像,如何确保它们使用 AVMA?I create my own Windows Server images, how can I make sure they use AVMA?

建议在运行 sysprep 命令之前,结合相应的密钥执行 slmgr /ipk 命令行。It's recommended that you execute the slmgr /ipk command line with the appropriate key before you run the sysprep command. 或者,将 AVMA 密钥包含在任何 Unattend.exe 安装文件中。Or, include the AVMA key in any Unattend.exe setup file.

我正在尝试使用自己在 Azure 上创建的 Windows Server 2016 映像,但它无法激活或者正在使用 KMS 激活I am trying to use my Windows Server 2016 image created on Azure and it's not activating or using KMS activation

运行 slmgr /ipk 命令。Run the slmgr /ipk command. Azure 映像可能无法正确回退到 AVMA,但如果它们可以访问 Azure KMS 系统,则会激活。Azure images may not correctly fall back to AVMA, but if they can reach the Azure KMS system, they will activate. 请确保将这些 VM 设置为使用 AVMA。It's recommended that you ensure these VMs are set to use AVMA.

我已执行上述所有步骤,但 VM 仍无法激活I have performed all of these steps but my VMs are still not activating

请联系硬件供应商,以确认是否安装了正确的 BIOS 标记。Contact your hardware supplier to verify that the correct BIOS markers were installed.

对于早期版本的 Windows Server,如何激活?What about earlier versions of Windows Server?

早期版本的 Windows Server 不支持自动 VM 激活Automatic VM Activation isn't supported in earlier versions of Windows Server. 必须手动激活这些 VM。You must activate the VMs manually.

后续步骤Next steps

有关详细信息,请参阅以下文章:For more information, see the following articles: