System Design

Azure Service Principal Credential Reset

Featured Image courtesy Miguel Á. Padriñán. I recently ran into a small issue with this blog. The credentials that Github workflows use to deploy the application had expired. As someone who doesn’t login to Azure on a daily basis and whose primary role is not application development on the cloud, I did not see this coming. So my Github action to deploy this blog failed with the following message: AADSTS7000222: The provided client secret keys for app '***' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: bd3c9b5a-5677-4dbf-9136-78883da00700 Correlation ID: cdd461df-0722-4770-9b9a-d97e29181d94 Timestamp: 2022-04-18 18:07:59Z I understood that a credential had expired, which logically meant that I had to reset the credentials for the account/service principal that was being used by the continuous deployment setup for this blog. ...

April 23, 2022 · 4 min · 682 words
Azure Active Directory

Azure Active Directory for Developers: What you need to know

This is a long read and I spent a pretty long time going through videos and articles compiling this into one post. Not something I would have done usually. But I do think that sometimes having it all in one place is easier to access than splitting into multiple articles. I hope the TOC helps group things. Azure AD is Microsoft’s cloud-based identity and access management service. Lots of words. But do they make sense? ...

October 23, 2021 · 12 min · 2357 words
EF Core

Entity Framework Core: Configure Database Connection using Azure Service Token Provider

Update - READ THIS FIRST There is now support to connect to any Azure SQL database, Azure SQL Managed Instance and Synapse SQL in Azure Synapse Analytics from your .NET Core app using just the connection string. To learn more about this read the following pages: Use Azure Active Directory Authentication with your Azure DB Using Azure Active Directory auth with SqlClient This will completely eliminate the need to write any code to obtain a service connection in your application. I found this out when I shared this post earlier on Twitter. ...

June 26, 2021 · 11 min · 2306 words