'Add Kubernetes resource to Environment hosted in Azure subscription with different AAD tenant

We run our Azure pipelines with AAD tenant @microsoft.com. We want to deploy/control our deployments via AzurePipelines/Environment, and add an AKS resource from Azure subscription (that is hosted with @pme.gbl AAD tenant).

Kubernetes resources being listed on the VSO UI / Environment/ Kubernetes, are all related to @microsoft.com AAD tenant.

How do we add AKS resources for @pme.gbl AAD tenant and related Azure subscriptions ?

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source