gcloud active-directory domains create

gcloud active-directory domains create - create a Managed Microsoft AD domain
gcloud active-directory domains create DOMAIN --region=[REGION,…] --reserved-ip-range=RESERVED_IP_RANGE [--admin-name=ADMIN_NAME] [--async] [--authorized-networks=[AUTHORIZED_NETWORKS,…]] [--labels=KEY=VALUE] [GCLOUD_WIDE_FLAG]
Create a new Managed Microsoft AD domain with the given name using Google Cloud's Managed Service for Microsoft Active Directory.

This command can fail for the following reasons:

  • An AD domain with the same name already exists.
  • The active account does not have permission to create AD domains.
  • There is an overlap between the provided CIDR range and authorized network's CIDR.
  • A valid region was not provided.
Domain resource - Name of the managed Managed Microsoft AD domain you want to create. This represents a Cloud resource. (NOTE) Some attributes are not given arguments in this group but can be set in other ways. To set the project attribute: provide the argument domain on the command line with a fully specified name; set the property core/project; provide the argument --project on the command line. This must be specified.
ID of the domain or fully qualified identifier for the domain. To set the domain attribute: provide the argument domain on the command line.
Google Compute Engine region in which to provision domain controllers.
Classless Inter-Domain Routing range of internal addresses that are reserved for this domain.
Name of the administrator that may be used to perform Active Directory operations. This is a delegated administrator account provisioned by our service. If left unspecified MIAdmin will be used. This is different from both the domain administrator and the Directory Services Restore Mode (DSRM) administrator.
Return immediately, without waiting for the operation in progress to complete.
Names of the Google Compute Engine networks to which the domain will be connected.
List of label KEY=VALUE pairs to add.
These flags are available to all commands: --account, --billing-project, --configuration, --flags-file, --flatten, --format, --help, --impersonate-service-account, --log-http, --project, --quiet, --trace-token, --user-output-enabled, --verbosity.

Run $ gcloud help for details.

This command uses the managedidentities/v1 API. The full documentation for this API can be found at: https://cloud.google.com/managed-microsoft-ad/
The following command creates an AD domain with the name my-domain.com in region us-central1, a network peering to my-network and consuming the IP address range
gcloud active-directory domains create my-domain.com  --region=us-central1 --reserved-ip-range=""
These variants are also available:
gcloud alpha active-directory domains create
gcloud beta active-directory domains create