title: Creating CosmosDB with Azure CLI in powershell
body: <p>I'm trying to create a new cosmosdb but getting the below error when I execute below code.</p>
  
  <pre><code>az cosmosdb create --name TIC_Test
                      --resource-group "TIC" 
                      --default-consistency-level  Session  
                      --locations "Central US"=0 "Central US"=0 
                      --max-interval 5  --max-staleness-prefix 100  
                      --enable-automatic-failover false  
                      --enable-virtual-network false  
                      --kind GlobalDocumentDB
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>az : usage: az cosmosdb create [-h] [--verbose] [--debug]
  At line:2 char:1
  + az cosmosdb create --name TIC_Test --resource-group "TIC"  --default- ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (usage: az cosmo...bose] [--debug]:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
  
                            [--output {json,jsonc,table,tsv}] [--query JMESPATH]
                            --resource-group RESOURCE_GROUP_NAME --name
                            ACCOUNT_NAME [--locations LOCATIONS [LOCATIONS ...]]
                            [--tags [TAGS [TAGS ...]]]
                            [--kind {GlobalDocumentDB,MongoDB,Parse}]
                            [--default-consistency-level {Eventual,Session,BoundedStaleness,Strong,ConsistentPrefix}]
                            [--max-staleness-prefix MAX_STALENESS_PREFIX]
                            [--max-interval MAX_INTERVAL]
                            [--ip-range-filter IP_RANGE_FILTER [IP_RANGE_FILTER ...]]
                            [--enable-automatic-failover [{true,false}]]
                            [--capabilities CAPABILITIES [CAPABILITIES ...]]
                            [--enable-virtual-network [{true,false}]]
                            [--virtual-network-rules VIRTUAL_NETWORK_RULES [VIRTUAL_NETWORK_RULES ...]]
                            [--subscription _SUBSCRIPTION]
  az cosmosdb create: error: list index out of range
  </code></pre>
  
  <p>Any idea of what could be the cause of the error ?</p>
  
  <p>I'm suspecting about this line but I'm not sure how can be specified: </p>
  
  <pre><code> --locations "Central US"=0 "Central US"=0 
  </code></pre>