繁体   English   中英

为什么 azure 扩展运行手册在自动化帐户中失败

[英]Why is azure scale up runbook failing in Automation Account

我有一个设置了运行方式的自动化帐户。 我正在尝试使用它来运行我从门户库中导入的 VM 缩放操作手册(来源:在此处输入链接描述)。

我收到以下错误,我无法了解它的确切含义:

Add-AzureRmAccount : Cannot validate argument on parameter 'TenantId'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At line:106 char:11 + -TenantId $runAsConnectionProfile.Tenant.Id ` + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (:) [Add-AzureRmAccount], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Azure.Commands.Profile.AddAzureRMAccountCommand

看起来 RunAsConnection 没有租户 ID,但是当我在门户中打开运行方式帐户时,AzureRunAsConnection 看起来有一个租户 ID。

有人可以解释为什么会发生此错误吗?

发布@abinitio 的评论作为答案,以帮助可能面临类似问题的其他社区成员。

如果你检查这一行,你会发现我们应该使用TenentID而不是Tenent.Id作为 RunAsConnection。

如果你使用的是得到错误Get-AzureRmVm ,同时试图让你的虚拟机,然后使用尝试Get-AzVM Get-AzVM是该命令的最新形式,用于管理 ARM 资源,并取代Get-AzureRmVM

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM