JulianHayward / Azure-MG-Sub-Governance-Reporting

Azure Governance Visualizer aka AzGovViz is a PowerShell script that captures Azure Governance related information such as Azure Policy, RBAC (a lot more) by polling Azure ARM, Storage and Microsoft Graph APIs.
MIT License
814 stars 293 forks source link

add TenantId4AzContext parameter to allow service connections to Set-AzContext to several tenants #209

Closed AsbjornNielsen closed 10 months ago

AsbjornNielsen commented 10 months ago

This PR will introduce the optional parameter "TenantId4AzContext". If passed, it will be used when setting the Azure Context. This allows an Azure DevOps Service Connection to set the context to other tenants than the one set in the Service Connection's settings.

Run identifier: 8258F01A3B1D7405FC99B263F085A87002A84C0ECC00ACFC25BDEA4C7C6A48E4FEE01000A7377C141FB37F0E28B6AFDC9F8244F32CF4C0DF2BEB74FA27C48461