azure-cli

Automate Azure authentication and resource management via Azure CLI.

1|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/mattgotteiner/search-agent-skills --skill azure-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-cli
Source: https://github.com/mattgotteiner/search-agent-skills/tree/main/.github/skills/azure-cli
Command: npx skills add https://github.com/mattgotteiner/search-agent-skills --skill azure-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables executing Azure CLI commands to manage Azure resources, obtain access tokens, and interact with Azure Search services. It streamlines authentication and resource management from automation scripts.

Core Features & Use Cases

  • Authentication & Token Management: login with az login, acquire access tokens for services, and securely pass tokens to HTTP requests.
  • Resource Administration: create, update, and manage Azure resources, resource groups, and search-related artifacts (indexes, data sources, indexers).
  • Use Case: Imagine an automation pipeline that provisions a new Azure Search service, retrieves a Bearer token, and runs a set of deployment commands.

Quick Start

  • Ensure Azure CLI is installed and you are authenticated with az login.
  • Set your subscription with az account set --subscription "YOUR_SUBSCRIPTION_NAME_OR_ID".
  • Retrieve an access token for a service, for example: az account get-access-token --resource https://search.azure.com

Frequently Asked Questions about azure-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get a bearer token for Azure services using the Azure CLI?

To get a bearer token for Azure services, use the Azure CLI command `az account get-access-token` and specify the target service URI to retrieve the token for HTTP requests.

What are the prerequisites for automating Azure resource management from code?

Automating Azure resource management requires the Azure CLI to be installed, an active Azure subscription, and prior user authentication via the `az login` command to enable script execution.

Can I manage Azure Search indexes and data sources through CLI automation?

Yes, you can manage Azure Search indexes, data sources, and indexers by executing standard ARM operations and Azure CLI commands to create, update, and provision search-related artifacts.

How do I set the active subscription before retrieving an Azure access token?

Set your active subscription by running `az account set --subscription` with your subscription name or ID before retrieving an access token or performing any resource management operations.

What is the best way to streamline authentication for Azure automation pipelines?

The best way to streamline authentication in Azure automation pipelines is using the Azure CLI to programmatically log in, set the subscription context, and acquire access tokens for service interactions.