Azure: You do not have any subscriptions in the directory - azure

I have a windows account (hotmail.com) that has an associated MSDN Enterprise subscription.
I'm working for a company that has a PAYG subscription and they want to give me access so I can deploy websites, VMs etc.
They made me "co-administrator" but when I login to the portal and switch to that directory I get a "No subscriptions" notification. "You do not have access to any subscriptions in the << redacted >> directory".
In their directory I was a "User" so I thought changing that to "Global Administrator" would help. But I get the same message.
What are we missing?

In the classic portal (https://manage.windowsazure.com), adding you as a co-administrator is enough to give you full access to the subscription.
However, in the new portal (https://portal.azure.com), you should be added as a Co-Owner through the RBAC system.
Someone with an appropriate role should go to Browse > Subscriptions > "subscription_name" > All settings > Users to add you with the Owner role for example.
Does it help?

My issue was a little bit different, I had 2 directories, both associated with the same users that got me into the error of not recognising the subscription for any directory.
I just deleted the directory I created and left the subscription associated to "the default directory" via settings in the old portal and it worked like a charm.

My issue was that I created a new Azure AD, when I was trying to create my first VM there I was getting the message "you don't have any subscriptions on this directory", it was not recognizing my subscription under the new AD.
To fix this, go back to the Default Directory, go to Home > Subscriptions and select your subscription, then click on the "Change Directory" tab and select the option "From Default Directory" to "New Directory"

Related

Moved Azure Subscription and now Resources are Lost

I have two accounts, me#gmail.com and me#my-company.com. Both accounts are billing me. I created a VM, with storage, and network in me#gmail.com and under subscription "Me Personal". I was testing the movement, after planning, etc to the other account (Company AD) but my other subscription "Firstname MI Lastname". I lost my Roles, no custom roles, VM contained $HOME/payload.txt "hello world", and I "Changed Directories" using the option at the top of the Subscription blade. I selected "Firstname MI Lastname", no errors, saw the subscription was gone and then went to the company account (my billing) and ...
I selected the subscription "Firstname MI Lastname" and NO resource group, NO VM, NO storage, no resources. I looked at all resources and the moved resources are nowhere to be found.
Can someone help me find these resources? My expectation was that because the subscription was light, simple VM, hard drive, and network would just simply move across the same region and the machine and disk would just show up under the new/existing subscription along with it's resource group parent.
Thanks in advance for any reply.
David
I'm going to answer this question. I'm not sure about the two directories in my Google (gmail) account. Anyhow, I found that the resource group did move across subscriptions under another directory. This directory was not AD Default but my Firstname MI and Lastname just like the one in my company account. Under my initial account, I selected the Settings icon and saw the other directory.
And, because it was in this account, that is why it was shown in the dropdown when I selected "Change Directory" in the Subscription overview.
I still have to determine how to test the entire transfer from one tenant to the other, including the billing.

Accidentally deleted the only Azure subscription owner role

I accidentally deleted the only azure owner role of my subscription. Any idea how can I get that restore? I can only login now at azure portal and when I click on subscriptions it is keep loading, nothing is coming.
I have resolved this myself. As I am also a global administrator so I created an Azure AD User, assigned the global admin role to it. Login to azure portal with that new account, and re-assigned the Owner role to my original account which I accidentally deleted. Now Its Working fine :)
The same thing happened with me today and even after being "Global Admin" to Azure AD, I was unable to modify the permissions as the "Role Assignment" options were appearing disabled.
These are the steps that I followed:
I logged in to Azure Portal with the MS Live ID(#outlook.com) using which we got the MS Azure subscription registered(Root ID or Account Owner ID).
Then went to the Azure subscription --> IAM --> Add Role Assignment. This option was enabled this time!
To be on safer side now, created a Security Group in Azure AD with 3 Azure Administrators and then made this Group as "Owner" to the Azure Subscription.

Azure DevOps: Why is my subscription not shown when creating a new service connection?

I am using Azure DevOps with a Microsoft Account (#outlook.com). The same account is co-administrator of 3 different Azure Subscriptions.
I am trying to create a new Service connection from my Azure DevOps Project to my newest Azure Subscription (out of the 3).
When I:
Go to my project's Project Settings view and click on the Service Connections tab.
Click on the 'New service connection' button.
Choose 'Azure Resource Manager' for the connection type.
Choose 'Service Principal (automatic)' authentication method.
I find that the drop-down list for Subscription is only showing my two older subscriptions and my newer subscription is missing, as shown here:
How can I get my third, newer, subscription to appear in the 'Subscription' list?
I've tried the following without success:
Made my Microsoft Account to be a 'Co-administrator' of the Azure Subscription.
Gave my Microsoft Account the 'Owner' Role for the Azure Subscription.
Added my Microsoft Account to the 'Global Administrators' group in Azure Active Directory.
Set 'Guest users permissions are limited' to 'No' in the In my Active Directory's External collaboration settings.
UPDATE: The subscription that's not shown in the list is currently a "free-tier" subscription whereas the 2 subscriptions that are shown are "pay-to-go". Could this be the reason for my problem?
This is what solved it for me:
Go to your MS Azure account.
Search and go to 'Tenant Properties'.
Click on Manage Security Defaults.
Turn these off
I can finally see my Azure Subscription in the Subscription list. I'm not 100% sure which step I took is responsible for fixing the issue so I'll list 2 things that I did:
In the Azure Portal I created a new App Registration, this time having the "Supported account types" setting set to "Accounts in any organizational directory ... and personal Microsoft account ...":
In PowerShell and using the AzureAD module I reset the Service Principal Key Credential:
a. Ran PowerShell (v5.1) "as Administrator".
b. Install-Module -Name AzureAD
c. Connect-AzureAD -TenantId <tenant-id-from-the-app-registration-overview>
b. New-AzureADServicePrincipalKeyCredential -ObjectId <object-id-from-the-managed-application-overview>
PS - The Subscription's being in the free-tier seems to be irrelevant to the issue.
You can try accessing DevOps in a private mode, it simply gets the existing subscription.
Not an exact answer to the OP's question, but I think it's related and maybe helpful to others. My issues was creating a new subscription and that subscription not showing up on the Subscriptions page.
Click on the "Directories + subscriptions" button in top right.
Open dropdown and ensure desired subscriptions are selected
Navigate to Subscriptions page and click on "Subscriptions == globalfilter" and selected desired subscriptions.
See if you have a "default subscription filter" set on the Portal Settings page. Seems to add one by default.
I solved the problem by deleting an old app registration with an expired certificate. I'm not sure about the link between the two, maybe it forced a refresh somewhere.

User with global admin, cannot view Application or Resource grp in Azure

I`m a global administrator of my Azure Tenant and gave Global admin rights to others so they can manage the Azure Tenant.
However, they cant view any of the services already provisioned on Azure.
For Example, cannot view:
a) Resource group
b) Enterprise Applications
Please suggest what more shall I do to resolve the issue?
This issue may be caused by that you haven't been assigned a subscription.
Try to find it whether subscriptions in your Azure Account. (Put in "subscription" in search blank in Azure. )
If you don't have any subscription, try to connect the owner and add your account as owner or else role . (Go to subscription > choose one subscription > Access control > Add ) The steps looks like this:

Azure Change the associated directory 'None'

When I go into the classic portal, Settings on the left, select my subscription, When I click edit to 'Change the associated directory' I only have 'None' in the drop-down. I think this s breaking my SQL AD Authentication. I have a directory set up with users and groups and I can see it and manipulate it in the new portal. I can't however log in to a SQL instance using AD username/password.
How can I get my directory to show up in the list?
That seems like it would be the issue, if you can't see the directory listed and you see 'None' then you need to verify you are an the account administrator of the subscription and global administrator of the directory otherwise you will not be able to associate it with your subscription.

Resources