If you find yourself in a scenario where you need to change the registration subscription of an Azure Stack Hub deployment, the below is what you need to do to complete the task..
High level:
Gather info or source and destination Remove existing registration Register to new subscription Gather info or source and destination First thing is to get your new subscription ID
$NewSubscriptionId = "325*****-****-****-****-********432" Connect to Azure Stack ARM endpoint
Edit: added Cloud parameter to the script.
Deploying WAP for clients, they start creating new clouds, plans and subscriptions which is great!! But how do they add existing VMâs to new users in WAP?
EasyâŚ.. you guessed itâŚ. PowerShell!
So I canât take the credit here, my sources are found here & here.
Ok, thatâs out of the way.. here it isâŚ
Requirements:
You must have an existing tenant account That tenant must have an existing VM (I usually just kick off a quick VM deployment in WAP and delete it once done) I like to use Out-GridView to keep the script portable.
Had a user try to upload a theme to a Wordpress site they had published using Windows Azure Pack but were getting a file exceeded size limit error as exampled below.
âThe uploaded file exceeds the upload_max_filesize directive in php.iniâ
Typically you would just go into the php.ini located on the local webserver but how do I do this in a WAP Websites WebFarm?
PowerShell of course!!!
Ok, I do this from the websites controller server:
Quick scribble: add images and detail
3 steps
Template > NIC > Set Connected > Set static IP & Static MAC > OK
Template > NIC > Set No Connected > Confirm static IP & Static MAC > OK
Template > NIC > Set Connected > VM Network None > Confirm static IP & Static MAC > OK
Do in each template AND hardware profile
Deploying in WAP should work with or without a virtual network.