Articles related to Azure

How To Continuously Deploy Your .NET Core Azure WebJobs

WebJobs is a feature of Azure App Service that enables you to run a program or script in the same instance as a web app, API app, or mobile app. Since this runs as part of the same instance as the Web App, there is no additional cost to use WebJobs. WebJobs…

Let Azure Manage The Username and Password Of Your SQL Connection String

To connect to a SQL database, we usually use a connection string that has a username and password. We ensure that the connection string is stored and distributed securely . However, the problem here is the very existence of having something sensitive to…

Azure Managed Service Identity And Local Development

One of the common challenges when building cloud applications is managing credentials for authenticating to cloud services. The Managed Service Identity feature of Azure AD provides an automatically managed identity in Azure AD. This identity helps…

DefaultAzureCredential: Unifying How We Get Azure AD Token

In the past, Azure had different ways to authenticate with the various resources. The Azure SDK's is bringing this all under one roof and providing a more unified approach to developers when connecting to resources on Azure. In this post, we will look into…

Generating PDF: .Net Core and Azure Web Application

Generating a PDF is one of those features that come along in a while and gets me thinking. How do I do this now? Previously I had written about dynamically generating a large PDF from website contents . The PDF library I used that then, did have the…

How to Authenticate With Microsoft Graph API Using Managed Service Identity

In an earlier post, we saw how to enable Role-Based Access for .Net Core Web applications . We used hardcoded AD Group Id's in the application as below To avoid hardcoding the id's in the application config, we can use the Graph API to query the AD groups at…

Remote Debugging: Azure Virtual Machines With Visual Studio

It's not often that you want to debug into applications running on a Virtual Machine, but not to say that it is never required. Recently at one of my clients, I had to debug into an application running on an Azure Virtual machine. I wanted to debug an…

Azure AD: Restrict Application Access To Users Belonging To A Group

For one of the web application I was working on, access was to be restricted based on user belonging to a particular Azure AD Group. The application as such did not have any Role Based Functionality. It feels an overhead to set up the Role Based Access when…

How to Authenticate and Authorize Azure Function with Azure Web App Using Managed Service Identity (MSI)

Azure Functions are getting popular, and I start seeing them more at clients. One typical scenario I come across is to authenticate an Azure Function with an Azure Web API. Every time something like this comes up, it means more Azure AD applications, which in…

Custom Authorization Policy Providers in .Net Core For Checking Multiple Azure AD Security Groups

In the post, .Net Core Web App and Azure AD Security Groups Role based access , we saw how to use Azure AD Security Groups to provide Role Based Access for your .Net Core applications. We covered only cases where our Controllers/functions were provided access…

Building Windows Service Installer on Azure Devops

Recently I was looking into packaging a Windows Service as an MSI installer. I wanted the MSI created in the build pipeline, in this case Azure DevOps , and publish the MSI as a build artifact. The windows service uses .Net Framework and looking around for…

.Net Core Web App and Azure AD Security Groups Role Based Access

Getting your application to provide capabilities based on the role of the User using the system is a common thing. When using Azure Active Directory (AD), the Security Groups feature allows organizing users of your system into different roles. In the…

Azure AD Custom Attributes and Optional Claims from an ASP.Net Application

When using Azure Active Directory for managing your users, it is a common requirement to add additional attributes to your Users like SkypeId, employee code, EmployeeId and similar. Even though this happens to be a common need, getting this done is not that…

Azure Web App Restarting Automatically Due to Overwhelming Change Notification

At one of my clients, we faced a strange issue recently. The Azure Web application restarted automatically very often. The event log in the Kudu console showed the below error message. 2017-07-13 00:09:50,333 P45516/D4/T171 INFO Umbraco.Core…

Azure Key Vault From Azure Functions - Certificate Based Authentication

In the previous post we saw how to connect to Azure Key Vault from Azure Functions . We used the Application Id and Secret to authenticate with the Azure AD Application . Since the general recommendation is to use certificate-based authentication, in this…

Azure Key Vault From Azure Functions

Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. You can write just the code you need for the problem at hand, without worrying about a whole application or the infrastructure to run it. Functions can make…

Could Not Load Assembly msshrtmi.dll?

While migrating a few Azure Cloud Services to Web Jobs, we started facing the error, Could not load assembly ... /msshrtmi.dll ,for just one of the projects. The error provides the exact path from where it is trying to load the DLL and is the same path from…

Managing Azure AD Application for Key Vault

Please check here for scripts using the latest PowerShell cmdlets. Access to the Key Vault is secured using AD application token, as we had seen in the ' Authenticating a Client Application with Azure Key Vault '. Quite often administrators require to manage…

Azure Key Vault in a Real World Application

Please check here for scripts using the latest PowerShell cmdlets. Over the last couple of posts we have seen how to Get Started with Azure Key Vault , Authenticate a Client Application with the Vault and also on how the vault can be used as an alternate…

Moving Sensitive Information from Configuration File to Azure Key Vault

Please check here for scripts using the latest PowerShell cmdlets. Most of the applications today needs to use some kind of sensitive information like a database connection-string, api secret or passwords for it to connect to external service providers…

Authenticating a Client Application with Azure Key Vault

Please check here for scripts using the latest PowerShell cmdlets and check out the new Visual Studio Connected Service feature . Azure Key Vault provides an easy way for managing cryptographic keys and secrets (like connection strings or passwords) in a…

Getting Started with Azure Key Vault

Please check here for scripts using the latest PowerShell cmdlets. Azure Key Vault service is a cloud hosted, HSM(Hardware Security Modules)-backed service for managing cryptographic keys and other secrets. With Azure Key Vault, the process of managing and…

Azure Key Vault and Powershell Module Version

I was trying out the public preview of the Azure Key Vault service that has been released recently. While following the steps as mentioned in their blog , came across the below error when trying the ' New-AzureKeyVault ' command. Please install Azure…

Azure Web Sites: Moving Wordpress to Cloud

It’s been almost an year since I have moved to this custom hosted blog and is nearing its renewal with my current host, Godaddy. Now that Azure has full support for Web Sites which enables you to deploy web applications on a scalable and reliable cloud…

Subscribe to rahulpnath.com

And get the latest articles delivered right to your inbox!