You can view the terraform plan details in the Azure pipeline terraform task logs when you are executing terraform plan in Azure pipelines. However, I would be great to view the plan in the pipeline summary. The great extension here allows us to have the terraform plan details in the pipeline summary and let's look at the steps required.
Wednesday, 31 August 2022
Friday, 26 August 2022
Resolve 404 for manifest.webmanifest in Azure App Service
If you are deploying PWA apps with Node JS/Angular to Azure App Services on Windows, you might encounter "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable." with a 404 for manifest.webmanifest, wven though they are correctly deployed to your Azure App Service. Let's see how we can resolve this issue in Azure App Services.
Saturday, 20 August 2022
Create Service Connection in Azure DevOps for Azure Container Registry - Using a Service Principal
Adding Azure Container Registry (ACR) service connection to Azure DevOps is really simple as described in "Create Service Connection in Azure DevOps for Azure Container Registry", when you have the same account you are using for Azure DevOps, is associated with your Azure Subscription. However, this may not be the case always and you may want to push docker images to ACR in an Azure Subscription which is not related to your Azure DevOps organization, such as your customer's production Azure subscription. We have discussed one option with basic authentication in the post "Create Service Connection in Azure DevOps for Azure Container Registry - Using Basic Authentication". Let’s see how to create a service connection for ACR in such situation to utilize it in a deployment pipeline using a Service Principal in this post.
Tuesday, 16 August 2022
Create Service Connection in Azure DevOps for Azure Container Registry - Using Basic Authentication
Adding Azure Container Registry (ACR) service connection to Azure DevOps is really simple as described in "Create Service Connection in Azure DevOps for Azure Container Registry", when you have the same account you are using for Azure DevOps, is associated with your Azure Subscription. However, this may not be the case always and you may want to push docker images to ACR in an Azure Subscription which is not related to your Azure DevOps organization, such as your customer's production Azure subscription. Let’s see how to create a service connection for ACR in such situation to utilize it in a deployment pipeline using basic authentication.
Saturday, 13 August 2022
Create Service Connection in Azure DevOps for Azure Container Registry
To push docker contianer images from Azure Pipelines to Azure Container Registry (ACR) you need to establish a connection between the Azure DevOps Team Project and the Azure Continer Registry in the Azure Subscription. General service principal based Azure Resource Manager Service Connection cannot be used to push docker images to Azure Contianer Registry. We need to instead create a service connection of type docker registry in Azure DevOps. Let's look at few simple steps to get such service connction created.
It is simple to setup this service connection if your Azure subscription and the Azure DevOps belong to the same account as described in this post. If you have your Azure subscription account as a different account form your Azure DevOps account refer one of below options to create the service connectiont to ACR.
Saturday, 6 August 2022
Kubernetes Pod Logs - View Latest Logs Faster
We have discussed about enabling detailed request, resposnse logs in ASP.NET Core APIs in the post "Log All Requests in ASP.NET Core API". In a contianerinzed API running in a Kubernetes cluster, say AKS, you would be interested in reading these logs to debug some error or for quick monitoring on the requests made. Implementing a proper monitoring solution using ELK for Kubernetes is more useful, however, doing a quick look at logs of contianers/pods will help as well at times. When you run kubectl logs podname-xxxxxxxxxx-xxxxxx -n k8snamesapce you will get the entire log of a particular pod. But depending on pod age it may be a long log and you might only be interested in couple of minutes or last hour details to have a quick look. Let's see how we can limit and read pod logs for a time frame or number of log lines.
Popular Posts
-
Dynamic block allows to create nested multi level block structures in terraform code. Conditional usage of such blocks are really useful in...
-
In Azure DevOps YAML pipelines there are several functions available for you to use. replace is such a useful function, which you can use t...
-
We have discueed, that we have to use an environment variable to handle input parameter default values, if we are using trigger for workflo...
-
Adding Azure Container Registry (ACR) service connection to Azure DevOps is really simple as described in " Create Service Connection ...
-
Some times a silly mistake can waste lot of time of a developer. The exception “System.IO.IOException: The response ended prematurely.” whil...