gpt4 book ai didi

powershell - 如何通过powershell重命名azure订阅名称

转载 作者:行者123 更新时间:2023-12-03 03:15:12 24 4
gpt4 key购买 nike

我正在尝试使用 powershell 重命名我的 Azure 订阅名称

Get-AzureSubscription "Visual Studio Professional with MSDN" | Set-AzureSubscription "MSDN"

但它对我不起作用。错误如下 -

Set-AzureSubscription : Cannot bind positional parameters because no names were given.
At line:1 char:64
+ Get-AzureSubscription "Visual Studio Professional with MSDN" | Set-AzureSubscrip ...
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-AzureSubscription], ParameterBindingException
+ FullyQualifiedErrorId : AmbiguousPositionalParameterNoName,Microsoft.WindowsAzure.Commands.Profile.SetAzureSubscriptionCommand

最佳答案

目前您无法使用 PowerShell 重命名它。

以下是与管理配置文件相关的所有受支持的 Azure PowerShell 命令的列表: https://msdn.microsoft.com/library/dn790379.aspx

您可以看到没有更改订阅名称的命令。更改订阅的唯一命令是 Set-AzureSubscription,但它使用 -SubscriptionName 参数作为标识符: https://msdn.microsoft.com/library/dn790376.aspx

基本上,使用 Set-AzureSubscription 您可以更改除名称之外的所有其他属性。

关于powershell - 如何通过powershell重命名azure订阅名称,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28981565/

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