Govind Malviya
Govind Malviya

Reputation: 13753

Is It possible to rename hosted service in Windows Azure

Is It possible to rename hosted service of windows azure? I created it with a wrong name and I want to rename it.

Upvotes: 11

Views: 13277

Answers (2)

SliverNinja - MSFT
SliverNinja - MSFT

Reputation: 31651

You can relabel the Azure Hosted Cloud Service by using the Azure Powershell SDK. You just need to download the publish settings before you can execute any Azure Cmdlets. Use Set-AzureService to update the Azure Cloud Service name.

Rename 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'

Upvotes: 4

Shaun Xu
Shaun Xu

Reputation: 4666

Seems not possible. You might have to remove and recreate.

Upvotes: 12

Related Questions