CmdID / az / az cosmosdb / az cosmosdb fleetspace / az cosmosdb fleetspace account
az cosmosdb fleetspace account create
Register an existing Cosmos DB database account to a Fleetspace. Azure CLI reference
The attachment name must match the database account name in resourceId, ignoring case; aliases are not supported. resourceId must identify a Microsoft.DocumentDB/databaseAccounts resource, not a child resource. armLocation is mandatory and nonblank; the service derives the authoritative location from the account.
1 example 1 option Its page in the Azure CLI reference
Examples
Register a database account to a fleetspace
az cosmosdb fleetspace account create --resource-group MyResourceGroup --fleet-name myfleet --fleetspace-name myspace --fleetspace-account-name myaccount --body @fleetspaceAccount.jsonIdentify--resource-groupName of the resource group.--fleet-nameName of the Cosmos DB Fleet.--fleetspace-nameName of the Fleetspace resource.--fleetspace-account-nameDatabase account name from resourceId (case-insensitive match), not an association alias.--bodyFleetspace Account JSON body with properties.globalDatabaseAccountProperties: resourceId must identify a Cosmos DB database account; armLocation is required and nonblank, but the service derives the authoritative account location.Options
--body, -bFleetspace Account JSON body with properties.globalDatabaseAccountProperties: resourceId must identify a Cosmos DB database account; armLocation is required and nonblank, but the service derives the authoritative account location.