Month November 2024

[Azure] Update Client Secrets for App Registrations Using Azure CLI

An App Registration is the identity definition of an application in Microsoft Entra ID that allows you to configure permissions and authentication methods. A client secret acts like a password for the application, enabling it to authenticate itself when communicating with Azure services. This post illustrates how to manually and programmatically generate new client secrets for App Registrations.

How to Access Azure Cosmos DB from Databricks Workspace

Azure Cosmos DB is a fully managed and serverless NoSQL and vector database solution from Microsoft. Azure Databricks is a service for data engineering, analytics, and machine learning. There are two ways to access the data in Cosmos DB from Databricks workspace notebooks: (1) using Cosmos DB Spark 3 Connector with DB Key; (2) using CosmosClient with role-based access

[Azure] Key Vault Access Troubleshooting 101: Access Policy and Network

This post discusses the two common root causes that block access to Azure Key Vault: Access Policy and Network. In my experience, 90% of Key Vault access issues can be resolved by addressing these two factors. Simply put, to determine if an identity (user or application) can retrieve the stored data, the Key Vault checks: (1) if related permissions have been granted to the identity; and (2) if the source network of the identity (e.g., its public IP or VNet) has been allowed/whitelisted on the Key Vault. Two use cases from the perspective of an individual user and a web app will be illustrated to explain how the authorization works. We then introduce a tool (MSI Validator) that is helpful for advanced troubleshooting.