Belsnickel, Krampus, the Lutins, Rudolph, the Elves, Frau Perchta, Frosty, the Yule Goat, Ded Moroz, Mari Lwyd, and more – there are many creatures lurking about in this holiday season! In this blog
post series, we’ll create a catalog of holiday creatures and deploy it to Azure using secured credentials throughout the dev and production processes.
This is a passwordless approach to developing in Azure. While the code for this series is going to show the Azure Identity SDK and Azure Cosmos SDK in C#, you could also do this in other languages. Here is a table of versions of libraries that this could work with.
The code for this series is available in my holiday-creatures repo on GitHub.
For this series, we will cover each of these in separate blog posts:
- Work with Custom Roles for RBAC with Azure Cosmos DB for NoSQL
- Create a .NET Console app to load the data
- Create a Web application to read the data
- Get the passwordless Web application running in Azure
If you are coding along with this post, there are some prerequisites you need to have:
- Azure Cosmos DB for NoSQL account
- Azure CLI
- .NET 6.0 SDK
As you go through the blog series, you will need to have certain values. I’ve created this table to help track the values you will need throughout the series.
|Field||Your Value||Where Used||Variable Name|
|1. Resource Group Name||Azure CLI commands|
|2. Azure Cosmos DB for NoSQL account name||Azure CLI commands|
|3. Azure Cosmos DB for NoSQL URI||Environment Variable: COSMOS_URI|
|4. “name” from response in read-only role creation (GUID)||Used in role assignment|
|5. “name” from response in read-write role creation (GUID)||Used in role assignment|
|6. Object ID for Azure CLI principal||Used in read-write role assignment|
|7. Object ID for App Service Managed Identity||Used in read-only role assignment|