@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:
- Upload Public certificate through portal.
- ARM template/Bicep Template.
- 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.