How to upload public certitifcate to azure webapp using either powershell or az cli?

Hariprasad 5 Reputation points
2023-03-02T03:53:11.81+00:00

I have requirement to upload the public certificate to the function app and I want to do it either by powershell or az cli. I caouldn't find the required command for that. Can anyone help me on this?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,496 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,174 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 19,626 Reputation points Microsoft Employee
    2023-03-03T06:18:40.01+00:00

    @Hariprasad Thank you for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.

    You can create public certificate to your web app either through portal or ARM /Bicep Template or through Rest API and below are the respective resources:

    1. Upload Public certificate through portal.
    2. ARM template/Bicep Template.
    3. Web Apps - Create Or Update Public Certificate

    Currently we don't have a specific cmdlet in Power Shell( Az.Websites module) or AzCLI to create a public certificate.

    Alternatively, if you want to create a public certificate through PowerShell/Az CLI I would suggest you call the above Rest API through either of these az rest/ Inovke-RestMethod methods.

    If you still looking for a specific cmdlet to create a public certificate to webapp using PowerShell/ Az CLI I would suggest you raise a feature request in Azure/Azure-cli github repro here.

    Feel free to reach back to me if you have any further questions on this.

    0 comments No comments