---
title: "Discussion on \"How to Get Azure Credentials Using CLI (for Terraform & GitLab CI/CD)\" | Hashnode"
description: "Discussion on \"How to Get Azure Credentials Using CLI (for Terraform & GitLab CI/CD)\". Learn how to authenticate Terraform and GitLab CI/CD with Azure using the Azure CLI to set four key environment variables securely"
url: "https://hashnode.com/posts/how-to-get-azure-credentials-using-cli-for-terraform-and-gitlab-cicd/694a29d19c2d8fcfbb56caac"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Get Azure Credentials Using CLI (for Terraform & GitLab CI/CD)](https://bilalamjad.hashnode.dev/how-to-get-azure-credentials-using-cli-for-terraform-and-gitlab-cicd?utm_source=hashnode&utm_medium=feed)

Learn how to authenticate Terraform and GitLab CI/CD with Azure using the Azure CLI to set four key environment variables securely

Dec 23, 2025 · 3 min read · bilalamjad.hashnode.dev  
Read the article

-   [#azure](https://hashnode.com/tag/azure)
-   [#azure-cli](https://hashnode.com/tag/azure-cli)

## Written by

[Bilal Amjad](https://hashnode.com/@bilalamjad)

@bilalamjad · Pakistan

  
[View profile](https://hashnode.com/@bilalamjad)

DevOps Engineer | Solution Architect | Infrastructure Engineer (IAC) | Kubernetes

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
