Azure Key Vault Certificate

Ho, Keith D 160 Reputation points
2025-01-14T20:50:10.8666667+00:00

I'm currently trying to build a workflow that work run this command automatically. Is there a way I can run this command without needing "az login"?

az keyvault certificate import --vault-name "<your-key-vault-name>" -n "ExampleCertificate" -f "/path/to/ExampleCertificate.pem"
Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,359 questions
{count} votes

Accepted answer
  1. Akhilesh Vallamkonda 11,355 Reputation points Microsoft Vendor
    2025-01-15T20:06:35.8666667+00:00

    Hi @Ho, Keith D

    Thank you for reaching Microsoft Q&A Forum!

    I Understand that you are trying to Import a certificate into your key vault using the Azure CLI and you would like to automate this command.

    az keyvault certificate import --vault-name "<your-key-vault-name>" -n "ExampleCertificate" -f "/path/to/ExampleCertificate.pem"
    
    

    You can achieve this task you can use Azure Automation where you can create a run book to execute tasks that need to be performed at set timed intervals.
    Also, you can use Azure functions to Automate this process
    Reference: How to use Azure Automation
    Hope this helps. Do let us know if you any further queries by responding in the comments section.
    Thanks,
    Akhilesh V.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.