QuestionQ17

DevSecOps Pipeline-Release and Deploy Stage

Timothy Dalton works as a senior DevSecOps engineer at an IT company based in Auburn, New York. He wants to use Jenkins for continuous integration and Azure Pipelines for continuous deployment to deploy a Java-based application to an Azure Kubernetes Service (AKS) cluster.

Before deploying the AKS cluster, Timothy needs to create a resource group named Jenkins in the southindia location.

Which of the following commands should Timothy run?

  • A az grp create --n Jenkins --loc southindia
  • B azure group create --name Jenkins --location southindia
  • C az group create --name Jenkins --location southindia
  • D azure group create --n Jenkins --loc southindia
Explanation

Azure Kubernetes Service deployments require an Azure resource group to be created first, using the Azure CLI. The correct Azure CLI syntax for creating a resource group is az group create --name <name> --location <location>. The command az group create --name Jenkins --location southindia correctly uses the az CLI, the valid group create subcommand, and the full, valid parameter names --name and --location, matching Microsoft's official documentation for the az group create command and the standard AKS cluster deployment tutorial workflow.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!