Azure
  • 10 Apr 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

Azure

  • Dark
    Light

Article summary

The Azure CLI is a set of commands used to create and manage Azure resources. With this component of the Cloud CLI extension, you can interact with Azure directly from LimaCharlie.

This extension makes use of the Azure CLI, which can be found here.

Example

The following example returns a list of virtual machines and their respective details in Azure.

- action: extension request
  extension action: run
  extension name: ext-cloud-cli
  extension request:
    cloud: '{{ "az" }}' 
    command_line: '{{ "vm list" }}'
    credentials: '{{ "hive://secret/secret-name" }}'

Credentials

To utilize the Azure CLI, you will need:

  • An application and a service principal with the appropriate permissions and a client secret
  • Create a secret in the secrets manager in the following format:
appID/clientSecret/tenantID

Was this article helpful?

What's Next