gcloud active-directory domains create DOMAIN --region=[REGION,…] --reserved-ip-range=RESERVED_IP_RANGE [--admin-name=ADMIN_NAME] [--async] [--authorized-networks=[AUTHORIZED_NETWORKS,…]] [--enable-audit-logs] [--labels=[KEY=VALUE,…]] [GCLOUD_WIDE_FLAG …]
my-domain.com in region us-central1, a network peering
to my-network and consuming the IP address range
10.172.0.0/24.
gcloud active-directory domains create my-domain.com --region=us-central1 --reserved-ip-range="10.172.0.0/24" --authorized-networks=projects/my-project/global/networks/my-network
To set the project attribute:
domain on the command line with a fully
specified name;
--project on the command line;
core/project.
DOMAINdomain attribute:
domain on the command line.
--region=[REGION,…]--reserved-ip-range=RESERVED_IP_RANGE--admin-name=ADMIN_NAMEMIAdmin will be used. This is
different from both the domain administrator and the Directory Services Restore
Mode (DSRM) administrator.
--async--enable-audit-logs--labels=[KEY=VALUE,…]--access-token-file,
--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.
managedidentities/v1 API. The full
documentation for this API can be found at: https://cloud.google.com/managed-microsoft-ad/
gcloud alpha active-directory domains creategcloud beta active-directory domains create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.