Showing posts with label azure cli. Show all posts
Showing posts with label azure cli. Show all posts

Tuesday, September 2, 2025

Integrating Azure Key Vault with AKS via External Secrets Operator

Managing secrets centrally is a best practice in software development. Secrets should be stored and rotated in a central location, even when they are used by multiple components of an application. However, when secrets need to be accessed in different places, such as CI/CD pipelines and Kubernetes, manually copying them can lead to errors and failures caused by human mistakes.

To address this in Kubernetes, we can use External Secrets Operators, which automatically sync secrets from external secret stores such as Azure Key Vaults into Kubernetes secrets. This removes the need for manual synchronization and reduces the risk of errors due to incorrect or outdated secrets.

Pre-requites:

  • Azure Kubernetes Cluster
  • Azure Key vault
  • Managed identity

Saturday, August 23, 2025

Fixing Azure CLI Storage Account Whitelisting Error: ‘IPs does not appear to be an IPv4 or IPv6 network

This blog explains an error that occurs when whitelisting IPs on a storage account using an Azure CLI script. The script attempts to pass the IPs as a space-separated string and apply them through the CLI. However, it fails with an error indicating that the IP format is incorrect. This post explains the issue and provides the steps to fix it.

Pre-requites:

  • Azure Storage account
  • The $ipList parameter accepts a semicolon-separated list of IP addresses

Sunday, March 9, 2025

Managing Planned Maintenance for Azure Container Apps

Azure Container App is a fully managed Azure service that receives regular updates automatically. These updates are applied with minimal impact on the container applications. However, Azure Container App users can now define a maintenance window, allowing them to schedule service maintenance at a convenient time. This ensures application availability during important periods without downtime due to service maintenance.

There are two types of service updates, critical and non-critical updates. Critical updates are applied immediately when required, and users cannot set a maintenance window for them. However, maintenance windows can be set for non-critical updates. This blog explains how to set a maintenance window for Azure Container App using a GitHub Action pipeline.

Sunday, June 30, 2024

Promote Azure Snapshot with Azure CLI

Azure Storage account blobs facilitate versioning through two mechanisms, blob versioning and blob snapshots. Blob versioning creates a new version with each edit, while blob snapshots allow you to take a snapshot of the current blob and make changes to it. Both mechanisms enable users to revert to a previous version or a created snapshot if needed and recover the data.

This blog explains how to revert to a blob snapshot using an automated script.

Prerequisite: Azure DevOps blob