JetBrains / teamcity-azure-agent

TeamCity support for Azure cloud build agents
Apache License 2.0
48 stars 22 forks source link

Feature Request: Add support for access to Shared Image Galleries in other subscriptions #139

Open IrfanMuhammad1 opened 2 years ago

IrfanMuhammad1 commented 2 years ago

Description

Currently, Shared Image Galleries (SIG) are required to be in the same subscription as the Resource Groups where the agents are deployed. This prevents us from sharing a single SIG across multiple Subscriptions. The current workaround is to create a (SIG) for each subscription, and duplicate the vm versions across them. Ofcourse, this is a wasteful approach.

Scenario: We have multiple Azure Subscriptions, each with its own TeamCity instance. The aim is for each instance to deploy cloud agents within a Resource Group of the Subscription the instance resides in. The neccessary RBAC roles for the managed identity are in place to allow access, but the plugin does not currently pull them due to design (?).

Environment

Diagnostic logs

ujohnny commented 4 months ago

Just encountered this one on our TeamCity issue. Indeed plugin lists images available only in the linked subscription and ignored subscription from the configured image (we use kotlin DSL and can configure image from another subscription, but it does not work anyway) so we just observe "Image error" state with some java NSEE.