Open CassidyKramer opened 5 years ago
I am afraid that you cannot inject secrets with az vm create --secrets
other than certificates.
az vm secret add
has a mandatory parameter --certificate
https://docs.microsoft.com/en-us/cli/azure/vm/secret?view=azure-cli-latest#az-vm-secret-add
Since it's not possible to inject non-certificate secret to VM, you may create a support ticket to get assistance from Azure VM team for best practice for injecting secrets.
If you have further questions, open a new issue. Thanks.
If anybody got the suggestion to inject secrets into VMs, please update this issue since this is where you land from Google when looking up this unexpected restriction.
Being unable to inject secrets with a command called secret
is quite unusual to say the least.
@dkarlovi This requires the service team to confirm whether non-certificate secret are supported and how to inject. I'll transfer this issue to Compute team
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @avirishuv, @vaibhav-agar, @amjads1.
Author: | ps-ckramer |
---|---|
Assignees: | jiasli, qwordy |
Labels: | `Compute`, `KeyVault`, `Service Attention`, `Compute - VM` |
Milestone: | - |
Describe the bug Hi, I'm trying to use cloud-init to automate the configuration and registration of a Linux build agent self-hosted in an ASE, since the agent will be redeployed regularly. To automate the registration, I need to inject an Azure DevOps personal access token into cloud-init. I added the token to a key vault and tried using this tutorial to inject the token, but received the following error:
To Reproduce
Expected behavior I would be allowed to inject actual secrets with az vm create --secrets, rather than only certificates.
If this isn't possible, I would like to be guided on the best practice for injecting secrets into cloud-init.
Environment summary CLI version 2.0.70 , bash shell