Hello, 

I am using packer 1.8.7 and using packer-plugin-arm. 

TL;DR; 
can BYO Key-vault be in different resource group than packer resource 
group? Basically, build_key_vault_name's resource group is not same as 
build_resource_group_name mentioned in packer config.
-------

My packer build resource group and packer key vault resource group is 
different. When I am trying to run packer, it is giving this error. It 
seems it looks for KV in packer resource group. 

*The resource write operation failed to complete successfully, because it 
reached terminal provisioning state 'Failed'.\",\r\n    \"details\": 
[\r\n      {\r\n        \"code\": \"KeyVaultAccessForbidden\",\r\n        
\"message\": \"Key Vault *
*https://testkv-eastus.vault.azure.net/secrets/packerKeyVaultSecret/* 
<https://testkv-eastus.vault.azure.net/secrets/packerKeyVaultSecret/6b3c76eb37f54f11a94f7f3558c7cfb1>
klkasd* either has not been enabled for deployment or the vault id 
provided, 
/subscriptions/<>/resourceGroups/<>/providers/Microsoft.KeyVault/vaults/testkv-eastus,
 
does not match the Key Vault's true resource id.\"\r\n      }\r\n    ]\r\n  
}\r\n}"}]*


Thank you in advance.

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/b7b51cec-7a47-454e-839d-4c0405f54151n%40googlegroups.com.

Reply via email to