Let's say I have two Microsoft accounts:
And I log into the Azure Account Center and create two subscriptions for each account:
- [email protected]
- Subscription1a
- Subscription1b
- [email protected]
- Subscription2a
- Subscription2b
Each account has an account administrator and a service administrator, and the account administrator can change the service administrator. So I could, for example, give control of all subscriptions to one service administrator, and in the Management Portal, it would LOOK like that account owns all the subscriptions:
- [email protected]
- [email protected]
- Subscription1a
- Subscription1b
- Subscription2a
- Subscription2b
But the account administrator didn't change, so really, each account still owns its original two subscriptions. The account administrator can always take back control of a subscription by changing its service administrator back to himself.
Then I log into the Azure Management Portal and create some storage accounts, web apps, SQL databases, and other Azure resources. Each resource belongs to one subscription, and each subscription is owned by one account:
- [email protected]
- Subscription1a
- storage accounts
- web apps
- SQL databases
- Subscription1b
- storage accounts
- web apps
- SQL databases
- Subscription1a
- [email protected]
- Subscription2a
- storage accounts
- web apps
- SQL databases
- Subscription2b
- storage accounts
- web apps
- SQL databases
- Subscription2a
So I could say that, ultimately, each Azure resource is owned by its subscription's account administrator.
Azure also created an active directory for each account, which is shared by both subscriptions. When I look at the management portal, the active directory LOOKS like it's just another Azure resource, except that it belongs to both subscriptions:
- [email protected]
- Subscription1a
- storage accounts
- web apps
- SQL databases
- MicrosoftAccount1outlook.onmicrosoft.com (shared)
- Subscription1b
- storage accounts
- web apps
- SQL databases
- MicrosoftAccount1outlook.onmicrosoft.com (shared)
- Subscription1a
- [email protected]
- Subscription2a
- storage accounts
- web apps
- SQL databases
- MicrosoftAccount2outlook.onmicrosoft.com (shared)
- Subscription2b
- storage accounts
- web apps
- SQL databases
- MicrosoftAccount2outlook.onmicrosoft.com (shared)
- Subscription2a
I can even create more active directories in the management portal, which is where I created the storage accounts, web apps, and SQL databases, so it REALLY looks like an active directory is just another Azure resource that can belong to multiple subscriptions:
- [email protected]
- Subscription1a
- storage accounts
- web apps
- SQL databases
- MicrosoftAccount1outlook.onmicrosoft.com (shared)
- MicrosoftAccount1outlook2.onmicrosoft.com (shared)
- Subscription1b
- storage accounts
- web apps
- SQL databases
- MicrosoftAccount1outlook.onmicrosoft.com (shared)
- MicrosoftAccount1outlook2.onmicrosoft.com (shared)
- Subscription1a
- [email protected]
- Subscription2a
- storage accounts
- web apps
- SQL databases
- MicrosoftAccount2outlook.onmicrosoft.com (shared)
- MicrosoftAccount2outlook2.onmicrosoft.com (shared)
- Subscription2b
- storage accounts
- web apps
- SQL databases
- MicrosoftAccount2outlook.onmicrosoft.com (shared)
- MicrosoftAccount2outlook2.onmicrosoft.com (shared)
- Subscription2a
However, I play with it some more, and I realize that I've got it backwards. The active directories don't belong to the subscriptions; the subscriptions belong to the active directories. I can change which subscriptions are assigned to which directories. Then, in the Management Portal, I select a directory, and it shows me that directory's subscriptions and their resources:
- [email protected]
- MicrosoftAccount1outlook.onmicrosoft.com
- Subscription1a
- storage accounts
- web apps
- SQL databases
- Subscription1a
- MicrosoftAccount1outlook2.onmicrosoft.com
- Subscription1b
- storage accounts
- web apps
- SQL databases
- Subscription1b
- MicrosoftAccount1outlook.onmicrosoft.com
- [email protected]
- MicrosoftAccount2outlook.onmicrosoft.com
- MicrosoftAccount2outlook2.onmicrosoft.com
- Subscription2a
- storage accounts
- web apps
- SQL databases
- Subscription2b
- storage accounts
- web apps
- SQL databases
- Subscription2a
So now it looks like the account administrator owns the active directories, and the active directories own the subscriptions. However, I play with it some more, and I don't think that's right, either. I can make the first account the service administrator for all four subscriptions. The second account can add the first account as a user in each directory and make him a Global Admin. Then the first account can remove the second account from each directory. So now, the first account can manage the subscriptions for all four directories and is the one and only user and global admin in all four directories, and the second account can't even log into the management portal anymore, so it looks like the first account owns everything:
- [email protected]
- MicrosoftAccount1outlook.onmicrosoft.com
- Subscription1a
- storage accounts
- web apps
- SQL databases
- Subscription1a
- MicrosoftAccount1outlook2.onmicrosoft.com
- Subscription1b
- storage accounts
- web apps
- SQL databases
- Subscription1b
- MicrosoftAccount2outlook.onmicrosoft.com
- MicrosoftAccount2outlook2.onmicrosoft.com
- Subscription2a
- storage accounts
- web apps
- SQL databases
- Subscription2b
- storage accounts
- web apps
- SQL databases
- Subscription2a
- MicrosoftAccount1outlook.onmicrosoft.com
- [email protected]
The second account still really owns two of the subscriptions because he's the account administrator, but there's nothing anymore that says that he owns two of the directories. The second account administrator can take back control of his two subscriptions, but I don't see how he can take back control of his two directories. Furthermore, as long as he's not a member of any active directory, he can't even create any more subscriptions; Azure won't create another directory like it created the first one. So, at this point, who owns the active directories MicrosoftAccount2outlook.onmicrosoft.com and MicrosoftAccount2outlook2.onmicrosoft.com?
I can even make one directory own subscriptions that belong to different account administrators:
- [email protected]
- MicrosoftAccount1outlook.onmicrosoft.com
- Subscription1a
- storage accounts
- web apps
- SQL databases
- Subscription1b
- storage accounts
- web apps
- SQL databases
- Subscription2a
- storage accounts
- web apps
- SQL databases
- Subscription2b
- storage accounts
- web apps
- SQL databases
- Subscription1a
- MicrosoftAccount1outlook2.onmicrosoft.com
- MicrosoftAccount2outlook.onmicrosoft.com
- MicrosoftAccount2outlook2.onmicrosoft.com
- MicrosoftAccount1outlook.onmicrosoft.com
- [email protected]
To make things even more fun, I can create a user in a directory that is not a Microsoft account; it's just a directory account. Then I can log into the Management Portal as the directory account AND CREATE ANOTHER DIRECTORY. The only user and global admin in the new directory is the directory account that created it; it doesn't have a Microsoft account owner. Who owns THAT directory?
It could even be argued that the active directories own the original Microsoft accounts, because the Microsoft accounts are users in the active directories. So if the active directory owns the Microsoft account, and the Microsoft account owns the subscription, then who owns the active directory? (EDIT: On second thought, it doesn't make sense for the directory to own the Microsoft account, because one Microsoft account can be a user in multiple directories, and that would mean the account has multiple owners. Scratch that. A HUMAN owns the Microsoft account. Either the Microsoft account owns the subscription, or the active directory owns the subscription. Who owns the active directory?)