New-Server2016VMImage:找不到与参数名称'SubscriptionId'匹配的参数。 [英] New-Server2016VMImage : A parameter cannot be found that matches parameter name 'SubscriptionId'.
问题描述
您好
我正在尝试参考以下网址添加默认图片
https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack -add-default-image
但标题中描述的错误也发生了
附加执行结果。
请帮忙。
谢谢。
两件事,你正在运行1.2.8版本,并且computeadmin模块存在一些问题。
尝试下面的脚本,它应该安装正确的版本并规避任何subscriid问题。
Install-Module -Name'AzureRm.Bootstrapper'-Sccope CurrentUser -Confirm:
< blockquote> false -force
Install-AzureRmProfile -profile'2017-03-09-profile'-Force -Scope CurrentUser
Install-Module -Name AzureStack -RequiredVersion 1.2.9 -Scope CurrentUser -Confirm:
false -force
load-module azurestack
invoke-webrequest https://github.com/Azure/AzureStack-Tools/archive/master.zip -OutFile master.zip
expand-archive master.zip -DestinationPath。 -Force
cd AzureStack-Tools-master
Import-Module .\Connect\AzureStack.Connect.psm1
Import-Module。\ ComputeAdmin \\ \\AzureStack.ComputeAdmin.psm1
Hi
I am trying Add default image with reference to the following URL
https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-add-default-image
But Error described in title also occurred
Attach execution result.
Please help.
Thanks.
Two thing, you are running version 1.2.8 and there were some problems with the computeadmin module.
Try the script below, it should install the right version and circumvent any subscriptionid problems.
Install-Module -Name 'AzureRm.Bootstrapper' -Scope CurrentUser -Confirm:
false -force Install-AzureRmProfile -profile '2017-03-09-profile' -Force -Scope CurrentUser Install-Module -Name AzureStack -RequiredVersion 1.2.9 -Scope CurrentUser -Confirm:
false -force load-module azurestack invoke-webrequest https://github.com/Azure/AzureStack-Tools/archive/master.zip -OutFile master.zip expand-archive master.zip -DestinationPath . -Force cd AzureStack-Tools-master Import-Module .\Connect\AzureStack.Connect.psm1 Import-Module .\ComputeAdmin\AzureStack.ComputeAdmin.psm1
这篇关于New-Server2016VMImage:找不到与参数名称'SubscriptionId'匹配的参数。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!