gpt4 book ai didi

azure - New-AzVM 错误 - 属性 'securityProfile.encryptionAtHost' 无效

转载 作者:行者123 更新时间:2023-12-03 00:01:56 26 4
gpt4 key购买 nike

我正在尝试通过 Powershell 在 Azure 中创建虚拟机,作为下个月参加 AZ-300 考试的准备工作的一部分。我正在运行 powershell 7.0.3 和 Azure Powershell 模块。这是一个 Visual Studio Azure 订阅 - 我过去曾在其中创建过 VM,但不是通过 Powershell 模块我在 Win10 机器上运行此程序并收到错误:New-AzVM:属性“securityProfile.encryptionAtHost”无效,因为未为此订阅启用“Microsoft.Compute/EncryptionAtHost”功能。

我没有尝试在主机上设置加密,并且根据此 cmdlet 上的文档,“EncryptionatHost”标志默认设置为 false。

New-AzVM -ResourceGroupName 'az-300-mw-test-pwsh' -name 'az-300-pwsh' -Location 'UKSouth' -VirtualNetworkName 'az-300-pwsh' -SubnetName 'default' -SecurityGroupName 'az-300-pwsh' -PublicIpAddressName 'az-300-pwsh' -OpenPorts 3389 

最佳答案

看起来这是 Azure 方面的一个问题,随着 Az 4.6.1 和 Az.Compute 4.3.1 的发布,该问题很快就会得到解决,如相关 GitHub 问题中所述: https://github.com/Azure/azure-powershell/issues/12776

关于azure - New-AzVM 错误 - 属性 'securityProfile.encryptionAtHost' 无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63594275/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com