azure-sdk-for-net
azure-sdk-for-net copied to clipboard
How to created SSL binding for a webapp with Azure.ResourceManager library
I use this piece of code to define ssl binding for my webapp with Microsoft.Azure.Management.Fluent
await webApp.Update().DefineSslBinding()
.ForHostname(request.Fqdn)
.WithPfxByteArrayToUpload(File.ReadAllBytes(pkcs12FilePath, "mypassword")
.WithSniBasedSsl()
.Attach()
.ApplyAsync();
However, Microsoft.Azure.Management.Fluent
is deprecated with this new library.
I couldn't find any equivalent methods in Azure.ResourceManager.AppService
. How can I do it with this library?
Thank you for your feedback. Tagging and routing to the team member best able to assist.
Thanks for reaching out to us, will dig into this issue.
You can call this method to update the existing web app and manage the SSL binding by specifying HostNameSslStates.
By the way, if you want to create certificate, you can call AppCertificateCollection.CreateOrUpdateAsync.
Hi, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!