azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

2 small "bugs/inconsistency" with Websites / Commands.Websites / Cmdlets / Certificates / NewAzureWebAppSSLBinding.cs

Open ghost opened this issue 10 years ago • 5 comments

  • If you look at https://resources.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aname/providers/Microsoft.Web/certificates, one can see that the CertNamePostFixSeparator is a "#" and not a "" for **Name *& _ID* as defined in NewAzureWebAppSSLBinding.cs when the certificate is uploaded via the portal. Shouldn't we be consistent here?
  • Again, if a WebApp is in an ASE, the certificate's Name & ID pattern are different when created using the cmdlet compared to created through the portal.

ghost avatar Apr 18 '16 07:04 ghost

@naveedaz Can you take a look?

markcowl avatar Apr 18 '16 16:04 markcowl

@akurmi (Powershell cmdlet owner)

naveedaz avatar Apr 18 '16 20:04 naveedaz

This is actually by design so that one can easily find out if the cert was uploaded through PowerShell ('_' in the resource name) or portal ('#' in the resource name). That being said, a certificate uploaded through PowerShell should work fine in the portal and vice versa. Are you facing any issues with this naming convention?

akurmi avatar Apr 18 '16 21:04 akurmi

No, I’m not facing issues, was just wondering why the “#” & the “_”. What about the trailing info though? It looks like it’s set to “-“ + if(deployed in ASE) {ASE name + “appse”} + trim($location) + webspace Why is it different?

From: Ashish Kurmi [mailto:[email protected]] Sent: Monday, April 18, 2016 11:13 PM To: Azure/azure-powershell [email protected] Cc: Marc Thenot [email protected] Subject: Re: [Azure/azure-powershell] 2 small "bugs/inconsistency" with Websites / Commands.Websites / Cmdlets / Certificates / NewAzureWebAppSSLBinding.cs (#2109)

This is actually by design so that one can easily find out if the cert was uploaded through PowerShell ('_' in the resource name) or portal ('#' in the resource name). That being said, a certificate uploaded through PowerShell should work fine in the portal and vice versa. Are you facing any issues with this naming convention?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHubhttps://github.com/Azure/azure-powershell/issues/2109#issuecomment-211580589

ghost avatar Apr 18 '16 21:04 ghost

@twitchax: "Azure PowerShell continues to maintain RDFE support on a legacy basis: new functionality and bug fixes are addressed sparingly. This issue does not meet the current threshold for consideration."

cormacpayne avatar Sep 02 '17 03:09 cormacpayne