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

[Module issue from Discussions] sshPublicKeys module #4544

Open
eriqua opened this issue May 20, 2024 Discussed in #3059 · 1 comment
Open

[Module issue from Discussions] sshPublicKeys module #4544

eriqua opened this issue May 20, 2024 Discussed in #3059 · 1 comment

Comments

@eriqua
Copy link
Contributor

eriqua commented May 20, 2024

Discussed in #3059

Originally posted by Grant-Rc March 29, 2023
Hello guys,

Would it be possible to have a module for the creation of 'sshPublicKeys' resource if not exist?

Deploying a VM for the team using the module virtualMachines and found that they need a new sshkey created. Ideally this would be all self-contained rather than creating the ssh key in a different pipeline.

resource symbolicname 'Microsoft.Compute/sshPublicKeys@2022-11-01' = if (empty(publicKeys)) { name: 'string' location: location tags: { tagName1: 'tagValue1' tagName2: 'tagValue2' } }

This will create the SSH pair and then we can pass the details up to the Microsoft.Compute/virtualMachines deployment. The extra steep would be where the private key gets stored, and I assume that could be solved by storing it in a keyvault.

Im going to try and put this together now if you would like to see the end resault?


Update: image

@eriqua
Copy link
Contributor Author

eriqua commented May 21, 2024

As commented in the screenshot, this is related to #3118 (closed as resolved) and Azure/bicep-registry-modules#2368 (being moved to AVM)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant