Change Azure Website Subscription - azure

I had a free trial with windows azure, I was out of the country and it ran out.
I have now upgraded to a pay-as-you-go account. All good.
However, my previous websites still run off my old subscription, is there any way to reactivate these websites using my new pay-as-you-go subscription?

If you upgraded the existing free account versus opened a new pay-as-you-go account, this should have been a seamless transition.
You can contact support - use the Billing Questions option and then select Transfer Subscription, and they should be able to help you.
Alternatively, of course, you could redeploy your assets to the new subscription.

I created a "Billing" ticket with microsoft. There is a type of ticket as you go through their wizard specifically for this. They were able to upgrade my "Free Trial" to the pay as you go AFTER i had let the free trial expire. The downside was that all my virtual machines were deleted. It did however give me access to my websites and storage without any problem. I was able to recreate all the VM's using the storage vhd's.

My experience on this is that I just redeploy to a new website I created under new subscription. I didn't find a way to move them over to new subscription.
You can move SQL Azure to new subscription, but not website. To move SQL Azure to new subscription, you will need to use old Azure portal management. Follow this step:
http://blogs.msdn.com/b/windowsazure/archive/2012/03/07/moving-sql-azure-servers-between-subscriptions.aspx
Note that you are moving the server where the database lives. So, if you have more than one DB in the same server, everything will be moved.

You can move Azure SQL DB from one subscription to another on https://manage.windowsazure.com
Both subscriptions should in the same Default Directory. If they are in different directories then select:
Subscriptions
Manage subscriptions/directory
Select subscription and click "Edit" at the bottom.
Choose directory where other subscription and click "Next".
When both subscriptions in the same directory.
Choose "SQL Databases"
Select proper server
and in Quick Glance you should see "Change subscription"

The documentation in the link stack247 posted is now outdated. To change the target subscription for a database, you have to change the target subscription of the server for the database. There are several ways to navigate to the server, but here is just one example:
Click on the database tab
Click on the name of the database you want to change
In the dashboard view, click on the link to the server in the quick glance section. This is on the bottom right corner of the view.
In the dashboard view, click on the Change Subscription link in the quick glance section. This is on the right side of the view.
Change the Target Subscription, and click the check button.
As far as changing the subscription for a website or cloud service, I would do what is recommended above; and republish the website or cloud service. When you publish, change the settings to target a different subscription by clicking on the previous button.
---------Update----------
If you have a bunch of assets that need to be moved to another account, create a ticket with the Azure helpdesk. You will have to do the above and switch out the accounts for the databases/servers, but Microsoft is able to run a script on their end that moves everything. Depending on the size of your assets, it may take a little longer. Fortunately for me, it was only a day to move everything. I would recommend doing this instead of publishing everything a second time.
https://manage.windowsazure.com/?getsupport=true

All the solutions mentioned above are now outdated.
In the https://portal.azure.com/,
For SQL Servers, go in the "SQL Servers" menu, select the server to change. In the Overview, click on the Edit button, located right to the name of the subscription.
For WebApps, go to the "App Service plans" menu, select your plan, click on the Resource Group and in the Overview, click on the Edit button, located right to the name of the subscription.

Related

Creating an Azure Function in existing Function App on existing Subscription and Resource Group

I've developed a time triggered function in Microsoft Azure Functions with my personal subscription. The process made me create everything I needed from scratch in Visual Studio Code.
Now I would like to deploy the same function on a different subscription in which someone else have created a resource group, a function app and a storage account.
I'm not able to add these existing resources. Looks like from inside Visual Sudio Code I can only create a new resource group, storage account and function app in the same subscription as before even though I've signed out with my personal account and logged into the customer provided account.
Am I missing something obvious? Can someone point me in the right direction?
In Visual Studio Code you can select the Azure Subscription to which deploy your functions by opening the Azure tab on the left side menu (or Alt + Shift + A shortcut) and by clicking the "Select subscription" button under the "Functions" tab of that menu (see screenshot below).
screenshot
If your account has multiple subscriptions, then click this icon to select the other subscription where you need to deploy your function app or any other app as you can see in the below image:
even though I've signed out with my personal account and logged into the customer-provided account.
If the customer's subscription is available in your account, though you logged out from the account, it may have shown your subscriptions at the azure extension.
Press Ctrl + Shift + P in your VS Code, which opens the command palette.
Click on Azure: Sign Out for complete sign out in VS Code.
If you signed in again to the VS Code through Command Palette or Account extension on the sidebar, sync will not happen automatically. So, Click on Sign in to Sync settings which logs you to your Microsoft account to verify again.
Make sure this setting is turned on whichever the account (Customer's or Your Subscription) you logged in to VS Code.
This setting helps you to deploy your applications with any subscription in your account through the VS Code Editor.
Although other responses were useful to me and might prove useful to others, my specific problem was caused by the "Azure: Tenant" setting in the Visual Studio Code Settings.
This setting basically sets a specific subscription to use (identified by its ID). Once removed, with this field empty, the default behavior of the extension is to ask each time where to deploy a function.
As soon as I removed the value for this setting the second subscription appeared in Azure extension panel.

How to change subscription on Azure old portal?

First of all, why microsoft azure changed the portal UI? In my opinion the oldest is much more clear.
But the question is, i have multiple subscriptions associated with my live id email. When i go to manage.windowsazure.com url and log with my live id, i go to a default subscription, but i need to change it staying on the old portal. Where can i find this option?
On the configuration menu i have just these options:
Thanks!
On the top right corner before configuration menu, you will see Subscriptions filter. Clicking on that will show you all the directories your account is associated with. You can change the directory and can filter subscriptions you wish to see. Please see the screenshot below for more details:

How to publish a Web Application to another persons azure subscription

I currently have a Web Application and SQL Database instance published on my own personal Azure trial subscription. However the app is now finished and I want to hand ownership over to the person I am creating it for. So I want to publish it to his Azure subscription, so he can look after billing, monitor, and have ownership of the application etc.
I asked him to add me as a user to his account, and now I see his company name listed as a 'Directory' from the portals home page (along with my Default Directory, my Web App, and my SQL Database). I don't know how to proceed from here. I want to be able to Publish it from Visual Studio 2013 - then run my code first migrations to create the database, all to a location that his company and not me is responsible for.
Is my approach to this wrong? In a general sense, how do you develop a test application (and test it in Azure) and publish it for someone else on Azure?
The first comment on the question is sort of what I am trying to achieve:
Transfer all data from my account to another in the same Azure subscription
"What do you mean by from my account to another in the same Azure subscription? Normally I have seen folks want to move data from one subscription to another one (say from Dev Subscription to Prod Subscription)."
But if I just transfer the app I wouldn't be able to make changes in VS and re-publish it, for example.
EDIT:
I found this article on Migrating an enterprise web app to an Azure service. Would it be possible to Publish the app to my local dev machine (with local database), then use the Migration Assistance to move it to Azure? Obviously to do this I would need my clients Microsoft ID and password to log into his subscription which is not ideal.
You will first want to make sure that the subscription appears in your "Subscription list" in the top right corner and is selected.
I am assuming you have connected your VS with your Azure subscription and are able to publish your app to your subscription from here, and that the new subscription is "missing" from your selection. But now you have been added to a new subscription but have not updated VS. Remove and readd Azure Subscriptions from VS. This should require you to log into Azure, and should pull updated account information.
Now when you Deploy your app, you will be able to select which Subscription you want to deploy it into.

Windows Azure Publish Website- "Unable to get subscription information. An item with the same key has already been added"

I'm following this tutorial here
http://www.windowsazure.com/en-us/develop/net/tutorials/get-started/#nextsteps
I'm at step 3. I click import, I can see I'm signed in with my MSDN ultimate account (I get $150 per month to spend on Azure). I then click New, and when the dialogue opens I cannot enter anything (all boxes are disabled), along with an error message in red:
http://gyazo.com/17eb15f07d54e2867cd5f21d377f04aa
Why is this? It is something with my MSDN account?
You can get also this problem if your MS account is registered with more than one Azure subscription. It appears Visual studio gets confused if your account is attached to more than one subscription and tries to use the wrong one for accessing the Azure API.
If it occurs you need to ignore the advice from #Dev Trails and instead do the following:
In Server Explorer, right-click Windows Azure node > Manage Subscriptions
In the Certificates tab Import a new subscription certificate (this will take you to the current link on the Azure portal to download your
certificate)
In the Subscriptions tab, on the specific subscription that fails,
select the drop-down and choose the certificate instead of the
username.
Refreshing the Azure explorer should now show your databases etc without error.
This is a bug in Visual Studio 2013. Found an answer posted here:
To workaround the issue, you can try the following:
In Server Explorer, right-click Windows Azure node > Manage Subscriptions
If you are signed-in to Azure, you will see the same subscription show up both in the Accounts tab and in the Certificates tab. Remove the one in the Certificates tab.
VS 2015: delete all MS Account from VS. Add once again.

Cannot find the 'move database server' button in the new Windows Azure management portal

I just switched to the new management portal of Windows Azure (and I really like it), but when I tried to move my database server from one subscription to another (see this link for how it is done in the old portal: Moving SQL Azure Servers Between Subscriptions), I could not find the button to move my server. Am I not looking in the right place or is this functionalitiy not available in the preview portal?
B.t.w. I was able to move my server by using the old portal.
There are a number of features missing from the new portal (i.e. SQL Reporting, Access Control Service, Traffic Manager, Service Bus, Management Certificates).
I guess these will be added in over time. For the time being, you can still access the old portal by clicking on the green box at the top the new portal, or going here: https://windows.azure.com/default.aspx
If any functionality no available in new portal and was in old portal, just keep accessing old portal at:
OLD Portal: https://windows.azure.com/
NEW Portal: https://manage.windowsazure.com/
Old portal is now retired and still some, if not a lot of functionality is not there. Cannot move a server or a DB to a different subscription by one-self.

Resources