1-azure-auth-check
Verify Azure authentication status and display connection information (tenant, account, subscription context). Works with any Azure product or service.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- 1-azure-auth-check
- description
- Verify Azure authentication status and display connection information (tenant, account, subscription context). Works with any Azure product or service.
03 SKILL.md 正文
When to use this skill
Use this skill when you need to verify Azure authentication before performing Azure operations, or when troubleshooting authentication issues.
Examples:
- "Check if I'm authenticated to Azure"
- "Show my current Azure connection info"
- "Verify my Azure tenant and subscription context"
- "Am I connected to the right Azure account?"
Preconditions
- Azure CLI installed (
azcommand available) - Installation: https://learn.microsoft.com/en-us/cli/azure/?view=azure-cli-latest (Windows, macOS, Linux)
Workflow
1) Check Azure CLI Installation
- Verify
azis available:az version - If not installed, provide installation instructions:
Install Azure CLI: https://learn.microsoft.com/en-us/cli/azure/?view=azure-cli-latest - Exit with clear error if CLI unavailable
2) Check Existing Azure Context
- Run
az account showto check for an existing authenticated session - If context exists:
- Extract tenant ID, account ID, and current subscription
- Display connection status: ✅ "Already authenticated"
- If no context exists (error or "Please run 'az login'"):
- Display: ⚠️ "Not authenticated to Azure"
3) Authenticate if Needed
- If no existing context:
- Prompt user: "Would you like to connect now? (Y/N)"
- If Yes: Run
az login - If No: Exit with message "Authentication required to continue"
- Handle authentication errors gracefully
4) Display Connection Information
- Show authenticated user details:
✅ Connected to Azure Account: user@domain.com Tenant ID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Current Subscription: Subscription Name (sub-id)
5) Provide Multi-Tenant Guidance (if applicable)
- If the user needs to connect to a different tenant, inform them:
Note: To connect to a different tenant, use: az login --tenant 'your-tenant-id'
6) Save Context for Subsequent Skills
- Store authentication context in session state:
- Tenant ID
- Account ID
- Current subscription (if any)
- This allows downstream skills to skip re-authentication
Output
- Authentication status (authenticated/not authenticated)
- Tenant information
- Account details
- Current subscription context
- Session state saved for use by subsequent skills
Related Skills
- Use 2-azure-subscription-select after this skill to choose subscriptions to scan
- Required before any Azure resource scanning or metrics collection skills
Example Invocation
User: "Check my Azure authentication"
Agent: [Runs 1-azure-auth-check skill]
Output:
✅ Connected to Azure
Account: john.doe@contoso.com
Tenant ID: abc123...
Current Subscription: Production (sub-123...)
04 同仓库更多 Skills
7-azure-report-generate
Generate comprehensive reports (CSV, Markdown, JSON) for Azure resource impact assessments. Export detailed findings, statistics, and recommendations. Works with any Azure product deprecation analysis.
6-azure-impact-analyze
Calculate severity and migration effort for Azure resources with detected features. Configurable severity thresholds based on usage patterns and business impact. Works with any Azure product deprecation scenario.
5-azure-metrics-collect
Comprehensive feature/usage detection via Azure Monitor metrics. Collects usage data over configurable lookback period (1-93 days). Works with any Azure product that emits metrics to Azure Monitor.
4-azure-channel-detect
Fast, resource-based feature detection for Azure resources. Detects features/channels by examining related child resources (domains, endpoints, configurations). Works with any Azure product where features are exposed as sub-resources.
3-azure-resource-scan
Scan Azure subscriptions for specific resource types. Interactive prompts allow scanning any Azure product (ACS, Storage, Compute, Databases, etc). Returns resource inventory across selected subscriptions.
2-azure-subscription-select
Interactive subscription selection workflow. Choose specific subscription(s) or scan all accessible subscriptions. Works with any Azure product or service.