Unable to resolve Azure Account variables when using Project variable template


(ben.dixon) #1

We are using a Project Variable Template to specify the Azure Account to use for a particular deployment however, we are unable to access any of the variable properties (e.g. SubscriptionNumber or TenantId). When using a Project variable to specify the Azure Account the substitution works.


Project Template:


Project Variables using the tenant variable:


Deployed config:

{
  "Azure": {
    "SubscriptionId": "#{Tenant.Azure.Account.SubscriptionNumber}",
    "TenantId": "#{Tenant.Azure.Account.TenantId}"
  }
}

We suspect this is due to the variable not being treated as an Azure Account when configured within the tenant.

We have attempted to access these variables as additional tenant level variables but the end result is the same.

Is this scenario supported? Ideally we’d like to be able to configure a single variable to specify the Azure account and have everything else hang off it.


(Daniel Fischer) #3

Hi @ben_dixon,

Thanks for getting in touch! It looks like this is currently a known issue. We have a GitHub issue which you can following with some details about this. I will add this conversation as a source to the issue for the developers to reference.

Let me know if you have any thoughts or questions here. :slight_smile:

Best regards,
Daniel