posh-providers/azure/az
Kevin Franklin Kim 8787adc7e5
fix: lint issue
2025-04-28 11:06:19 +02:00
..
artifactory.go feat(azure/az): add artifactory command 2025-03-20 16:08:27 +01:00
az.go feat(pulumi): add pulumi azure integration 2024-01-17 09:24:21 +01:00
checker.go fix: lint issue 2025-04-28 11:06:19 +02:00
cluster.go feat(azure/az): add artifactory command 2025-03-20 16:08:27 +01:00
command.go feat(azure/az): add tenant id 2025-04-28 10:44:25 +02:00
config_test.go feat: add schema 2025-04-04 16:44:08 +02:00
config.go feat(azure/az): add tenant id 2025-04-28 10:44:25 +02:00
config.schema.json feat(azure/az): add tenant id 2025-04-28 10:44:25 +02:00
config.yaml feat(azure/az): add checker 2025-04-28 11:00:19 +02:00
README.md feat(azure/az): add tenant id 2025-04-28 10:44:25 +02:00
subscription.go feat(azure/az): add artifactory command 2025-03-20 16:08:27 +01:00

POSH az provider

Usage

This provider requires az to be installed on your system.

Plugin

inst.commands.Add(az.NewCommand(l, inst.az, inst.kubectl))

Config

az:
  configPath: .posh/config/azure
  tenantId: xxxx-xx-xx-xx-xxxx
  subscriptions:
    development:
      name: xxxx-xx-xx-xx-xxxx
      clusters:
        dev:
          name: my-cluster
          resourceGroup: my-resource-group
      artifactories:
        dev:
          name: my-artifactory
          resourceGroup: my-resource-group

Commands

> help az
Manage azure resources

Usage:
      az [command]

Available Commands:
      login                         Log in to Azure
      logout                        Log out to remove access to Azure subscriptions
      configure                     Manage Azure CLI configuration
      artifactory                   Login into the artifactory
      kubeconfig                    Retrieve credentials to access remote cluster

Examples

# Log into azure tenant
> az login

# Authorize artifactory
> az artifactory <SUBSCRIPTION> <ARTIFACTORY>

# Retrieve cluster kubeconfig
> az kubeconfig <SUBSCRIPTION> <CLUSTER>