Created
October 23, 2024 07:34
-
-
Save jikuja/d4477b11add4c64db9ce47fa21c7711d to your computer and use it in GitHub Desktop.
Azure Portal tenant selection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some of the Azure Portal views support injection of tenant or login information. This is useful when creating portal links to some particular tenant. | |
## query parameters | |
Query parameter usage is undocumented and is highly possible that on some of the views support those | |
* tenantHint | |
* Not sure of works at all | |
* loginHint | |
* Works only portal main page | |
## URL Path | |
Both notations works on portal main page | |
* https://portal.azure.com/{tenant name or GUID}# | |
* https://portal.azure.com/@{tenant name or GUID} | |
For most of the resource specific links Portal is using `https://portal.azure.com/@{tenant name or GUID}` notation. | |
## URL examples from Portal | |
* Home: https://portal.azure.com/#home | |
* Service blade: https://portal.azure.com/#view/Microsoft_Azure_Support/HelpAndSupportBlade/~/overview | |
* Other service blade: https://portal.azure.com/#view/Microsoft_Azure_Billing/SubscriptionsBladeV2 | |
* Subscription: https://portal.azure.com/#@{tenant.onmicrosoft.com or domain}/resource/subscriptions/{subscription ID}/overview | |
* Resource: https://portal.azure.com/#@{tenant.onmicrosoft.com or domain}/asset/Microsoft_Azure_KeyVault/KeyVault/subscriptions/{subscription ID}/resourceGroups/{resource group name}/providers/Microsoft.KeyVault/vaults/{resource name} | |
* Activity log: | |
* root management group: https://portal.azure.com/#view/Microsoft_Azure_Resources/ManagmentGroupDrilldownMenuBlade/~/activitylog/tenantId/{tenant ID}/mgId/{management group id}/mgDisplayName/{management group display name}/mgCanAddOrMoveSubscription~/true/mgParentAccessLevel/Not%20Authorized/defaultMenuItemId/overview/drillDownMode~/true | |
* management group: https://portal.azure.com/#view/Microsoft_Azure_Resources/ManagmentGroupDrilldownMenuBlade/~/activitylog/tenantId/{tenant ID}/mgId/{management group id}/mgDisplayName/{management group displayname}/mgCanAddOrMoveSubscription~/false/mgParentAccessLevel/Reader/defaultMenuItemId/overview/drillDownMode~/true | |
* subscription: https://portal.azure.com/#@{tenant.onmicrosoft.com or domain}/resource/subscriptions/{tenant ID}/eventlogs | |
* resource group: https://portal.azure.com/#@{tenant.onmicrosoft.com or domain}/resource/subscriptions/{subscription ID}/resourceGroups/{resource group name}/eventlogs | |
* Deployments: | |
* root management group: https://portal.azure.com/#view/Microsoft_Azure_Resources/ManagmentGroupDrilldownMenuBlade/~/deployments/tenantId/{tenant ID}/mgId/{management group id}/mgDisplayName/{management group display name}/mgCanAddOrMoveSubscription~/true/mgParentAccessLevel/Not%20Authorized/defaultMenuItemId/overview/drillDownMode~/true | |
* management group: https://portal.azure.com/#view/Microsoft_Azure_Resources/ManagmentGroupDrilldownMenuBlade/~/deployments/tenantId/{tenant ID}/mgId/{management group id}/mgDisplayName/{management group display name}/mgCanAddOrMoveSubscription~/false/mgParentAccessLevel/Reader/defaultMenuItemId/overview/drillDownMode~/true | |
* subscription: https://portal.azure.com/#@{tenant.onmicrosoft.com or domain}/resource/subscriptions/{subscription ID}/subdeployments | |
* resource group: https://portal.azure.com/#@{tenant.onmicrosoft.com or domain}/resource/subscriptions/{subscription ID}/resourceGroups/{resource group name}/deployments | |
### Notes for management groups | |
* for root management group {management group id} = {tenant id} and {management group display name} = "Tenant%20Root%20Group" by default | |
* for other management groups {management group id} = {short id} and {management group display name} = {longer display name} | |
* Management group display names can be changed | |
* Management group links contains too much information for easy programmatic creation | |
* mgParentAccessLevel, mgCanAddOrMoveSubscription, drillDownMode are mandatory parameters for view | |
## Test results | |
* Portal home: https://portal.azure.com/?loginHint={email} works | |
* ARG: https://portal.azure.com/{tenant id, tenant.onmicrosoft.com or domain}#view/HubsExtension/ArgQueryBlade works | |
* ARG: https://portal.azure.com/@{tenant id, tenant.onmicrosoft.com or domain}#view/HubsExtension/ArgQueryBlade works | |
* ARG: ?tenantHint={domain} does not work | |
* ARG: ?tenantHint={tenant ID} does not work | |
* ARG: ?loginHint={email} does work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment