QuestionQ98

DevSecOps Pipeline-Operate and Monitor Stage

Joyce Vincent, a senior DevSecOps engineer at MazeSoft Solution Pvt. Ltd., wants to integrate the Trend Micro Cloud One RASP tool with Microsoft Azure in order to secure a container-based application by inspecting traffic, detecting vulnerabilities, and preventing threats.

Using Microsoft Azure PowerShell, Joyce created an Azure Container Instance (ACI) within a resource group named "aci-test-closh" and loaded the container image into it. She then reviewed the deployment of the container instance.

Which of the following commands should Joyce use to retrieve the logging information from the container?

  • A azure container logs --resource-group ACI --name aci-test-closh
  • B az container logs --resource-group ACI --name aci-test-closh
  • C azure container logs -resource-group ACI -name aci-test-closh
  • D az container logs -resource-group ACI -name aci-test-closh
Explanation

The Azure CLI tool is invoked with the executable name az (the legacy azure command belonged to the older, now-deprecated Azure CLI 1.0/Node.js-based tool). To retrieve logs from an Azure Container Instance, the correct subcommand is az container logs, and its parameters use double-dash long-form flags: --resource-group to specify the resource group and --name to specify the container group name. This matches Microsoft's documented syntax: az container logs --resource-group <resource-group-name> --name <container-group-name>.

Learn more

Community Discussion

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