Added TL;DR examples

This commit is contained in:
Michele Cereda
2023-01-08 13:23:41 +01:00
parent fb6edbd915
commit 1561d3945b
2 changed files with 36 additions and 1 deletions

View File

@@ -66,7 +66,7 @@ az account get-access-token
az role assignment list az role assignment list
az role assignment list --all az role assignment list --all
az role assignment list --resource-group 'resource_group' az role assignment list --resource-group 'resource_group'
az role assignment list --scope 'scope_id' --role 'role_id_or_name' az role assignment list --scope 'scope_id' --role 'role_id_or_name'
# List role assignments with scope for a User or Managed Identity. # List role assignments with scope for a User or Managed Identity.
# By default, it will only show role assignments for the current subscription. # By default, it will only show role assignments for the current subscription.
@@ -106,6 +106,10 @@ az pipelines build show --id 'pipeline_id'
az pipelines build show --detect true -o 'tsv' \ az pipelines build show --detect true -o 'tsv' \
--project 'project_name' --id 'pipeline_id' --query 'result' --project 'project_name' --id 'pipeline_id' --query 'result'
az pipelines runs artifact download --path 'local_path' \
--organization 'organization_id_or_name' --project 'project_name' \
--artifact-name 'artifact_name' --run-id 'run_id'
# Validate a bicep template to create a Deployment Group. # Validate a bicep template to create a Deployment Group.
az deployment group validate \ az deployment group validate \
-n 'deployment_group_name' -g 'resource_group_name' \ -n 'deployment_group_name' -g 'resource_group_name' \
@@ -151,6 +155,8 @@ az acr helm push -n 'acr_name' 'chart.tgz' --force
# List the available AKS versions. # List the available AKS versions.
az aks get-versions --location 'location' -o table az aks get-versions --location 'location' -o table
az aks show -g 'resource_group_name' -n 'cluster_name'
# Get credentials for an AKS cluster. # Get credentials for an AKS cluster.
az aks get-credentials \ az aks get-credentials \
--resource-group 'resource_group_name' --name 'cluster_name' --resource-group 'resource_group_name' --name 'cluster_name'
@@ -165,6 +171,26 @@ az aks check-acr --acr 'acr_name' \
--resource-group 'resource_group_name' --name 'cluster_name' --resource-group 'resource_group_name' --name 'cluster_name'
az aks check-acr … --node-name 'node_name' az aks check-acr … --node-name 'node_name'
aks extension add --name k8s-extension
aks extension show --name k8s-extension
# List Kubernetes extensions in an AKS cluster.
az k8s-extension list --cluster-type 'managedClusters' \
--resource-group 'resource_group_name' --name 'cluster_name'
# List Flux configurations in an AKS cluster.
az k8s-configuration flux list --cluster-type 'managedClusters' \
--resource-group 'resource_group_name' --name 'cluster_name'
az feature list
az feature show -n 'AKS-ExtensionManager' --namespace 'Microsoft.ContainerService'
az policy definition list
az policy definition list -o 'tsv' --query "[?(@.name=='policy_name')]"
az policy definition list -o 'tsv' --query "[?(@.displayName=='policy_display_name')].name"
az policy metadata list
# Check if the current User is member of a given Group. # Check if the current User is member of a given Group.
az rest -u 'https://graph.microsoft.com/v1.0/me/checkMemberObjects' \ az rest -u 'https://graph.microsoft.com/v1.0/me/checkMemberObjects' \
-m post -b '{"ids":["group_id"]}' -m post -b '{"ids":["group_id"]}'

View File

@@ -0,0 +1,9 @@
# Calicoctl
1. [TL;DR](#tldr)
## TL;DR
```sh
calicoctl get networkPolicy -A --allow-version-mismatch
```