When trying to add subscriptions from another tenant via Connect-AzAccount it simply won’t show up…
![](https://powershell24.de/wp-content/uploads/2020/05/FalscherTenant-1024x255.png)
Well, something IS showing, but not THE subscription and neither THE tenant from the login form. Instead there is data from a complete different customer… Following command didn’t help either:
Get-AzContext -ListAvailable
![](https://powershell24.de/wp-content/uploads/2020/05/2020-05-19_09h54_29-1024x70.png)
Long story short: When adding a subscription from another tenant, also provide the tenant ID:
$Cred = Get-Credential
Connect-AzAccount -Credential $Cred -Tenant "YourTenantID"
![](https://powershell24.de/wp-content/uploads/2020/05/2020-05-19_09h57_30.png)
Finall, I wanted to clean up the context entries. Simply pipe the corresponding index of the context entry into Remove-AzContext.
![](https://powershell24.de/wp-content/uploads/2020/05/2020-05-19_10h00_38-1024x271.png)