Tidy up - Unused Project and Nuget package reference using Visual Studio 2019

If you are a Developer/Architect using Visual Studio as IDE for your development activities, this blog post will be of your interest. During the Ignite 2021 conference, Microsoft released Visual Studio 2019 v16.9 and v16.10 Preview 1. As part of version 16.10 Preview 1, one of the cool features they introduced is to "Remove Unused References..." for any Projects and Nuget packages that are not in use. At the time of writing this blog post, we have Visual Studio Version 16.10.0 (official release) which includes this new feature.  As part of development, we generally get carried away and introduce new Nuget package references to your project and add new references to your Projects. By the end of development, you will not be 100% sure which are not being referenced and unused which means you will leave those unused project references in your application. Now you might be wondering what's the big deal in it since it doesn't harm. The advantage of removing unused project r

Configuring free HTTPS(TLS/SSL) certificates on Azure App Service

In November 2019 Microsoft announced at Ignite 2019, we can now enable HTTPS for our own domains for free on Azure App Service (preview).

Azure App Service is an HTTP-based service for hosting web applications, REST APIs, mobile back ends, Docker images.

TLS/SSL is a mandatory NFR checklist when going to production. Using a third-party certificate usually has the downside of managing certificate, rotation, renewal process etc. You can also buy App Service Certificates from Azure, which have more features than the free offering, but do cost money ($$$). Of course, we have things like Let's Encrypt which is free but it comes with overhead of certificate management, rotation, integration with Azure etc.  So, having a managed certificate is certainly a nice feature.

Pre-requisites

1. WebApp provisioned in Azure portal with App Service Plan of Basic and above (free and shared tiers are not supported)
2. Custom Domain already exists

Enabling a free SSL certificate for the web app

  1. Custom Domain configurations
    • Turn on "HTTPS Only" option 
    • Click on "Add Custom Domain" where you will be providing custom domain information and submit the details
    • Add SSL Binding as shown below if you are seeing SSL state as not secure for assigned custom domain name. After updating the binding it show SSL state as secure.
  2. TLS/SSL configurations
  3. Now if we navigate back to overview tab of App Service, we should be seeing the updated Url which comprises of custom domain which we added in above step.
  4. Now its done, time to verify the changes.
Some of the missing features of this new offering. The capability is in preview, so some of these limitations may be removed when its GA.
  • No support for wildcards
  • Naked domain support to App Service Managed Certificates
  • Cannot specify a Subject Alternate Name (SAN) for the certificate
  • No support for apex domains
  • Cannot export the certificate
  • Can only enable if the custom domain is already added with an A / CNAME record.

References

Comments

Popular posts from this blog

Tidy up - Unused Project and Nuget package reference using Visual Studio 2019

Swagger UI for Azure Function v2 & v3 APIs

Authenticate Azure Functions - API Keys