Tuesday, September 5, 2023

Set Longer Expiration date for Azure SPN Client Secrets

Azure SPN client secret expiration period can be set as 3 months, 6 months, 12 months, 18 months and 24 months via Azure portal. Other than the above-mentioned fixed time durations, there is an option to select customize expiration period for client secrets. However, maximum duration allowed to select as the secret end date is 24 months. 


Sunday, August 13, 2023

Container App Deployment with YAML Template

This blog explains how to deploy an Azure container app using a YAML template.

Pre-requisites: 

  1. Azure container app environment
  2. Azure container registry with docker image

Create a YAML file and add following content to it. 

Add values for Container App name, resource group name, Azure subscription id where resources going to be created, Container App Environment name and resource group, Azure Container Registry (ACR) name, ACR username, ACR password, image path and image tag.

Saturday, July 29, 2023

How To Resolve Automatic Redirect HTTP To HTTPS In Chrome

This blog explains a one of the solutions for automatic redirection from http to https when using Chrome browser.

Reason for the issue: 

HTTP Strict Transport Security (HSTS) forces user's web browser to use https even when requesting http. 

Thursday, July 13, 2023

Working with Chef Automate API on Windows

This blog explains how to use the Chef Automate API on a Windows machine. 

Pre-requisites:

  • Chef Automate Dashboard with node added to compliance.

Chef Automate API request with an API token passed in the header. This token can be created in chef automate dashboard as follows.

Login to Chef Automate dashboard. Go to token section in the settings page. 

Sunday, June 25, 2023

Resolve Azure DevOps Pipeline Failure "Cannot open server requested by the login. Client with IP address is not allowed to access the server."

This blog explains how to resolve Azure DevOps pipeline failure when running dotnet ef migration update command. 

Cannot open server 'demo-sql' requested by the login. Client with IP address 'xxx.xxx.xxx.xxx' is not allowed to access the server.  To enable access, use the Windows Azure Management Portal or run sp_set_firewall_rule on the master database to create a firewall rule for this IP address or address range.  It may take up to five minutes for this change to take effect.

Tuesday, June 13, 2023

Deploy Azure Container App Environment Using Terraform

Azure container app environment is fully managed environment to run containerized applications. This blog contains terraform script that can be used to deploy Azure Container App Environment with internal only ingress which means accessible only from VNet. You can find the complete code sample in GitHub here.

Tuesday, May 23, 2023

Use an Image from Azure Container Registry in a Different Subscription from an Azure Container App

This blog explains the limitation and a workaround to access Azure Container Registry from Container App Environment when the two resources are in two separate subscriptions.

Pre- requisites: Azure Container App and Azure Container Registry deployed to two separate subscriptions.

Go to Azure Container App and click on Containers. Then Click on Edit and Deploy.

Monday, May 8, 2023

How to Access Cognitive Service Translator API With Virtual Network Endpoint

Microsoft Cognitive Service translator accessible with Web API, Virtual Network and container endpoints. This blog explains how to access cognitive service with virtual network endpoint.

Pre-requisites: cognitive service translator

Go to translator app Networking under Resource Management. Select Firewalls and virtual networks tab.