In the HashiCorp Terraform context state file is a crucial file when deploying resources through terraform configuration tf file. State file's extension is .tfstate. It is a JSON information/documentation that stores and records details about your organization infrastructure and its configuration. T…
Blog posts July 2024
Terraform variable validation example
In Terraform, the can function is used to determine whether a given expression or operation can be evaluated without causing an error. It returns true if the expression can be evaluated without errors, and false otherwise. This can be particularly useful for handling optional or dynamic attributes t…
Terraform create Azure Virtual Machines from map of objects
I had a task to create multiple Ubuntu Virtual Machines on Microsoft Azure using Terraform. Below is the code for the same. Requirement was VM information should be put into variable with type of map object (Multiple VMs will be created using it). Another requirement was there is already core infras…
Automate chrome browser with PowerShell using selenium
Working with deprecated Internet Explorer using PowerShell to automate it was very easy earlier. To automated clicks or auto type on Internet Explorer, I was just using native .net com objects, which was a very simple and comprehensive. But since Internet Explorer is deprecated, I switched to Google…
Creating a Private Endpoint for Azure Storage Account with Terraform example 3
This is third part of the script and little bit improvement and 2 separate logics I have added to the script. It is modification of earlier written part Creating a Private Endpoint for Azure Storage Account with Terraform example 2. In the script I wanted to create multiple endpoint for sub resource…
Terraform refactoring moved block example
While working with Azure Terraform I converted/updated existing resource block to module (Removed resource block and added module replacing it). But after running terraform plan command I found that earlier created resource using resource block will be destroyed and it will be creating a complete ne…
Creating a Private Endpoint for Azure Storage Account with Terraform example 2
This part is a revised earlier article of Terraform Azure Create Private Endpoint to existing Storage Account with Custom Private DNS zone record link. when I raised PR (Pull Request) for this configuration, Reviewer asked me to make some changes such way that while creating Private Endpoint, name o…
Terraform create Azure Virtual Network subnets from map of object and show name in the header
This is a second part and little update to Using element function with count meta argument example Terraform Azure subnets. After submitting PR (Pull Request), reviewer asked they want small change in the output how it shows on the console. As I am using count to loop through subnet address prefixes…
Using element function with count meta argument example Terraform Azure subnets
I had a task to deploy multiple subnets to a Azure Virtual Network (vNet) using Hashicorp Terraform HCL. I wanted to test and use element() function combination with count meta argument to do the simple POC with less code and automation. Here is snapshot of my Virtual Network's Subnets view in the p…
Creating a Private Endpoint for Azure Storage Account with required sub services using Terraform
This is a second part of Terraform Azure Create Private Endpoint to existing Storage Account with Custom Private DNS zone record link. This article is little bit advance, and here I am creating multiple Private Endpoint based on the provided details in Storage account kind. For example if kind is St…
Terraform Azure Create Private Endpoint to existing Storage Account with Custom Private DNS zone record link
I had a task to create Private Endpoint in Microsoft Azure and was requirement to automate this job using HashiCorp Terraform automation tf configuration files. This Private endpoint will be linked to existing Storage Account and Virtual Network. Other required sub resources Virtual Network Links an…
Blog Search
Page Views
1 4 2 2 8 6 2 9
Archive
- January 2026 (10)
- December 2025 (4)
- November 2025 (3)
- October 2025 (3)
- September 2025 (4)
- August 2025 (11)
- July 2025 (8)
- June 2025 (8)
- May 2025 (5)
- April 2025 (4)
Comments
-
NeilAugust 8, 2025 05:23PM
-
AzraelJanuary 28, 2025 01:28AM
-
raghavendraJanuary 16, 2025 02:13PM
-
jose antonioJanuary 11, 2025 09:53PM
-
DanDecember 22, 2024 10:49PM
