CmdID / az / az cosmosdb / az cosmosdb postgres / az cosmosdb postgres role
az cosmosdb postgres role create
Create a new role or updates an existing role. Azure CLI reference
1 example 3 options Its page in the Azure CLI reference
Examples
Create a new role for cluster
az cosmosdb postgres role create -n "testrole" --password "password" --cluster-name "test-cluster" -g "testGroup" --subscription "ffffffff-ffff-ffff-ffff-ffffffffffff"Identify-nThe name of the cluster role.--passwordThe password of the cluster role.--cluster-nameThe name of the cluster.-gName of resource group.--subscriptionName or ID of subscription.Options
--cluster-nameThe name of the cluster.--passwordThe password of the cluster role.--role-name, --name, -nThe name of the cluster role.