multiple key vault references in same ARM template

tomridges

I'm trying to deploy an ARM template with conditional logic to use two different key-vaults depending on the input. Each exists in a different subscription which is the issue..

(I'm using one template for prod and dev and deploying to different subscriptions accordingly)

Master template variable 1. Key vault 1: /subid1/xxxxx/keyvault 2. Key vualt 2: /subid2/xxxx/keyvault

Nested template "[If(x=y),/subid1/xxxxx/keyvault,/subid1/xxxxx/keyvault)]"

So when deploying into subscrition 2 (subid2) as an example the error is:

Code=KeyVaultParameterReferenceNotInTheSameTenant; Message=The specified KeyVault /subid1/xxxxx/keyvault is not in current tenant.

So I get why the error message is flagging(I've declared a variable in another sub), but how can i get the validation to check what's being deployed as opposed to the variables or is there another way to achieve the same goal?

Thanks,

tomridges

more a workaround than an answer but I just declared key-vault as a parameter in input a different value into the VSTS build definition. Not ideal as I wanted selected DEV to flow through all the pertinent settings, but works so closing.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

ARM Template with Key Vault certificate

From Dev

Prevent multiple foreign key references to same row in primary table

From Dev

Multiple references pointing to the same string?

From Dev

Multiple references pointing to the same string?

From Dev

How do I use Azure Key Vault secret in linked template

From Dev

Not able to set same name for Azure key Vault in different Subscription

From Dev

Mapping an entity with multiple references to the same type

From Dev

ServiceStack OrmLite multiple references of same type load

From Dev

Multiple Smart Pointer References to Same Object

From Dev

Microdata itemref - multiple references to the same item

From Dev

Destroying multiple references to the same object in Java

From Dev

Count the occurrences of a foreign key that references a primary key in the same table

From Dev

Multiple functions using the same template?

From Dev

Multiple CSS style for the same template

From Dev

Multiple functions using the same template?

From Dev

Django | Same form multiple times on the same template

From Dev

Multiple Vault connections with Spring Vault

From Dev

Unable to get Azure storage key from storage resource in ARM template

From Java

How to define PRIMARY KEY in azure cosmosdb arm template

From Dev

How to get the Key's latest version in Output section of an ARM Template?

From Dev

Rails Engine: Namespacing foreign key references to other models in the same engine

From Dev

Foreign key references while receiving attributes with the same name

From Dev

multiple key with same DKIM selector?

From Dev

Mongodb multiple OR condition on same key

From Dev

Use same key for multiple computers

From Dev

Multiple objects listening for the same key

From Dev

What are alternatives to update/delete records with a key that references multiple tables?

From Dev

SELECT multiple values to the same key in multiple tables

From Dev

Certificate Authentication in Key Vault

Related Related

  1. 1

    ARM Template with Key Vault certificate

  2. 2

    Prevent multiple foreign key references to same row in primary table

  3. 3

    Multiple references pointing to the same string?

  4. 4

    Multiple references pointing to the same string?

  5. 5

    How do I use Azure Key Vault secret in linked template

  6. 6

    Not able to set same name for Azure key Vault in different Subscription

  7. 7

    Mapping an entity with multiple references to the same type

  8. 8

    ServiceStack OrmLite multiple references of same type load

  9. 9

    Multiple Smart Pointer References to Same Object

  10. 10

    Microdata itemref - multiple references to the same item

  11. 11

    Destroying multiple references to the same object in Java

  12. 12

    Count the occurrences of a foreign key that references a primary key in the same table

  13. 13

    Multiple functions using the same template?

  14. 14

    Multiple CSS style for the same template

  15. 15

    Multiple functions using the same template?

  16. 16

    Django | Same form multiple times on the same template

  17. 17

    Multiple Vault connections with Spring Vault

  18. 18

    Unable to get Azure storage key from storage resource in ARM template

  19. 19

    How to define PRIMARY KEY in azure cosmosdb arm template

  20. 20

    How to get the Key's latest version in Output section of an ARM Template?

  21. 21

    Rails Engine: Namespacing foreign key references to other models in the same engine

  22. 22

    Foreign key references while receiving attributes with the same name

  23. 23

    multiple key with same DKIM selector?

  24. 24

    Mongodb multiple OR condition on same key

  25. 25

    Use same key for multiple computers

  26. 26

    Multiple objects listening for the same key

  27. 27

    What are alternatives to update/delete records with a key that references multiple tables?

  28. 28

    SELECT multiple values to the same key in multiple tables

  29. 29

    Certificate Authentication in Key Vault

HotTag

Archive