managed/yba-cli/docs/yba_provider_azure_create.md
Create an Azure YugabyteDB Anywhere provider
Create an Azure provider in YugabyteDB Anywhere
yba provider azure create [flags]
yba provider azure create -n <provider-name> \
--region region-name=westus2::vnet=<vnet> \
--zone zone-name=westus2-1::region-name=westus2::subnet=<subnet> \
--rg=<az-resource-group> \
--client-id=<az-client-id> \
--tenant-id=<az-tenant-id> \
--client-secret=<az-client-secret> \
--subscription-id=<az-subscription-id>
--client-id string Azure Client ID. Can also be set using environment variable AZURE_CLIENT_ID.
--client-secret string Azure Client Secret. Can also be set using environment variable AZURE_CLIENT_SECRET.
--tenant-id string Azure Tenant ID. Can also be set using environment variable AZURE_TENANT_ID.
--subscription-id string Azure Subscription ID. Can also be set using environment variable AZURE_SUBSCRIPTION_ID.
--rg string Azure Resource Group. Can also be set using environment variable AZURE_RG.
--network-subscription-id string [Optional] Azure Network Subscription ID. All network resources and NIC resouce of VMs will be created in this group. If left empty, the default subscription ID will be used.
--network-rg string [Optional] Azure Network Resource Group. All network resources and NIC resouce of VMs will be created in this group. If left empty, the default resource group will be used.
--hosted-zone-id string [Optional] Hosted Zone ID corresponding to Private DNS Zone.
--region stringArray [Required] Region associated with the Azure provider. Minimum number of required regions = 1. Provide the following double colon (::) separated fields as key-value pairs: "region-name=<region-name>::vnet=<virtual-network>::sg-id=<security-group-id>::rg=<resource-group>::network-rg=<network-resource-group>". Region name and Virtual network are required key-values. Security Group ID, Resource Group (override for this region) and Network Resource Group (override for this region) are optional. Each region needs to be added using a separate --region flag. Example: --region region-name=westus2::vnet=<vnet-id>
--zone stringArray [Required] Zone associated to the Azure Region defined. Provide the following double colon (::) separated fields as key-value pairs: "zone-name=<zone-name>::region-name=<region-name>::subnet=<subnet-id>".Zone name, Region name and subnet IDs are required values. Secondary subnet ID is optional. Each --region definition must have atleast one corresponding --zone definition. Multiple --zone definitions can be provided per region.Each zone needs to be added using a separate --zone flag. Example: --zone zone-name=westus2-1::region-name=westus2::subnet=<subnet-id>
--image-bundle stringArray [Optional] Intel x86_64 image bundles associated with Azure provider. Provide the following double colon (::) separated fields as key-value pairs: "image-bundle-name=<image-bundle-name>::machine-image=<custom-ami>::ssh-user=<ssh-user>::ssh-port=<ssh-port>::default=<true/false>". Image bundle name, machine image and SSH user are required key-value pairs. The default SSH Port is 22. Default marks the image bundle as default for the provider. Each image bundle can be added using separate --image-bundle flag. Example: --image-bundle image-bundle-name=<image-bundle>::machine-image=<custom-ami>::ssh-user=<ssh-user>::ssh-port=22
--custom-ssh-keypair-name string [Optional] Provide custom key pair name to access YugabyteDB nodes. If left empty, YugabyteDB Anywhere will generate key pairs to access YugabyteDB nodes.
--custom-ssh-keypair-file-path string [Optional] Provide custom key pair file path to access YugabyteDB nodes. Required with --custom-ssh-keypair-name.
--airgap-install [Optional] Are YugabyteDB nodes installed in an air-gapped environment, lacking access to the public internet for package downloads. (default false)
--ntp-servers stringArray [Optional] List of NTP Servers. Can be provided as separate flags or as comma-separated values.
-h, --help help for create
-a, --apiToken string YugabyteDB Anywhere api token.
--ca-cert string CA certificate file path for secure connection to YugabyteDB Anywhere. Required when the endpoint is https and --insecure is not set.
--config string Full path to a specific configuration file for YBA CLI. If provided, this takes precedence over the directory specified via --directory, and the generated files are added to the same path. If not provided, the CLI will look for '.yba-cli.yaml' in the directory specified by --directory. Defaults to '$HOME/.yba-cli/.yba-cli.yaml'.
--debug Use debug mode, same as --logLevel debug.
--directory string Directory containing YBA CLI configuration and generated files. If specified, the CLI will look for a configuration file named '.yba-cli.yaml' in this directory. Defaults to '$HOME/.yba-cli/'.
--disable-color Disable colors in output. (default false)
-H, --host string YugabyteDB Anywhere Host (default "http://localhost:9000")
--insecure Allow insecure connections to YugabyteDB Anywhere. Value ignored for http endpoints. Defaults to false for https.
-l, --logLevel string Select the desired log level format. Allowed values: debug, info, warn, error, fatal. (default "info")
-n, --name string [Optional] The name of the provider for the action. Required for create, delete, describe, update, and some instance-type subcommands.
-o, --output string Select the desired output format. Allowed values: table, json, pretty. (default "table")
--timeout duration Wait command timeout, example: 5m, 1h. (default 168h0m0s)
--wait Wait until the task is completed, otherwise it will exit immediately. (default true)