azure-sdk-for-net icon indicating copy to clipboard operation
azure-sdk-for-net copied to clipboard

How to created SSL binding for a webapp with Azure.ResourceManager library

Open nguyenvuduc opened this issue 2 years ago • 2 comments

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?

nguyenvuduc avatar Jan 06 '23 22:01 nguyenvuduc

Thank you for your feedback. Tagging and routing to the team member best able to assist.

m-redding avatar Jan 07 '23 00:01 m-redding

Thanks for reaching out to us, will dig into this issue.

Yao725 avatar Jan 10 '23 08:01 Yao725

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.

Yao725 avatar Jan 16 '23 06:01 Yao725

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!

ghost avatar Jan 23 '23 08:01 ghost