Change Owner of Azure Stack User Subscription

Azure Stack is extension of Azure and as such I am dealing with it as well. You may end up in a situation where you’ve created User Subscriptions in Azure Stack and after some time you want to delete them. Before deleting them you will need first to delete all the resources inside those subscriptions but the accounts of the owners of these subscriptions are no longer available or the do not want to cooperate. In such cases you can actually change the owners by using PowerShell. For example you can assign your Azure Stack Operator account as owner, login to the subscriptions with it via the User Portal and delete the resources before deleting the subscriptions.

To do this operation you will need the following things first:

After that you can execute simple commands below to find the right subscription and set the owner to it:

# List all user subscriptions and find the one that you need

# Get the subscription that you want to change the owner
$subscriptionToUpdate = Get-AzsUserSubscription -SubscriptionId "919e24f6-25b3-4d5f-bd3e-3ad36d5e619c"

# Update the owner value of the subscription
$subscriptionToUpdate.Owner = ""

# Apply the change
Set-AzsUserSubscription -Subscription $subscriptionToUpdate

After that login to the User portal with the new owner and delete the resources.

Hope this helps

One thought on “Change Owner of Azure Stack User Subscription

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.