Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for passing keyvault secrets through TemplateParameterObject #2336

Closed
gregjhogan opened this issue May 26, 2016 · 6 comments
Closed
Labels
KeyVault Service Attention This issue is responsible by Azure service team.

Comments

@gregjhogan
Copy link

It looks like when template parameters are assembled for trasmission only a template parameter file supports keyvault references. This means dynamic parameters and -TemplateParameterObject does not support keyvault references.

I would like support for referencing a keyvault secret through other means. Ideally it would probably not be through a special dynamic parameter or -TemplateParameterObject. I think ideally I could just put something in the template like [reference('Microsoft.KeyVault/vaults/{vault-name}/secrets/{secret-name}', '2015-06-01').value]to get the secret, allowing a vault/secret name to be passed as a normal parameter. Or perhaps this is already somehow possible, but it isn't well documented? Thanks!

@gregjhogan gregjhogan changed the title Add support for referencing keyvault secrets without parameter file Add support for passing keyvault secrets through TemplateParameterObject Jun 7, 2016
@andreamaruccia
Copy link

+1

@xstof
Copy link

xstof commented Dec 17, 2016

+1 but also would prefer powershell command line parameters, not just TemplateParameterObject

@baseif
Copy link

baseif commented Apr 13, 2017

+1
Can't Reference a secret with dynamic id !!!!
The obvious problems with this way of doing things are:
Someone needs to type the cleartext password which means:
it needs to be known to anyone who provisions the environment and how do I feed it into an automated environment deployment? If I store the password in a parameter… ???????
"variables": {
"tenantPassword": {
"reference": {
"keyVault": {
"ID": "[concat(subscription().id,'/resourceGroups/',parameters('keyVaultResourceGroup'),'/providers/Microsoft.KeyVault/vaults/', parameters('VaultName'))]"
},
"secretName": "tenantPassword"
}
}
},

@AndyHerb
Copy link

+1 - I've just lost the best part of a day trying to work out how to do this, only to find this issue and surmise that it can't currently be done. It'd be nice if it were at least mentioned in the documentation that KeyVault references can only be done via a Parameter File

@drandall-microsoft
Copy link

+1

@maddieclayton
Copy link
Contributor

Closing in favor of #3318 which is assigned to the correct team.

@bsiegel bsiegel added the Service Attention This issue is responsible by Azure service team. label Sep 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
KeyVault Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

9 participants