astroctl cloud azure connect
Link your Azure subscription to AstroPulse
Synopsis
Grant AstroPulse access to your Azure subscription to create and manage AKS clusters.
Generates a setup script and saves it as astro-azure-setup-prod-01.sh for a cluster named prod-01. Run it in a terminal with Azure CLI access. It creates the required service principal and role assignments. The command waits until the script completes. A setup script runs only within 24 hours of being made; after that, run connect again for a fresh one. If you later remove AstroPulse's access in your cloud, don't re-run an old setup script: it would grant it again.
When you install Vulnerability Scanning on a cluster, AstroPulse also creates a managed identity for the scanner in the resource group and grants it AcrPull on the cluster's registries, so private images can be scanned; removing the add-on removes them.
Your subscription ID: az account show --query id --output tsv
astroctl cloud azure connect [flags]
Examples
astroctl cloud azure connect --subscription-id 00000000-0000-0000-0000-000000000000 --resource-group rg-astro --region eastus --cluster-name prod
astroctl cloud azure connect --subscription-id 00000000-0000-0000-0000-000000000000 --resource-group rg-astro --region eastus --cluster-name prod --output setup.sh
Options
--cluster-name string Cluster name for this connection (required)
--duration string Credential duration (e.g., 30m, 1h) (default "1h")
--force-update Force reconfiguration even if already set up
-h, --help help for connect
-o, --output string Custom filename for the setup script (default: astro-azure-setup-<cluster-name>.sh)
--region string Azure region (e.g., eastus) (required)
--resource-group string Azure resource group (required)
--subscription-id string Azure subscription ID (required)
SEE ALSO
- astroctl cloud azure - Azure cloud operations