Conocimiento diario de Cloud y DevOps
Azure · Azure DevOps · GitHub Actions · Ansible · Kubernetes · AKS · Terraform · Helm · CI/CD
⭐ Consejo destacado
Copiá y compartí con un clicSet Azure subscription
azure-cliSwitches your active Azure CLI context to the specified subscription so subsequent commands run in the correct scope.
az account set --subscription <SUBSCRIPTION_ID>
🔧 Consejos de hoy
10 elementosCreate Azure Resource Group
azure-cliCreates a new Azure resource group in the specified region. Use this before deploying other Azure resources.
az group create -n <RG> -l <LOCATION>
Deploy Terraform Configuration
terraformInitializes Terraform providers and applies the configuration automatically. Useful for provisioning infrastructure.
terraform init && terraform apply -auto-approve
Run Ansible Playbook
ansibleExecutes an Ansible playbook against hosts defined in the inventory file. Used for configuration management.
ansible-playbook -i inventory.ini playbook.yml
Build Docker Image
dockerBuilds a Docker image from the Dockerfile in the current directory. Helps containerize applications.
docker build -t <IMAGE_NAME>:<TAG> .
Push Docker Image
dockerPushes a local Docker image to a container registry. Required for deployments pulling remote images.
docker push <REGISTRY>/<IMAGE_NAME>:<TAG>
Connect to AKS Cluster
aksDownloads AKS cluster credentials to local kubeconfig. Enables kubectl interaction with the cluster.
az aks get-credentials -g <RG> -n <CLUSTER>
Apply Kubernetes Manifest
kubernetesApplies a Kubernetes manifest to the specified namespace. Used for deploying workloads.
kubectl apply -f deployment.yaml -n <NAMESPACE>
Install Helm Chart
helmInstalls or upgrades a Helm release in a Kubernetes cluster. Useful for repeatable deployments.
helm upgrade --install <RELEASE> <CHART_PATH> -n <NAMESPACE>
Run GitHub Actions Workflow Manually
github-actionsTriggers a GitHub Actions workflow on demand using the GitHub CLI. Helpful for testing pipelines.
gh workflow run <WORKFLOW_FILE>
Queue Azure DevOps Pipeline
azdoQueues a pipeline run for the specified branch in Azure DevOps. Useful for triggering CI/CD builds.
az pipelines run --name <PIPELINE_NAME> --branch <BRANCH>
List Kubernetes Pods
kubernetesRetrieves all pods in the target namespace. Helps monitor application status.
kubectl get pods -n <NAMESPACE>
Delete Terraform Resources
terraformDestroys all infrastructure managed by Terraform. Useful for cleanup in test environments.
terraform destroy -auto-approve
💡 Experiencia real
“Cut deployment time from 45m to 10m with pipelines.”