gpt4 book ai didi

azure-service-fabric - Add-AzureRmServiceFabricNodeType -> 'accountName' 不能为空

转载 作者:行者123 更新时间:2023-12-04 08:21:10 26 4
gpt4 key购买 nike

我正在尝试使用“Add-AzureRmServiceFabricNodeType”命令将新的 nodeType 添加到现有的服务结构群集。这是我的命令:

Add-AzureRmServiceFabricNodeType -ResourceGroupName "$ResourceGroupName$" -Name "$ClusterName$" -NodeType "$TypeName$" -VmSku "Standard_H8" -Capacity 3 -VmUserName "$UserName$" -VmPassword $pwd

已使用“Login-AzureRmAccount”和“Set-AzureRmContext”登录并设置订阅

调用运行约 1 小时,然后返回以下错误:

WARNING: Rolling back the changes to the cluster Add-AzureRmServiceFabricNodeType : 'accountName' cannot be null. At line:1 char:1 + Add-AzureRmServiceFabricNodeType -ResourceGroupName "%ResourceGroupName% ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Add-AzureRmServiceFabricNodeType], ValidationException + FullyQualifiedErrorId : Microsoft.Azure.Commands.ServiceFabric.Commands.AddAzureRmServiceFabricNodeType



过去我已经成功地向这个集群添加了一个节点类型,但是我没有设置 -VmSku 选项。除了这种差异之外,订阅已从按需付费升级为企业协议(protocol)。根据收到的错误,我猜这可能与此有关,但我似乎无法找到确切的内容。

有任何想法吗?

最佳答案

我将假设您使用安全编码来提供密码

$password = ConvertTo-SecureString -String 'Password$123456' -AsPlainText -Force

我还建议您将 -Tier 添加为命令的一部分,因为作为配置过程的一部分,它需要 sku、层和容量。如果您不提供,它将使用默认值,并且 sku 可能与默认层或您的帐户可用性不兼容。

如果在运行命令后创建了 VMSS,还可以在 Azure 中进行检查。
如果您想进一步调查,我建议您阅读 source code 以了解为添加节点类型而执行的命令操作。

关于azure-service-fabric - Add-AzureRmServiceFabricNodeType -> 'accountName' 不能为空,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48583530/

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