Share gallery VM images across Azure tenants using an app registration in Terraform
Hello all,
I was playing around with the Azure Compute Gallery.
I noticed there is a possibility to use the Azure Compute Gallery in other tenants by using a Shared App Registration.
The whole process is described on the following article: https://learn.microsoft.com/en-us/azure/virtual-machines/share-using-app-registration?tabs=cli
the article is very straightforward and easy to get to work.
My question here is if anyone also has experience to make this solution work in Terraform?
I've been trying multiple times but cannot get it to work, and cannot find any similar questions/cases.
Problem i'm facing is that for powershell/CLI it's fairly easy to connect to multiple tenants/contexts, but I'm having a hard time working out this same behaviour in terraform.
Any tips are welcome.
thanks!