【发布时间】:2023-03-10 17:36:01
【问题描述】:
我正在尝试使用以下命令 powershell 命令从云服务下载服务配置 (.cscfg)。但不幸的是得到了一个错误。
Get-AzureRmDeployment -Name "xxxx"
Get-AzureRmDeployment : Deployment 'xxxx' could not be found.
我选择了正确的订阅,通过了更正的部署名称,但仍然出现此错误。
我尝试使用以下命令获取此订阅上的所有部署,该命令没有返回任何内容,甚至没有返回错误。
Get-AzureRmDeployment
之前我在经典订阅中使用Get-AzureDeployment 来获取.cscfg,它曾经在RM 上完美运行,但上述命令不起作用。
谁能帮我弄清楚如何使用 powershell 获取服务配置...?
命令片段。
PS C:\WINDOWS\system32> Get-AzureRmDeployment -Name "xxxx"
Get-AzureRmDeployment : Deployment 'xxxx' could not be found.
At line:1 char:1
+ Get-AzureRmDeployment -Name "xxxx"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Get-AzureRmDeployment], CloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.GetAzureDeploymentCmdlet
【问题讨论】:
标签: azure powershell cscfg