VS Code does not find my Azure subscription - azure

I have followed the instructions found here https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-python?pivots=python-mode-configuration but after I login VS Code cannot find my subscription. I do have a pay and go subscription active so why does this not work? I need to be able to create a python function in VS Code and need this to work to be able to move ahead....

This is how I get my azure subscription in VS Code.
Firstly, when I opened VS Code, I could not be able to see my subscription.
Then I logged into my Azure Account in Azure Portal Website in my Browser, then I am able to see the Subscription as below in VS Code.
References:
https://learn.microsoft.com/en-us/answers/questions/382060/azure-vs-code-39no-subscriptions-were-found39.html
"No subscription were found" in VS code while sign in using Azure account

Related

How can I associate a subscription with a new tenant in Azure?

I have a Visual Studio Pro subscription through my work, and when I log into the Azure portal I can see a directory representing my work under my account name in the top corner.
As far as I can tell "directory" and "tenant" are used interchangeably in the Azure documentation. So I wanted to create a new tenant as a playpen to allow me to experiment with Azure. I was able to do that but now when I try to log in to that tenant via Azure CLI I get an error "No subscriptions found.". This despite when I log into my work tenant it tells me I have a Visual Studio Professional Subscription.
Is it possible to set up a different tenant/directory for the same account, to use as a playpen, and somehow connect it with my VS Pro subscription? If so, how?
I guess the simplest thing you could do is invite a user from your playpen directory by assigning them a suitable RBAC role in your VS Pro Subscription. That way when you login using your playpen directory account and try to list subscriptions, you will find your VS Pro subscription there.
Other option would be to associate your Azure Subscription to your playpen directory. Please see this link for more details: https://learn.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-how-subscriptions-associated-directory.
Not sure if you want to do this but you can transfer your Azure Subscription to your playpen directory. Please see this link for more details if that's what you want to do: https://learn.microsoft.com/en-us/azure/role-based-access-control/transfer-subscription

Unable to login to Azure

I am trying to create an ASP.NET framework app in Azure so i followed the tutorial on the Azure website but while publishing there is always a problem logging in.
I have tried to login several times and it is all successful but i am unable to proceed with creating app services. The page will still be the same page asking to login or create an account.
I am also login to my visual studio 2017 enterprise with the same account so i am wondering why i can't proceed on.
Thank you
According to your description, I suppose you haven't buy the Azure. You could buy Azure from this link. After that, your account could use Azure. Then you could get Subscription for Azure portal. You could also create Resource Group and App Service Plan from Azure portal.
If you want to use Azure for free,you can use trial version.Just like the following screenshot. However, it has use time and function limit.

Accessing Azure with both Microsoft Account and Work Account

This problem may stem from the dependency on MS accounts for MSDN instead of work accounts, but maybe some one has found a solution?
I use the same email address for both my MS and Work Accounts.
Our Company Subscriptions seems to be linked to our MS Accounts, as does our VSTS accounts. I can sign into Azure Portals using both MS and Work Account. I want to be able to deploy do our company subscription from VSTS.
When I sign into Azure, using my work account, I can see our Azure AD. I am a global admin and can make changes, etc. This is not visible when I sign in using the MS account. It tells me I don't not have access, which I can understand.
In VSTS, I have linked my MS Account to my work account. But I cant access some of the projects # {whatever}.visualstudio.com VSTS sites with my work account, I must use my MS account.
The main problem is when I try to set up a build and deploy from VSTS into the Company Azure Subscription. To achieve this I need to set up a Service Endpoitn to ARM in Azure. So I go ahead and try to do that.
It fails as it says that the account does not have the sufficient privileges needed in Azure Active Directory. Remember, AAD is only accessible when I log into my work account in the azure portal.
One last point, AAD would see my MS account as a guest account, so I thought 'hey, I will add that account to AAD as a guest and assign privileges necessary to perform the tasks I need'. But because the same email address was used for both my MS account and work account, it tells me when I try to add the guest account, that it already exists.
Is there any way around this problem? How can I associate/move all VSTS subscriptions to my work account?
When the VSTS identity you are using does not have access to the Azure subscription your trying to deploy to, the best way to do this is to create your service endpoint manually.
The steps are [here][1]. See the Azure Resource Manager service endpoint -> Manual subscription definition section. It has a few more steps, but once you create that, just use that service endpoint in your build or release definitions & your good to go.

What is the relationship between Azure and Visual Studio Team Services

We have a Visual Studio Team Services instance that is used by the company I work for.
The company has an Azure instance. As far as I am aware there is no connection to VSTS.
When I was added to VSTS as a Visual Studio Pro level user some months ago we had to use my Microsoft Account as we couldn't use my work identity because my MSDN subscription is linked to my Microsoft Account as we could not link it to my work identity; apparently this was because we use Office365 in the office.
We now have problems adding Basic Users to VSTS. I enter the users Microsoft Account identity and I am told "No Identities Found".
I looked at VSTS Settings where I can see "This account is backed by the Default Directory Azure Active Directory."
I can also see an "Azure Subscription ID". When I follow the Subscription ID link I end up at my Microsoft Account Azure instance.
I had other users log in to VSTS and they too are seeing my Azure Subscription ID in VSTS Settings.
Why is this happening?
How do Azure instances/accounts relate to VSTS instances/accounts
Can I break the link between Azure and VSTS
You can link your VSTS account to the azure from your azure portal:
Azure - VSTS service
Then, what we do is to add the users to the Azure active directories. As far as I know, these users must be registered in Microsoft.
Once it's done, you can add the users to the VSTS.
Hope it helps you.
The Team Services uses an Azure subscription to bill purchases and can control access with Azure AD.
You can unlink your VSTS account from Azure portal. More information, you can refer to this article: Delete or recover Visual Studio Team Services account
I am an idiot.
Turns out the company VSTS was linking to the company Azure.
I became confused when clicking the Manage button in VSTS | Azure Subscription ID.
That took me to the Sign in to Azure page and displayed my login, which takes me my Azure.
It was only when we checked the Azure Subscription ID in VSTS against my Azure Subscription ID that it became apparent I was following a red herring. The ID matched the companies Azure ID. So I can use that to add users and subsequently add them to VSTS.

Unable to sign in using my Windows Azure account while creating an Azure project from Visual Studio 2013

I am trying to create an Asp.Net web application from Visual studio to host in Windows Azure. After signing in with my work email(having MSDN subscription and Windows Azure benefits activated) I am shown this message:
Sorry but we didn't find any Windows Azure subscriptions associated with your account.
You can sign in with a different account, or as an MSDN Subscriber, you can get started with Microsoft Azure using monthly credits that are included in your MSDN subscription. Just activate your MSDN benefit to get started.
I have already activated my MSDN benefit and also have one Asp.Net web application up and running on Windows Azure with the same account for last 10 days.
I don't understand why it's happening. If anyone knows about it then please let me know.
Thanks
The issue has been resolved with the help of my organisation's IT Admin. Here is the resolution.
The problem was that, while signing in, I was give two option to choose from after entering my email Id-
Work or School account (Assigned by your work or school) or
Microsoft Account (Personal Account).
I was selecting the first one i.e Work/School account. My MSDN subscription is provided by my organization but the Windows Azure account I created using that MSDN subscription is my personal one and not provided by my company. So I should have selected the second option i.e. Personal Account.
Now when I select Microsoft Account while signing, my project is successfully created for hosting in Windows Azure.
So to msdn and activate Azure under that.
https://msdn.microsoft.com/en-us/subscriptions/manage

Resources