Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is It possible to rename hosted service in Windows Azure

Tags:

azure

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

like image 966
Govind Malviya Avatar asked Mar 22 '12 05:03

Govind Malviya


2 Answers

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

like image 78
Shaun Xu Avatar answered Sep 21 '22 00:09

Shaun Xu


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'
like image 21
SliverNinja - MSFT Avatar answered Sep 20 '22 00:09

SliverNinja - MSFT