I have pfx certificate. I need to add FriendlyName to Pfx certificate and then add certificate to Webapp using azure cloud shell.
Using following script, you can set friendlyName,
$cert= Get-PfxCertificate -FilePath "XYZ\XYZC.pfx" | SELECT *
$cert.FriendlyName = "XXXTest"
But then this $cert cannot be used for uploading certificate with friendlyName. Following script is for adding certificate to Webapp.
New-AzWebAppSSLBinding -ResourceGroupName "resourceName" -WebAppName "webAppName" -CertificateFilePath "XYZ\XYZC.pfx" -CertificatePassword "XXXX" -Name "webAppName"
Is there a way to set friendlyName before uploading to webapp. Appreciate for help.