Octo version: 2020.5.0
I have the need to select an azure account based on environment and tenant from an azure powershell step. I’ve actually had this same issue in the Terraform steps.
I have the following
Accounts:
- Account-Dev-UK
- Account-Dev-USA
- Account-Prod-UK
- Account-Prod-USA
Tenants:
- UK
- USA
Environments:
- Dev
- Prod
Library Set:
- Azure Environment Accounts
- Tenant common variable/library set template variable (side note: can we get the naming in sync on these?):
- AzureEnvironmentAccount (Type=Azure account OR single line text box, neither work)
- library set variables:
-
AzureEnvironmentAccount.UK
- value scoped to dev environment - Account-Dev-UK
- value scoped to dev environment - Account-Prod-UK
- AzureEnvironmentAccount.USA
- value scoped to dev environment - Account-Dev-USA
- value scoped to dev environment - Account-Prod-USA
-
AzureEnvironmentAccount.UK
- Tenant common variable/library set template variable (side note: can we get the naming in sync on these?):
The tenants then have the AzureEnvironmentAccount template variable set to the appropriate UK or USA library set variable as an octo var binding.
This should allow me to just use the tenant common variable/library set template variable in my azure powershell step but I receive the following error.
It is the correct ID and the account exists but I believe it is the binding that is causing the issue rather than the template var being directly set as an azure account type.