问题 是否可以在Windows Azure中重命名托管服务


是否可以重命名windows azure的托管服务?我用错误的名称创建它,我想重命名它。


1668
2018-03-22 05:57


起源



答案:


似乎不可能。您可能必须删除并重新创建。


12
2018-03-22 06:31



现在这可以用了 Azure Powershell SDK......只是不通过 管理门户 直。 - SliverNinja - MSFT


答案:


似乎不可能。您可能必须删除并重新创建。


12
2018-03-22 06:31



现在这可以用了 Azure Powershell SDK......只是不通过 管理门户 直。 - SliverNinja - MSFT


您可以使用以下命令重新标记Azure托管云服务 Azure Powershell SDK。您只需下载发布设置即可执行任何设置 Azure Cmdlet。使用 Set-AzureService 更新Azure云服务名称。

重命名Azure Cloud Service.ps1

import-module Azure

# download publish settings
Get-AzurePublishSettingsFile

# import settings you just downloaded
Import-AzurePublishSettingsFile "C:\Users\<user>\Downloads\MySub-DATE-credentials.publishsettings"

# view subscription details
Get-AzureSubscription

# select active subscription
Select-AzureSubscription 'MySub'

# view cloud services for selected sub
Get-AzureService 

# update cloud service name/description
Set-AzureService 'myServiceName' 'Friendly Service Name' 'Detailed Service Description'

4
2018-05-03 15:45



这允许您更改服务URL和描述,但它不允许您更改服务名称 - Calanus