CmdID / az / az aks / az aks draft
az aks draft setup-gh
Set up GitHub OIDC for your application Azure CLI extensions reference
4 examples 6 options Its page in the Azure CLI extensions reference
Examples
Prompt to setup the GitHub OIDC for a repository.
az aks draft setup-ghIdentifySetup the GitHub OIDC on Azure for a specific repository.
az aks draft setup-gh --provider=azure --gh-repo=some_organization/some_repoIdentify--providerSpecify the cloud provider (default is azure).--gh-repoSpecify the the GitHub repository (organization/repo_name).Setup the GitHub OIDC on Azure with subscription ID and resource group.
az aks draft setup-gh --provider=azure --subscription-id=some_subscription --resource-group=some_rgIdentify--providerSpecify the cloud provider (default is azure).--subscription-idSpecify the Azure subscription ID.--resource-groupSpecify the name of the Azure resource group.Setup the GitHub OIDC with an application name on Azure with subscription ID and resource group for a specific repository.
az aks draft setup-gh --app=some_app --provider=azure --subscription-id=some_subscription --resource-group=some_rg --gh-repo=some_organization/some_repoIdentify--appSpecify the Azure Active Directory applicaton name.--providerSpecify the cloud provider (default is azure).--subscription-idSpecify the Azure subscription ID.--resource-groupSpecify the name of the Azure resource group.--gh-repoSpecify the the GitHub repository (organization/repo_name).Options
--appSpecify the Azure Active Directory applicaton name.--gh-repoSpecify the the GitHub repository (organization/repo_name).--pathAutomatically download and use the Draft binary at the specified location.--providerSpecify the cloud provider (default is azure).--resource-groupSpecify the name of the Azure resource group.--subscription-idSpecify the Azure subscription ID.