CmdID / az / az cosmosdb
az cosmosdb create
Creates a new Azure Cosmos DB database account. Azure CLI reference
41 options Its page in the Azure CLI reference
Options
Show its 41 options
--account-name--analytical-storage-schema-type, --as-schemaSchema type for analytical storage.--assign-identityAssign system or user assigned identities separated by spaces.--backup-intervalthe frequency(in minutes) with which backups are taken (only for accounts with periodic mode backups)--backup-policy-typeThe type of backup policy of the account to create--backup-redundancyThe redundancy type of the backup Storage account--backup-retentionthe time(in hours) for which each backup is retained (only for accounts with periodic mode backups)--capabilitiesset custom capabilities on the Cosmos DB database account.--continuous-tierThe tier of Continuous backup--databases-to-restoreAdd a database and its collection names to restore--default-consistency-leveldefault consistency level of the Cosmos DB database account--default-identityThe primary identity to access key vault in CMK related features.--default-priority-levelDefault Priority Level of Request if not specified.--disable-key-based-metadata-write-accessDisable write operations on metadata resources (databases, containers, throughput) via account keys--disable-local-authDisable key-based authentication on the Cosmos DB account--enable-analytical-storageFlag to enable log storage on the account.--enable-automatic-failoverEnables automatic failover of the write region in the rare event that the region is unavailable due to an outage.--enable-burst-capacity, --enable-prpp-autoscaleFlag to Enable/Disable burst capacity feature--enable-free-tierIf enabled the account is free-tier.--enable-multiple-write-locationsEnable Multiple Write Locations--enable-partition-mergeFlag to enable partition merge on the account.--enable-pbeFlag to enable priority based execution on the account.--enable-virtual-networkEnables virtual network on the Cosmos DB database account--gremlin-databases-to-restoreAdd a gremlin database and its graph names to restore--ip-range-filterfirewall support.--is-restore-request, -rRestore from an existing/deleted account.--key-uriThe URI of the key vault--kindThe type of Cosmos DB database account to create--locationsAdd a location to the Cosmos DB database account--max-intervalwhen used with Bounded Staleness consistency, this value represents the time amount of staleness (in seconds) tolerated.--max-staleness-prefixwhen used with Bounded Staleness consistency, this value represents the number of stale requests tolerated.--minimal-tls-versionIndicate the minimum allowed TLS version--network-acl-bypass-resource-ids, -iList of Resource Ids to allow Network Acl Bypass.--network-acl-bypassFlag to enable or disable Network Acl Bypass.--public-network-access, -pSets public network access in server to either Enabled, Disabled, or SecuredByPerimeter.--restore-sourceThe restorable-database-account Id of the source account from which the account has to be restored.--restore-timestampThe timestamp to which the account has to be restored to.--server-versionValid only for MongoDB accounts.--tables-to-restoreAdd table names to restore--tagsspace-separated tags: key[=value] [key[=value] ...].--virtual-network-rulesACL's for virtual network