Import-AzurePublishSettingsFile:找不到接受参数的位置参数 'path'
Import-AzurePublishSettingsFile : A positional parameter cannot be found that accepts argument 'path'
我是使用 Azure PowerShell
的新手,我正在尝试使用此命令导入 AzurePublishSettingsFile
:
Import-AzurePublishSettingsFile C:\Users\Kulasangar G\Downloads\<SubscriptionName>-credentials.publishsettings
我正在按照 these 配置电源的步骤 shell 我在尝试执行上述命令时发现了这个错误:
Import-AzurePublishSettingsFile : A positional parameter cannot be found that accepts argument 'G\Downloads\Visual'.
整个错误已粘贴[=16=]
可能是什么问题?任何帮助将不胜感激。
请将发布设置文件的路径用双引号引起来。
Import-AzurePublishSettingsFile "C:\Users\Kulasangar G\Downloads\<SubscriptionName>-credentials.publishsettings"
因为路径中有 space,PowerShell Cmdlet 将路径视为两个参数 C:\Users\Kulasangar
和 G\Downloads\<SubscriptionName>-credentials.publishsettings
,因此会出现错误。
我是使用 Azure PowerShell
的新手,我正在尝试使用此命令导入 AzurePublishSettingsFile
:
Import-AzurePublishSettingsFile C:\Users\Kulasangar G\Downloads\<SubscriptionName>-credentials.publishsettings
我正在按照 these 配置电源的步骤 shell 我在尝试执行上述命令时发现了这个错误:
Import-AzurePublishSettingsFile : A positional parameter cannot be found that accepts argument 'G\Downloads\Visual'.
整个错误已粘贴[=16=] 可能是什么问题?任何帮助将不胜感激。
请将发布设置文件的路径用双引号引起来。
Import-AzurePublishSettingsFile "C:\Users\Kulasangar G\Downloads\<SubscriptionName>-credentials.publishsettings"
因为路径中有 space,PowerShell Cmdlet 将路径视为两个参数 C:\Users\Kulasangar
和 G\Downloads\<SubscriptionName>-credentials.publishsettings
,因此会出现错误。