Azure

Down the Rabbit Hole of Using SelectPdf on Microsoft Azure

Initially I thought it would be trivial to use SelectPdf to convert an HTML page into a PDF document as a service on Microsoft Azure, since I was easily able to do this as a .NET console app. Everything was going well to begin with. I’d set up everything in the Resource Group: The Logic Apps that write to and read from the Service Bus, the Storage Account for the template files and generated documents, the Function App that’s supposed to handle the document generation itself… The first problem I ran into was the following console message:

How secure is Azure Key Vault?

Azure Key Vault is designed to store (and protect) secrets such as API keys, passwords, cryptographic keys, connection strings, etc. It can store the following categories of data: Keys Certificates Secrets The Secrets storage can store arbitrary plaintext values, so Key Vault could potentially be used as a means of centrally managing a collection of usernames and passwords that could be copied and pasted straight from the Azure Portal. Is this a safe method of password management, though?

Azure Function App Migration

After clicking ‘Create’, select ‘Develop in portal’, and HTTP Trigger or Service Bus Trigger, depending on the type of Function App being added. Most the required information – function name, connection, queue name, etc. – can be copied from the original function’s JSON file. In Code + Test, copy the code from the old function or the Visual Studio Solution. In the Integration section, the values for Trigger, Inputs and Outputs also need to be copied over.

Docker Basics

A Docker container runs as a sandboxed process on a local system or a server, and consists of at least one image. An image is built from the source code of an application or service, and can be distributed, through a repository, to provide others the means of testing an existing software product with minimal setup. Containers and images can be managed through the Docker Dashboard application. As such, a Docker container will require its own configurations and script that enable it to run as intended.

Azure Active Directory Authentication for .NET Core Services

If upgrading an existing application, the following are required from NuGet: Microsoft.Identity.Web Microsoft.Identity.Web.UI Generating the Project The project in this repository was generated from the ASP.NET Core Web App template. When generating the project, select ‘Microsoft identity platform’ as the Authentication type in the Additional Information section. HTTPS and Docker were also enabled for this project. After installing dotnet msidentity tool, Visual Studio will display the Service Dependencies and Service References.