From 1c7aad250dbca758bcbc3d36ffd5fd4d6744b5f1 Mon Sep 17 00:00:00 2001 From: "v-yuzhichen@microsoft.com" Date: Thu, 28 Apr 2022 19:30:59 +0800 Subject: [PATCH 1/2] Fix Az.CosmosDB Syntax Errors --- .../CosmosDB/help/Get-AzCosmosDBAccount.md | 2 +- .../help/Get-AzCosmosDBCassandraKeyspace.md | 2 +- ...t-AzCosmosDBCassandraKeyspaceThroughput.md | 2 +- .../help/Get-AzCosmosDBCassandraTable.md | 2 +- .../Get-AzCosmosDBCassandraTableThroughput.md | 2 +- .../help/Get-AzCosmosDBGremlinDatabase.md | 2 +- ...Get-AzCosmosDBGremlinDatabaseThroughput.md | 2 +- .../help/Get-AzCosmosDBGremlinGraph.md | 2 +- .../Get-AzCosmosDBGremlinGraphThroughput.md | 2 +- ...t-AzCosmosDBMongoDBCollectionThroughput.md | 2 +- .../help/Get-AzCosmosDBMongoDBDatabase.md | 2 +- ...Get-AzCosmosDBMongoDBDatabaseThroughput.md | 2 +- ...t-AzCosmosDBMongoDBRestorableCollection.md | 2 +- ...Get-AzCosmosDBMongoDBRestorableDatabase.md | 2 +- ...Get-AzCosmosDBMongoDBRestorableResource.md | 2 +- .../help/Get-AzCosmosDBSqlContainer.md | 2 +- .../Get-AzCosmosDBSqlContainerThroughput.md | 2 +- .../help/Get-AzCosmosDBSqlDatabase.md | 2 +- .../Get-AzCosmosDBSqlDatabaseThroughput.md | 2 +- .../Get-AzCosmosDBSqlRestorableContainer.md | 2 +- .../Get-AzCosmosDBSqlRestorableDatabase.md | 2 +- .../Get-AzCosmosDBSqlRestorableResource.md | 2 +- .../help/Get-AzCosmosDBSqlStoredProcedure.md | 2 +- .../CosmosDB/help/Get-AzCosmosDBSqlTrigger.md | 2 +- .../Get-AzCosmosDBSqlUserDefinedFunction.md | 2 +- .../CosmosDB/help/Get-AzCosmosDBTable.md | 2 +- .../help/Get-AzCosmosDBTableThroughput.md | 2 +- .../help/Get-AzCosmosDbClientEncryptionKey.md | 5 +- .../help/Get-AzManagedCassandraCluster.md | 4 +- .../help/Get-AzManagedCassandraDataCenter.md | 4 +- .../help/New-AzCosmosDBCassandraClusterKey.md | 2 +- .../help/New-AzCosmosDBCassandraSchema.md | 2 +- .../help/New-AzCosmosDBLocationObject.md | 2 +- .../help/New-AzCosmosDBMongoDBIndex.md | 2 +- .../help/New-AzCosmosDBSqlRoleAssignment.md | 8 ++-- .../help/New-AzCosmosDBSqlRoleDefinition.md | 16 +++---- .../help/New-AzCosmosDBSqlUniqueKey.md | 2 +- .../help/New-AzCosmosDBSqlUniqueKeyPolicy.md | 2 +- .../help/New-AzCosmosDBVirtualNetworkRule.md | 2 +- .../help/New-AzCosmosDbClientEncryptionKey.md | 16 ++++--- .../help/New-AzManagedCassandraCluster.md | 10 ++-- .../help/New-AzManagedCassandraDataCenter.md | 12 ++--- .../Remove-AzCosmosDBCassandraKeyspace.md | 2 +- .../help/Remove-AzCosmosDBCassandraTable.md | 2 +- .../help/Remove-AzCosmosDBGremlinDatabase.md | 2 +- .../help/Remove-AzCosmosDBGremlinGraph.md | 2 +- .../Remove-AzCosmosDBMongoDBCollection.md | 2 +- .../help/Remove-AzCosmosDBMongoDBDatabase.md | 2 +- .../help/Remove-AzCosmosDBSqlContainer.md | 2 +- .../help/Remove-AzCosmosDBSqlDatabase.md | 2 +- .../Remove-AzCosmosDBSqlStoredProcedure.md | 2 +- .../help/Remove-AzCosmosDBSqlTrigger.md | 2 +- ...Remove-AzCosmosDBSqlUserDefinedFunction.md | 2 +- .../CosmosDB/help/Remove-AzCosmosDBTable.md | 2 +- .../help/Remove-AzManagedCassandraCluster.md | 6 +-- .../Remove-AzManagedCassandraDataCenter.md | 8 ++-- .../help/Update-AzCosmosDBAccountRegion.md | 2 +- ...e-AzCosmosDBCassandraKeyspaceThroughput.md | 2 +- ...date-AzCosmosDBCassandraTableThroughput.md | 2 +- ...ate-AzCosmosDBGremlinDatabaseThroughput.md | 2 +- ...Update-AzCosmosDBGremlinGraphThroughput.md | 2 +- ...e-AzCosmosDBMongoDBCollectionThroughput.md | 2 +- ...ate-AzCosmosDBMongoDBDatabaseThroughput.md | 2 +- ...Update-AzCosmosDBSqlContainerThroughput.md | 2 +- .../Update-AzCosmosDBSqlDatabaseThroughput.md | 2 +- .../Update-AzCosmosDBSqlRoleDefinition.md | 22 ++++----- .../help/Update-AzCosmosDBTableThroughput.md | 2 +- .../Update-AzCosmosDbClientEncryptionKey.md | 25 +++++----- .../help/Update-AzManagedCassandraCluster.md | 24 +++++----- .../Update-AzManagedCassandraDataCenter.md | 8 ++-- src/Test.csproj | 45 ++++++++++++++++++ tools/PS-VSPrompt.lnk | Bin 2248 -> 2180 bytes 72 files changed, 188 insertions(+), 137 deletions(-) create mode 100644 src/Test.csproj diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBAccount.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBAccount.md index 9a996277a165..706840aa9305 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBAccount.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBAccount.md @@ -30,7 +30,7 @@ The **Get-AzCosmosDBAccount** cmdlet gets the list of all existing CosmosDB acco ### Example 1 ```powershell -Get-AzCosmosDBAccount -ResourceGroupName {resourceGroupName} -Name {databaseAccountName} +Get-AzCosmosDBAccount -ResourceGroupName "resourceGroupName" -Name "databaseAccountName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraKeyspace.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraKeyspace.md index 7803f413d659..cda6b6674851 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraKeyspace.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraKeyspace.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBCassandraKeyspace** cmdlet creates a new or updates an exist ### Example 1 ```powershell -Get-AzCosmosDBCassandraKeyspace -ResourceGroupName {resourceGroupName} -AccountName {accountName} -Name {name} +Get-AzCosmosDBCassandraKeyspace -ResourceGroupName "resourceGroupName" -AccountName "accountName" -Name "name" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraKeyspaceThroughput.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraKeyspaceThroughput.md index 696fa1b99b72..9db4c6972052 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraKeyspaceThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraKeyspaceThroughput.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBCassandraKeyspaceThroughput** cmdlet gets the throughput obj ### Example 1 ```powershell -Get-AzCosmosDBCassandraKeyspaceThroughput -ResourceGroupName {resourceGroupName} -AccountName {accountName} -Name {name} +Get-AzCosmosDBCassandraKeyspaceThroughput -ResourceGroupName "resourceGroupName" -AccountName "accountName" -Name "name" ``` ## PARAMETERS diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraTable.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraTable.md index d1db5ee5e671..28b5fdb3880e 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraTable.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraTable.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBCassandraTable** cmdlet creates a new or updates an existing ### Example 1 ```powershell -$table = Get-AzCosmosDBCassandraTable -ResourceGroupName {resourceGroupName} -AccountName {accountName} -KeyspaceName {keyspaceName} -Name {name} +Get-AzCosmosDBCassandraTable -ResourceGroupName "resourceGroupName" -AccountName "accountName" -KeyspaceName "keyspaceName" -Name "name" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraTableThroughput.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraTableThroughput.md index 81463c962e0a..74e9f02d8885 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraTableThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraTableThroughput.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBCassandraTableThroughput** cmdlet gets the throughput object ### Example 1 ```powershell -Get-AzCosmosDBCassandraTableThroughput -ResourceGroupName {resourceGroupName} -AccountName {accountName} -KeyspaceName {keyspaceName} -Name {tableName} +Get-AzCosmosDBCassandraTableThroughput -ResourceGroupName "resourceGroupName" -AccountName "accountName" -KeyspaceName "keyspaceName" -Name "tableName" ``` ## PARAMETERS diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBGremlinDatabase.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBGremlinDatabase.md index 488ff0b3c55a..e68394109629 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBGremlinDatabase.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBGremlinDatabase.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBGremlinDatabase** cmdlet gets the CosmosDB Gremlin Database. ### Example 1 ```powershell -Get-AzCosmosDBGremlinDatabase -ResourceGroupName {rgName} -AccountName {accountName} -Name {databaseName} +Get-AzCosmosDBGremlinDatabase -ResourceGroupName "rgName" -AccountName "accountName" -Name "databaseName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBGremlinDatabaseThroughput.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBGremlinDatabaseThroughput.md index 59df29b81afb..5227071247bb 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBGremlinDatabaseThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBGremlinDatabaseThroughput.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBGremlinDatabaseThroughput** cmdlet gets the throughput of a ### Example 1 ```powershell -Get-AzCosmosDBGremlinDatabaseThroughput -ResourceGroupName {rgName} -AccountName {accountName} -Name {databaseName} +Get-AzCosmosDBGremlinDatabaseThroughput -ResourceGroupName "rgName" -AccountName "accountName" -Name "databaseName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBGremlinGraph.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBGremlinGraph.md index 10f49983d958..cde4e7470172 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBGremlinGraph.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBGremlinGraph.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBGremlinGraph** cmdlet gets the CosmosDB Gremlin Graph proper ### Example 1 ```powershell -Get-AzCosmosDBGremlinGraph -ResourceGroupName {rgName} -AccountName {accountName} -DatabaseName {dbName} -Name {graphName} +Get-AzCosmosDBGremlinGraph -ResourceGroupName "rgName" -AccountName "accountName" -DatabaseName "dbName" -Name "graphName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBGremlinGraphThroughput.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBGremlinGraphThroughput.md index ee05c315d185..f5864a457b4a 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBGremlinGraphThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBGremlinGraphThroughput.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBGremlinGraphThroughput** cmdlet gets the throughput of a Cos ### Example 1 ```powershell -Get-AzCosmosDBGremlinGraphThroughput -ResourceGroupName {rgName} -AccountName {accountName} -DatabaseName {dbName} -Name {graphName} +Get-AzCosmosDBGremlinGraphThroughput -ResourceGroupName "rgName" -AccountName "accountName" -DatabaseName "dbName" -Name "graphName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBCollectionThroughput.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBCollectionThroughput.md index c3bf6a519309..e40356b00d1e 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBCollectionThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBCollectionThroughput.md @@ -32,7 +32,7 @@ The **Get-AzCosmosDBMongoDBCollectionThroughput** cmdlet gets the throughput pro ### Example 1 ```powershell -Get-AzCosmosDBMongoDBCollectionThroughput -ResourceGroupName {rgName} -AccountName {accountName} -DatabaseName {databaseName} -Name {collectionName} +Get-AzCosmosDBMongoDBCollectionThroughput -ResourceGroupName "rgName" -AccountName "accountName" -DatabaseName "databaseName" -Name "collectionName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBDatabase.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBDatabase.md index 3c82a172ccae..e3060ed312f4 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBDatabase.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBDatabase.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBMongoDBDatabase** cmdlet gets the CosmosDB MongoDB Database. ### Example 1 ```powershell -Get-AzCosmosDBMongoDBDatabase -ResourceGroupName {rgName} -AccountName {accountName} -Name {dbName} +Get-AzCosmosDBMongoDBDatabase -ResourceGroupName "rgName" -AccountName "accountName" -Name "dbName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBDatabaseThroughput.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBDatabaseThroughput.md index 48e1d83bbaf5..795ffa92f1a6 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBDatabaseThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBDatabaseThroughput.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBMongoDBDatabaseThroughput** cmdlet gets the throughput prope ### Example 1 ```powershell -Get-AzCosmosDBMongoDBDatabaseThroughput -ResourceGroupName {rgName} -AccountName {accountName} -Name {databaseName} +Get-AzCosmosDBMongoDBDatabaseThroughput -ResourceGroupName "rgName" -AccountName "accountName" -Name "databaseName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableCollection.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableCollection.md index 8156ab183dae..da297a0f07a5 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableCollection.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableCollection.md @@ -34,7 +34,7 @@ For example, if user wants to restore the database account to a timestamp when a ### Example 1 ```powershell -Get-AzCosmosDBMongoDBRestorableCollection -Location {locationName} -DatabaseAccountInstanceId {DatabaseAccountInstanceIdInstanceId} -DatabaseRId {DatabaseRId} +Get-AzCosmosDBMongoDBRestorableCollection -Location "locationName" -DatabaseAccountInstanceId "DatabaseAccountInstanceIdInstanceId" -DatabaseRId "DatabaseRId" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableDatabase.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableDatabase.md index f6845f46ecff..084af07ec019 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableDatabase.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableDatabase.md @@ -34,7 +34,7 @@ For example, if user wants to restore the database account to a timestamp when a ### Example 1 ```powershell -Get-AzCosmosDBMongoDBRestorableDatabase -Location {location} -DatabaseAccountInstanceId {DatabaseAccountInstanceIdInstanceId} +Get-AzCosmosDBMongoDBRestorableDatabase -Location "location" -DatabaseAccountInstanceId "DatabaseAccountInstanceIdInstanceId" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableResource.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableResource.md index e6c19fe2c22f..f58f82826393 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableResource.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableResource.md @@ -36,7 +36,7 @@ The user can also use this list and provide a subset of restorable resources if ### Example 1 ```powershell -Get-AzCosmosDBMongoDBRestorableResource -Location {location} -DatabaseAccountInstanceId {DatabaseInstanceId} -RestoreLocation {Database} -RestoreTimestampInUtc {RestoreTimestamp} +Get-AzCosmosDBMongoDBRestorableResource -Location "location" -DatabaseAccountInstanceId "DatabaseInstanceId" -RestoreLocation "Database" -RestoreTimestampInUtc "RestoreTimestamp" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlContainer.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlContainer.md index 8b91fcaa8137..f184dc3ecbf7 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlContainer.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlContainer.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBSqlContainer** cmdlet gets the list of all existing CosmosDB ### Example 1 ```powershell -Get-AzCosmosDBSqlContainer -AccountName {accountName} -ResourceGroupName {resourceGroupName} -DatabaseName {databaseName} +Get-AzCosmosDBSqlContainer -AccountName "accountName" -ResourceGroupName "resourceGroupName" -DatabaseName "databaseName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlContainerThroughput.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlContainerThroughput.md index 0e596a5e0e34..a6e079d5f508 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlContainerThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlContainerThroughput.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBSqlContainerThroughput** cmdlet gets the throughput settings ### Example 1 ```powershell -Get-AzCosmosDBSqlContainerThroughput -AccountName {accountName} -ResourceGroupName {resourceGroupName} -DatabaseName {databaseName} -Name {containerName} +Get-AzCosmosDBSqlContainerThroughput -AccountName "accountName" -ResourceGroupName "resourceGroupName" -DatabaseName "databaseName" -Name "containerName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlDatabase.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlDatabase.md index 286979fd299c..5efa7a04dd4d 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlDatabase.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlDatabase.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBSqlDatabase** cmdlet gets the list of all existing CosmosDB ### Example 1 ```powershell -Get-AzCosmosDBSqlDatabase -AccountName {accountName} -ResourceGroupName {resourceGroupName} -Name {databaseName} +Get-AzCosmosDBSqlDatabase -AccountName "accountName" -ResourceGroupName "resourceGroupName" -Name "databaseName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlDatabaseThroughput.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlDatabaseThroughput.md index 587502a20f6a..d17a550a97d4 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlDatabaseThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlDatabaseThroughput.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBSqlDatabaseThroughput** cmdlet gets the throughput settings ### Example 1 ```powershell -Get-AzCosmosDBSqlDatabaseThroughput -AccountName {accountName} -ResourceGroupName {resourceGroupName} -Name {databaseName} +Get-AzCosmosDBSqlDatabaseThroughput -AccountName "accountName" -ResourceGroupName "resourceGroupName" -Name "databaseName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableContainer.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableContainer.md index e7a4332724e7..f4c001773dd7 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableContainer.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableContainer.md @@ -34,7 +34,7 @@ For example, if user wants to restore the database account to a timestamp when a ### Example 1 ```powershell -Get-AzCosmosDBSqlRestorableContainer -Location {location} -DatabaseAccountInstanceId {DatabaseAccountInstanceIdInstanceId} -DatabaseRId {DatabaseRId} +Get-AzCosmosDBSqlRestorableContainer -Location "location" -DatabaseAccountInstanceId "DatabaseAccountInstanceIdInstanceId" -DatabaseRId "DatabaseRId" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableDatabase.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableDatabase.md index e87d9c3ed773..9eacda5ccfd1 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableDatabase.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableDatabase.md @@ -34,7 +34,7 @@ For example, if user wants to restore the database account to a timestamp when a ### Example 1 ```powershell -Get-AzCosmosDBSqlRestorableDatabase -Location {location} -DatabaseAccountInstanceId {DatabaseAccountInstanceIdInstanceId} +Get-AzCosmosDBSqlRestorableDatabase -Location "location" -DatabaseAccountInstanceId "DatabaseAccountInstanceIdInstanceId" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableResource.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableResource.md index 859f150622b4..fb09347df064 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableResource.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableResource.md @@ -36,7 +36,7 @@ The user can also use this list and provide a subset of restorable resources if ### Example 1 ```powershell -Get-AzCosmosDBSqlRestorableResource -Location {locationName} -DatabaseAccountInstanceId {DatabaseInstanceId} -RestoreLocation {Database} -RestoreTimestampInUtc {RestoreTimestamp} +Get-AzCosmosDBSqlRestorableResource -Location "locationName" -DatabaseAccountInstanceId "DatabaseInstanceId" -RestoreLocation "Database" -RestoreTimestampInUtc "RestoreTimestamp" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlStoredProcedure.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlStoredProcedure.md index 3c30b65f2554..43670a3fcf73 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlStoredProcedure.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlStoredProcedure.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBSqlStoredProcedure** cmdlet gets the list of all existing Co ### Example 1 ```powershell -Get-AzCosmosDBSqlStoredProcedure -AccountName {accountName} -ResourceGroupName {resourceGroupName} -DatabaseName {databaseName} -Name {storedProcedureName} -ContainerName {containerName} +Get-AzCosmosDBSqlStoredProcedure -AccountName "accountName" -ResourceGroupName "resourceGroupName" -DatabaseName "databaseName" -Name "storedProcedureName" -ContainerName "containerName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlTrigger.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlTrigger.md index a547a5bd6de2..f00aebe78fda 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlTrigger.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlTrigger.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBSqlTrigger** cmdlet gets the list of all existing CosmosDB S ### Example 1 ```powershell -Get-AzCosmosDBSqlTrigger -AccountName {accountName} -ResourceGroupName {resourceGroupName} -DatabaseName {databaseName} -Name {triggerName} -ContainerName {containerName} +Get-AzCosmosDBSqlTrigger -AccountName "accountName" -ResourceGroupName "resourceGroupName" -DatabaseName "databaseName" -Name "triggerName" -ContainerName "containerName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlUserDefinedFunction.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlUserDefinedFunction.md index d302cb832b4f..88c540d7af68 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlUserDefinedFunction.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlUserDefinedFunction.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBSqlUserDefinedFunction** cmdlet gets the list of all existin ### Example 1 ```powershell -Get-AzCosmosDBSqlUserDefinedFunction -AccountName {accountName} -ResourceGroupName {resourceGroupName} -DatabaseName {databaseName} -Name {userDefinedFunctionName} -ContainerName {containerName} +Get-AzCosmosDBSqlUserDefinedFunction -AccountName "accountName" -ResourceGroupName "resourceGroupName" -DatabaseName "databaseName" -Name "userDefinedFunctionName" -ContainerName "containerName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBTable.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBTable.md index 762ae1d00064..ef251ffec407 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBTable.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBTable.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBTable** cmdlet gets an existing Table. ### Example 1 ```powershell -Get-AzCosmosDBTable -AccountName {account} -Name {tableName} -ResourceGroupName {rgName} +Get-AzCosmosDBTable -AccountName "account" -Name "tableName" -ResourceGroupName "rgName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBTableThroughput.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBTableThroughput.md index 822864d4e3bf..8477ab95fe81 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBTableThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBTableThroughput.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBTableThroughput** cmdlet gets the throughput of a CosmosDB T ### Example 1 ```powershell -Get-AzCosmosDBTableThroughput -ResourceGroupName {rgName} -AccountName {accountName} -Name {databaseName} +Get-AzCosmosDBTableThroughput -ResourceGroupName "rgName" -AccountName "accountName" -Name "databaseName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDbClientEncryptionKey.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDbClientEncryptionKey.md index 18dbf4ec3c16..1bbf9ef5e4c7 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDbClientEncryptionKey.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDbClientEncryptionKey.md @@ -31,8 +31,9 @@ The **Get-AzCosmosDbClientEncryptionKey** cmdlet gets the list of all existing C ### Example 1 ```powershell -PS C:\> Get-AzCosmosDbClientEncryptionKey -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName - +Get-AzCosmosDbClientEncryptionKey -AccountName "myAccountName" -DatabaseName "myDatabaseName" -ResourceGroupName "myRgName" +``` +```output Name : {clientEncryptionKeyName} Id : Id Resource : Microsoft.Azure.Commands.CosmosDB.Models.PSSqlClientEncryptionKeyGetPropertiesResource diff --git a/src/CosmosDB/CosmosDB/help/Get-AzManagedCassandraCluster.md b/src/CosmosDB/CosmosDB/help/Get-AzManagedCassandraCluster.md index cbb7fa1c813b..07985b26f058 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzManagedCassandraCluster.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzManagedCassandraCluster.md @@ -37,12 +37,12 @@ The **Get-AzManagedCassandraCluster** cmdlet fetches the properties of an existi ### Example 1 ```powershell -Get-AzManagedCassandraCluster -ResourceGroupName {resourceGroupName} -ClusterName {clusterName} +Get-AzManagedCassandraCluster -ResourceGroupName "resourceGroupName" -ClusterName "clusterName" ``` ### Example 2 ```powershell -Get-AzManagedCassandraCluster -ResourceId {resourceId} +Get-AzManagedCassandraCluster -ResourceId "resourceId" ``` ### Example 3 diff --git a/src/CosmosDB/CosmosDB/help/Get-AzManagedCassandraDataCenter.md b/src/CosmosDB/CosmosDB/help/Get-AzManagedCassandraDataCenter.md index 952a65b323af..5129d6dde2af 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzManagedCassandraDataCenter.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzManagedCassandraDataCenter.md @@ -43,12 +43,12 @@ The **Get-AzManagedCassandraDataCenter** cmdlet fetches the properties of an exi ### Example 1 ```powershell -Get-AzManagedCassandraDataCenter -ResourceGroupName {resourceGroupName} -ClusterName {clusterName} -DataCenterName {dataCenterName} +Get-AzManagedCassandraDataCenter -ResourceGroupName "resourceGroupName" -ClusterName "clusterName" -DataCenterName "dataCenterName" ``` ### Example 2 ```powershell -Get-AzManagedCassandraDataCenter -ResourceId {resourceId} +Get-AzManagedCassandraDataCenter -ResourceId "resourceId" ``` ### Example 3 diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBCassandraClusterKey.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBCassandraClusterKey.md index 7d3b21a917f9..e4596efb02aa 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBCassandraClusterKey.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBCassandraClusterKey.md @@ -24,7 +24,7 @@ The **New-AzCosmosDBCassandraClusterKey** creates a new CosmosDB Cassandra Clust ### Example 1 ```powershell -New-AzCosmosDBCassandraClusterKey -Name -OrderBy +New-AzCosmosDBCassandraClusterKey -Name "name" -OrderBy "Asc" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBCassandraSchema.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBCassandraSchema.md index 2e0efdd9b497..05743b49354b 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBCassandraSchema.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBCassandraSchema.md @@ -24,7 +24,7 @@ The **New-AzCosmosDBCassandraSchema** creates a new CosmosDB Cassandra Schema. ### Example 1 ```powershell -New-AzCosmosDBCassandraSchema -Column {PSColumn[]} -PartitionKey -ClusterKey {PSClusterKey[]} +New-AzCosmosDBCassandraSchema -Column "PSColumn[]" -PartitionKey "String[]" -ClusterKey "PSClusterKey[]" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBLocationObject.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBLocationObject.md index 36b9948c5d8f..a86d3b2544a0 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBLocationObject.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBLocationObject.md @@ -24,7 +24,7 @@ Create a new CosmosDB Location Object(PSLocation). ### Example 1 ```powershell -New-AzCosmosDBLocationObject -LocationName {locationName} -FailoverPriority 2 -IsZoneRedundant 0 +New-AzCosmosDBLocationObject -LocationName "locationName" -FailoverPriority 2 -IsZoneRedundant 0 ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBMongoDBIndex.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBMongoDBIndex.md index 66e231b131e4..1f1204c1586a 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBMongoDBIndex.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBMongoDBIndex.md @@ -24,7 +24,7 @@ The **New-AzCosmosDBMongoDBIndex** creates a new CosmosDB MongoDB Index. ### Example 1 ```powershell -New-AzCosmosDBMongoDBIndex -TtlInSeconds {val} -Unique 1 -Key "key1" +New-AzCosmosDBMongoDBIndex -TtlInSeconds "val" -Unique 1 -Key "key1" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlRoleAssignment.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlRoleAssignment.md index 63b6d84a5053..9eb96eb55963 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlRoleAssignment.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlRoleAssignment.md @@ -45,10 +45,10 @@ RoleDefinitionId can be either fully qualified or just the Guid. ### Example 1 ```powershell New-AzCosmosDBSqlRoleAssignment - -AccountName accountName - -ResourceGroupName resourceGroupName - -RoleDefinitionId "/subscriptions/subId/resourceGroups/resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlRoleDefinitions/roleDefinitionId" - -Scope "/subscriptions/subId/resourceGroups/resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/accountName" + -AccountName accountName ` + -ResourceGroupName resourceGroupName ` + -RoleDefinitionId "/subscriptions/subId/resourceGroups/resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlRoleDefinitions/roleDefinitionId" ` + -Scope "/subscriptions/subId/resourceGroups/resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/accountName" ` -PrincipalId principalId ``` diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlRoleDefinition.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlRoleDefinition.md index 776d42a2bb58..5e9695092d26 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlRoleDefinition.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlRoleDefinition.md @@ -57,11 +57,11 @@ In order to specify the Role Definition's Permissions, either use the DataAction ### Example 1: Using DataAction ```powershell New-AzCosmosDBSqlRoleDefinition - -AccountName accountName - -ResourceGroupName resourceGroupName - -Type CustomRole + -AccountName accountName ` + -ResourceGroupName resourceGroupName ` + -Type CustomRole ` -RoleName roleName - -DataAction "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create" + -DataAction "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create" ` -AssignableScope "/" ``` @@ -78,10 +78,10 @@ AssignableScopes : {/subscriptions/subId/resourceGroups/resourceGroupName/provid $DatabaseAccount = Get-AzCosmosDBAccount -Name accountName -ResourceGroupName resourceGroupName $Permission = New-AzCosmosDBPermission -DataAction "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create" New-AzCosmosDBSqlRoleDefinition - -Type CustomRole - -RoleName roleName - -Permission $Permission - -AssignableScope "/" + -Type CustomRole ` + -RoleName roleName ` + -Permission $Permission ` + -AssignableScope "/" ` -ParentObject $DatabaseAccount ``` diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlUniqueKey.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlUniqueKey.md index 04a26eb0e9ae..35baa0909023 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlUniqueKey.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlUniqueKey.md @@ -23,7 +23,7 @@ The **New-AzCosmosDBSqlUniqueKey** cmdlet creates a new object of type PSUniqueK ### Example 1 ```powershell -New-AzCosmosDBSqlUniqueKey -Path {path} +New-AzCosmosDBSqlUniqueKey -Path "path" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlUniqueKeyPolicy.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlUniqueKeyPolicy.md index 08918a555c67..d2fe94956648 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlUniqueKeyPolicy.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlUniqueKeyPolicy.md @@ -24,7 +24,7 @@ The **New-AzCosmosDBSqlUniqueKeyPolicy** cmdlet creates a new object of type PSS ### Example 1 ```powershell -New-AzCosmosDBSqlUniqueKeyPolicy -UniqueKey {psUniqueKey1, psUniqueKey2} +New-AzCosmosDBSqlUniqueKeyPolicy -UniqueKey "psUniqueKey1, psUniqueKey2" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBVirtualNetworkRule.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBVirtualNetworkRule.md index 7970790fc0cd..7e93a00d7b9d 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBVirtualNetworkRule.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBVirtualNetworkRule.md @@ -24,7 +24,7 @@ Create a new CosmosDB VirtualNetworkRule Object(PSVirtualNetworkRule). ### Example 1 ```powershell -New-AzCosmosDBVirtualNetworkRule -Id {id} -IgnoreMissingVNetServiceEndpoint 0 +New-AzCosmosDBVirtualNetworkRule -Id "id" -IgnoreMissingVNetServiceEndpoint 0 ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDbClientEncryptionKey.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDbClientEncryptionKey.md index d395a1e2fae3..1bd59371aafa 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDbClientEncryptionKey.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDbClientEncryptionKey.md @@ -35,9 +35,10 @@ The **New-AzCosmosDbClientEncryptionKey** creates a new CosmosDB Client Encrypti ### Example 1 ```powershell -PS C:\> $myKeyWrapMetadataObject = [Microsoft.Azure.Commands.CosmosDB.Models.PSSqlKeyWrapMetadata]::new([Microsoft.Azure.Management.CosmosDB.Models.KeyWrapMetadata]::new("myKekV1","AZURE_KEY_VAULT", "https://contoso.vault.azure.net/keys/myKekV1/78deebed173b48e48f55abf87ed4cf71", "RSA-OAEP")) -PS C:\> New-AzCosmosDbClientEncryptionKey -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName -Name myClientEncryptionKeyName -EncryptionAlgorithmName "AEAD_AES_256_CBC_HMAC_SHA256" -KeyWrapMetadata $myKeyWrapMetadataObject - +$myKeyWrapMetadataObject = [Microsoft.Azure.Commands.CosmosDB.Models.PSSqlKeyWrapMetadata]::new([Microsoft.Azure.Management.CosmosDB.Models.KeyWrapMetadata]::new("myKekV1","AZURE_KEY_VAULT", "https://contoso.vault.azure.net/keys/myKekV1/78deebed173b48e48f55abf87ed4cf71", "RSA-OAEP")) +New-AzCosmosDbClientEncryptionKey -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName -Name myClientEncryptionKeyName -EncryptionAlgorithmName "AEAD_AES_256_CBC_HMAC_SHA256" -KeyWrapMetadata $myKeyWrapMetadataObject +``` +```outpot Name : myContainerName Id : /subscriptions/mySubscriptionId/resourceGroups/myRgName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlDatabases/myDatabaseName/clientEncryptionKeys/myClientEncryptionKeyName Resource : Microsoft.Azure.Commands.CosmosDB.Models.PSSqlClientEncryptionKeyGetPropertiesResource @@ -49,10 +50,11 @@ In the second command a new key is created with name as set in myClientEncryptio ### Example 2 ```powershell -PS C:\> $myKeyWrapMetadataObject = [Microsoft.Azure.Commands.CosmosDB.Models.PSSqlKeyWrapMetadata]::new([Microsoft.Azure.Management.CosmosDB.Models.KeyWrapMetadata]::new("myKekV1","AZURE_KEY_VAULT", "https://contoso.vault.azure.net/keys/myKekV1/78deebed173b48e48f55abf87ed4cf71", "RSA-OAEP")) -PS C:\> $azureKeyVaultKeyResolver = [Azure.Security.KeyVault.Keys.Cryptography.KeyResolver]::new([Azure.Identity.DefaultAzureCredential]::new()) -PS C:\> New-AzCosmosDbClientEncryptionKey -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName -Name myClientEncryptionKeyName -EncryptionAlgorithmName "AEAD_AES_256_CBC_HMAC_SHA256" -KeyWrapMetadata $myKeyWrapMetadataObject -KeyEncryptionKeyResolver $azureKeyVaultKeyResolver - +$myKeyWrapMetadataObject = [Microsoft.Azure.Commands.CosmosDB.Models.PSSqlKeyWrapMetadata]::new([Microsoft.Azure.Management.CosmosDB.Models.KeyWrapMetadata]::new("myKekV1","AZURE_KEY_VAULT", "https://contoso.vault.azure.net/keys/myKekV1/78deebed173b48e48f55abf87ed4cf71", "RSA-OAEP")) +$azureKeyVaultKeyResolver = [Azure.Security.KeyVault.Keys.Cryptography.KeyResolver]::new([Azure.Identity.DefaultAzureCredential]::new()) +New-AzCosmosDbClientEncryptionKey -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName -Name myClientEncryptionKeyName -EncryptionAlgorithmName "AEAD_AES_256_CBC_HMAC_SHA256" -KeyWrapMetadata $myKeyWrapMetadataObject -KeyEncryptionKeyResolver $azureKeyVaultKeyResolver +``` +```output Name : myContainerName Id : /subscriptions/mySubscriptionId/resourceGroups/myRgName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlDatabases/myDatabaseName/clientEncryptionKeys/myClientEncryptionKeyName Resource : Microsoft.Azure.Commands.CosmosDB.Models.PSSqlClientEncryptionKeyGetPropertiesResource diff --git a/src/CosmosDB/CosmosDB/help/New-AzManagedCassandraCluster.md b/src/CosmosDB/CosmosDB/help/New-AzManagedCassandraCluster.md index 565582b3a67f..fa25683b5d07 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzManagedCassandraCluster.md +++ b/src/CosmosDB/CosmosDB/help/New-AzManagedCassandraCluster.md @@ -29,11 +29,11 @@ The **New-AzManagedCassandraCluster** cmdlet creates a new managed Cassandra clu ### Example 1 ```powershell New-AzManagedCassandraCluster ` - -ResourceGroupName {resourceGroupName} ` - -ClusterName {clusterName} ` - -DelegatedManagementSubnetId {resourceId} ` - -Location {location} ` - -InitialCassandraAdminPassword {password} + -ResourceGroupName "resourceGroupName" ` + -ClusterName "clusterName" ` + -DelegatedManagementSubnetId "resourceId" ` + -Location "location" ` + -InitialCassandraAdminPassword "password" ``` ## PARAMETERS diff --git a/src/CosmosDB/CosmosDB/help/New-AzManagedCassandraDataCenter.md b/src/CosmosDB/CosmosDB/help/New-AzManagedCassandraDataCenter.md index 0e54fc058bb8..4be28407813e 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzManagedCassandraDataCenter.md +++ b/src/CosmosDB/CosmosDB/help/New-AzManagedCassandraDataCenter.md @@ -38,12 +38,12 @@ The **New-AzManagedCassandraDataCenter** cmdlet creates a new managed Cassandra ### Example 1 ```powershell New-AzManagedCassandraDataCenter ` - -ResourceGroupName {resourceGroupName} ` - -ClusterName {clusterName} ` - -DataCenterName {dataCenterName} ` - -DelegatedSubnetId {resourceId} ` - -Location {location} ` - -NodeCount {N} + -ResourceGroupName "resourceGroupName" ` + -ClusterName "clusterName" ` + -DataCenterName "dataCenterName" ` + -DelegatedSubnetId "resourceId" ` + -Location "location" ` + -NodeCount "N" ``` ## PARAMETERS diff --git a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBCassandraKeyspace.md b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBCassandraKeyspace.md index 133217b38f7a..845e874602d3 100644 --- a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBCassandraKeyspace.md +++ b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBCassandraKeyspace.md @@ -31,7 +31,7 @@ The **Remove-AzCosmosDBCassandraKeyspace** cmdlet deletes an existing CosmosDB C ### Example 1 ```powershell -Remove-AzCosmosDBCassandraKeyspace -ResourceGroupName {resourceGroupName} -AccountName {accountName} -Name {keyspaceName} +Remove-AzCosmosDBCassandraKeyspace -ResourceGroupName "resourceGroupName" -AccountName "accountName" -Name "keyspaceName" ``` The cmdlet returns an object of type bool(when -PassThru is passed) which is true if the delete was successful. diff --git a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBCassandraTable.md b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBCassandraTable.md index 1103538036ca..0c986efc91e2 100644 --- a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBCassandraTable.md +++ b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBCassandraTable.md @@ -32,7 +32,7 @@ The **Remove-AzCosmosDBCassandraTable** delete a CosmosDB Cassandra Table. ### Example 1 ```powershell -Remove-AzCosmosDBCassandraTable -ResourceGroupName {resourceGroup} -AccountName {account} -KeyspaceName {keyspace} -Name {tableName} +Remove-AzCosmosDBCassandraTable -ResourceGroupName "resourceGroup" -AccountName "account" -KeyspaceName "keyspace" -Name "tableName" ``` The cmdlet returns an object of type bool(when -PassThru is passed) which is true, if the delete was successful. diff --git a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBGremlinDatabase.md b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBGremlinDatabase.md index 016841950088..c7f69f85079a 100644 --- a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBGremlinDatabase.md +++ b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBGremlinDatabase.md @@ -31,7 +31,7 @@ The **Remove-AzCosmosDBGremlinDatabase** cmdlet deletes a CosmosDB Gremlin Datab ### Example 1 ```powershell -Remove-AzCosmosDBGremlinDatabase -ResourceGroupName {rgName} -AccountName {accountName} -Name {dbName} +Remove-AzCosmosDBGremlinDatabase -ResourceGroupName "rgName" -AccountName "accountName" -Name "dbName" ``` The cmdlet returns an object of type bool(when -PassThru is passed) which is true, if the delete was successful. diff --git a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBGremlinGraph.md b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBGremlinGraph.md index f188930fb1aa..da6f5a9b98ba 100644 --- a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBGremlinGraph.md +++ b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBGremlinGraph.md @@ -32,7 +32,7 @@ The **Remove-AzCosmosDBGremlinGraph** cmdlet deletes a CosmosDB Gremlin Graph. ### Example 1 ```powershell -Remove-AzCosmosDBGremlinGraph -ResourceGroupName {rgName} -AccountName {accountName} -DatabaseName {dbName} -Name {graphName} +Remove-AzCosmosDBGremlinGraph -ResourceGroupName "rgName" -AccountName "accountName" -DatabaseName "dbName" -Name "graphName" ``` The cmdlet returns an object of type bool(when -PassThru is passed) which is true, if the delete was successful. diff --git a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBMongoDBCollection.md b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBMongoDBCollection.md index 7640a8a164f5..69415078e801 100644 --- a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBMongoDBCollection.md +++ b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBMongoDBCollection.md @@ -32,7 +32,7 @@ The **Remove-AzCosmosDBMongoDBCollection** cmdlet deletes a CosmosDB MongoDB Col ### Example 1 ```powershell -Remove-AzCosmosDBMongoDBCollection -ResourceGroupName {rgName} -AccountName {accountName} -DatabaseName {dbName} -Name {collectionName} +Remove-AzCosmosDBMongoDBCollection -ResourceGroupName "rgName" -AccountName "accountName" -DatabaseName "dbName" -Name "collectionName" ``` The cmdlet returns an object of type bool(when -PassThru is passed) which is true, if the delete was successful. diff --git a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBMongoDBDatabase.md b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBMongoDBDatabase.md index 4496d17371b8..94c72d37fca8 100644 --- a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBMongoDBDatabase.md +++ b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBMongoDBDatabase.md @@ -31,7 +31,7 @@ The **Remove-AzCosmosDBMongoDBDatabase** cmdlet deletes a CosmosDB MongoDB Datab ### Example 1 ```powershell -Remove-AzCosmosDBMongoDBDatabase -ResourceGroupName {rgName} -AccountName {accountName} -Name {dbName} +Remove-AzCosmosDBMongoDBDatabase -ResourceGroupName "rgName" -AccountName "accountName" -Name "dbName" ``` The cmdlet returns an object of type bool(when -PassThru is passed) which is true, if the delete was successful. diff --git a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlContainer.md b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlContainer.md index e93115932170..33bbb589bd82 100644 --- a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlContainer.md +++ b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlContainer.md @@ -32,7 +32,7 @@ The **Remove-AzCosmosDBSqlContainer** cmdlet deletes the CosmosDB Sql Container ### Example 1 ```powershell -Remove-AzCosmosDBSqlContainer -ResourceGroupName {resourceGroupName} -AccountName {accountName} -DatabaseName {databaseName} -Name {containerName} +Remove-AzCosmosDBSqlContainer -ResourceGroupName "resourceGroupName" -AccountName "accountName" -DatabaseName "databaseName" -Name "containerName" ``` ## PARAMETERS diff --git a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlDatabase.md b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlDatabase.md index f8f22808a35d..f10e1ffcc33d 100644 --- a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlDatabase.md +++ b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlDatabase.md @@ -31,7 +31,7 @@ The **Remove-AzCosmosDBSqlDatabase** cmdlet deletes the CosmosDB Sql Database co ### Example 1 ```powershell -Remove-AzCosmosDBSqlDatabase -ResourceGroupName {resourceGroupName} -AccountName {accountName} -Name {databaseName} +Remove-AzCosmosDBSqlDatabase -ResourceGroupName "resourceGroupName" -AccountName "accountName" -Name "databaseName" ``` ## PARAMETERS diff --git a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlStoredProcedure.md b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlStoredProcedure.md index d6f148cb14dc..3f275c83159d 100644 --- a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlStoredProcedure.md +++ b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlStoredProcedure.md @@ -32,7 +32,7 @@ The **Remove-AzCosmosDBSqlStoredProcedure** cmdlet deletes the CosmosDB Sql Stor ### Example 1 ```powershell -Remove-AzCosmosDBSqlStoredProcedure -ResourceGroupName {resourceGroupName} -AccountName {accountName} -DatabaseName {databaseName} -ContainerName {containerName} -Name {storedProcedureName} +Remove-AzCosmosDBSqlStoredProcedure -ResourceGroupName "resourceGroupName" -AccountName "accountName" -DatabaseName "databaseName" -ContainerName "containerName" -Name "storedProcedureName" ``` ## PARAMETERS diff --git a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlTrigger.md b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlTrigger.md index eb8781b9db28..9c0392c885d5 100644 --- a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlTrigger.md +++ b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlTrigger.md @@ -32,7 +32,7 @@ The **Remove-AzCosmosDBSqlTrigger** cmdlet deletes the CosmosDB Sql Trigger corr ### Example 1 ```powershell -Remove-AzCosmosDBSqlTrigger -ResourceGroupName {resourceGroupName} -AccountName {accountName} -DatabaseName {databaseName} -ContainerName {containerName} -Name {triggerName} +Remove-AzCosmosDBSqlTrigger -ResourceGroupName "resourceGroupName" -AccountName "accountName" -DatabaseName "databaseName" -ContainerName "containerName" -Name "triggerName" ``` ## PARAMETERS diff --git a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlUserDefinedFunction.md b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlUserDefinedFunction.md index 8870c6a95405..23f34a4cb479 100644 --- a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlUserDefinedFunction.md +++ b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBSqlUserDefinedFunction.md @@ -32,7 +32,7 @@ The **Remove-AzCosmosDBSqlUserDefinedFunction** cmdlet deletes the CosmosDB Sql ### Example 1 ```powershell -Remove-AzCosmosDBSqlUserDefinedFunction -ResourceGroupName {resourceGroupName} -AccountName {accountName} -DatabaseName {databaseName} -ContainerName {containerName} -Name {userDefinedFunctionName} +Remove-AzCosmosDBSqlUserDefinedFunction -ResourceGroupName "resourceGroupName" -AccountName "accountName" -DatabaseName "databaseName" -ContainerName "containerName" -Name "userDefinedFunctionName" ``` ## PARAMETERS diff --git a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBTable.md b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBTable.md index 75bd6170cf38..63b11343800e 100644 --- a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBTable.md +++ b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBTable.md @@ -31,7 +31,7 @@ The **Remove-AzCosmosDBTable** cmdlet deletes the CosmosDB Table. ### Example 1 ```powershell -Remove-AzCosmosDBTable -AccountName {account} -Name {tableName} -ResourceGroupName {rgName} +Remove-AzCosmosDBTable -AccountName "account" -Name "tableName" -ResourceGroupName "rgName" ``` The cmdlet returns an object of type bool(when -PassThru is passed) which is true, if the delete was successful. diff --git a/src/CosmosDB/CosmosDB/help/Remove-AzManagedCassandraCluster.md b/src/CosmosDB/CosmosDB/help/Remove-AzManagedCassandraCluster.md index 34b1360cfcde..7ac7a6eab150 100644 --- a/src/CosmosDB/CosmosDB/help/Remove-AzManagedCassandraCluster.md +++ b/src/CosmosDB/CosmosDB/help/Remove-AzManagedCassandraCluster.md @@ -38,13 +38,13 @@ The **Remove-AzManagedCassandraCluster** cmdlet deletes a managed Cassandra clus ### Example 1 ```powershell Remove-AzManagedCassandraCluster ` - -ResourceGroupName {resourceGroupName} ` - -ClusterName {clusterName} + -ResourceGroupName "resourceGroupName" ` + -ClusterName "clusterName" ``` ### Example 2 ```powershell -Remove-AzManagedCassandraCluster -ResourceId {clusterResourceId} +Remove-AzManagedCassandraCluster -ResourceId "clusterResourceId" ``` ### Example 3 diff --git a/src/CosmosDB/CosmosDB/help/Remove-AzManagedCassandraDataCenter.md b/src/CosmosDB/CosmosDB/help/Remove-AzManagedCassandraDataCenter.md index b585af077a61..45fc47db0705 100644 --- a/src/CosmosDB/CosmosDB/help/Remove-AzManagedCassandraDataCenter.md +++ b/src/CosmosDB/CosmosDB/help/Remove-AzManagedCassandraDataCenter.md @@ -44,14 +44,14 @@ The **Remove-AzManagedCassandraDataCenter** cmdlet deletes a managed Cassandra d ### Example 1 ```powershell Remove-AzManagedCassandraDataCenter ` - -ResourceGroupName {resourceGroupName} ` - -ClusterName {clusterName} - -DataCenterName {dataCenterName} + -ResourceGroupName "resourceGroupName" ` + -ClusterName "clusterName" ` + -DataCenterName "dataCenterName"} ``` ### Example 2 ```powershell -Remove-AzManagedCassandraDataCenter -ResourceId {dataCenterResourceId} +Remove-AzManagedCassandraDataCenter -ResourceId "dataCenterResourceId" ``` ### Example 3 diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccountRegion.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccountRegion.md index 41f9b34b158b..b4ae1ce12491 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccountRegion.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccountRegion.md @@ -42,7 +42,7 @@ Please note, we only support Addition of Regions. Please provide either Location ### Example 1 ```powershell -Update-AzCosmosDBAccountRegion -ResourceGroupName rg -Name dbname -Location "location1", "location2" +Update-AzCosmosDBAccountRegion -ResourceGroupName rg -Name dbname -Location "location1,location2" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraKeyspaceThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraKeyspaceThroughput.md index 8177c3e4ff43..68947ab329ac 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraKeyspaceThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraKeyspaceThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB Cassandra Keyspace. ### Example 1 ```powershell -Update-AzCosmosDBCassandraKeyspaceThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -Name {myKeyspaceName} -Throughput {updatedThroughputValue} +Update-AzCosmosDBCassandraKeyspaceThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -Name "myKeyspaceName" -Throughput "updatedThroughputValue" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraTableThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraTableThroughput.md index 38e39b19fd34..9b0fcea42c03 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraTableThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraTableThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB Cassandra Table. ### Example 1 ```powershell -Update-AzCosmosDBCassandraTableThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -KeyspaceName {myKeyspacename} -Name {myTableName} -Throughput {updatedThroughputValue} +Update-AzCosmosDBCassandraTableThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -KeyspaceName "myKeyspacename" -Name "myTableName" -Throughput "updatedThroughputValue" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinDatabaseThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinDatabaseThroughput.md index c972592b2e00..970ea6b6907e 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinDatabaseThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinDatabaseThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB Gremlin Database. ### Example 1 ```powershell -Update-AzCosmosDBGremlinDatabaseThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -Name {myDatabaseName} -Throughput {updatedThroughputValue} +Update-AzCosmosDBGremlinDatabaseThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -Name "myDatabaseName" -Throughput "updatedThroughputValue" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinGraphThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinGraphThroughput.md index acbb4e2eb8b2..bf87759c91f6 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinGraphThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinGraphThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB Gremlin Graph. ### Example 1 ```powershell -Update-AzCosmosDBGremlinGraphThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -DatabaseName {mydatabaseName} -Name {myGraphName} -Throughput {updatedThroughputValue} +Update-AzCosmosDBGremlinGraphThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -DatabaseName "mydatabaseName" -Name "myGraphName" -Throughput "updatedThroughputValue" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBCollectionThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBCollectionThroughput.md index a2766364bf5c..7b958898198b 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBCollectionThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBCollectionThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB MongoDB Collection. ### Example 1 ```powershell -Update-AzCosmosDBMongoDBCollectionThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -DatabaseName {mydatabaseName} -Name {myCollectionName} -Throughput {updatedThroughputValue} +Update-AzCosmosDBMongoDBCollectionThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -DatabaseName "mydatabaseName" -Name "myCollectionName" -Throughput "updatedThroughputValue" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBDatabaseThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBDatabaseThroughput.md index 45e4148b121b..519dbc6c7cff 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBDatabaseThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBDatabaseThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB MongoDB Database. ### Example 1 ```powershell -Update-AzCosmosDBMongoDBThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -Name {myDatabaseName} -Throughput {updatedThroughputValue} +Update-AzCosmosDBMongoDBThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -Name "myDatabaseName" -Throughput "updatedThroughputValue" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlContainerThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlContainerThroughput.md index adf4ffb2432b..4f5a7ac64f2f 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlContainerThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlContainerThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB Sql Container. ### Example 1 ```powershell -Update-AzCosmosDBSqlContainerThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -DatabaseName {myDatabaseName} -Name {myContainerName} -Throughput {updatedThroughputValue} +Update-AzCosmosDBSqlContainerThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -DatabaseName "myDatabaseName" -Name "myContainerName" -Throughput "updatedThroughputValue" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlDatabaseThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlDatabaseThroughput.md index a1ac3d30d93f..6ba6717b46e6 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlDatabaseThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlDatabaseThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB Sql Database. ### Example 1 ```powershell -Update-AzCosmosDBSqlDatabaseThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -Name {myDatabaseName} -Throughput {updatedThroughputValue} +Update-AzCosmosDBSqlDatabaseThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -Name "myDatabaseName" -Throughput "updatedThroughputValue" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlRoleDefinition.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlRoleDefinition.md index a6f179d1d8da..80a78ec88919 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlRoleDefinition.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlRoleDefinition.md @@ -50,12 +50,12 @@ In order to specify the Role Definition's Permissions, either use the DataAction ### Example 1 ```powershell Update-AzCosmosDBSqlRoleDefinition - -AccountName accountName - -ResourceGroupName resourceGroupName - -Id id - -Type CustomRole - -RoleName roleName - -DataAction "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create" + -AccountName accountName ` + -ResourceGroupName resourceGroupName ` + -Id id ` + -Type CustomRole ` + -RoleName roleName ` + -DataAction "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create" ` -AssignableScope "/" ``` @@ -72,11 +72,11 @@ AssignableScopes : {/subscriptions/subId/resourceGroups/resourceGroupName/provid $DatabaseAccount = Get-AzCosmosDBAccount -Name accountName -ResourceGroupName resourceGroupName $Permission = New-AzCosmosDBPermission -DataAction "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create" Update-AzCosmosDBSqlRoleDefinition - -Type CustomRole - -Id id - -RoleName roleName - -Permission $Permission - -AssignableScope "/" + -Type CustomRole ` + -Id id ` + -RoleName roleName ` + -Permission $Permission ` + -AssignableScope "/" ` -ParentObject $DatabaseAccount ``` diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBTableThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBTableThroughput.md index f9e20622f929..cd1da22a6e1d 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBTableThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBTableThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB Table. ### Example 1 ```powershell -Update-AzCosmosDBTableThroughput -AccountName {myAccountName} -ResourceGroupName {myResourceGroupName} -Name {myTableName} -Throughput {updatedThroughputValue} +Update-AzCosmosDBTableThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -Name "myTableName" -Throughput "updatedThroughputValue" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDbClientEncryptionKey.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDbClientEncryptionKey.md index 644f14aa43df..627e6f31c7d5 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDbClientEncryptionKey.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDbClientEncryptionKey.md @@ -40,9 +40,10 @@ The **Update-AzCosmosDbClientEncryptionKey** updates the CosmosDb Client Encrypt ### Example 1 ```powershell -PS C:\> $updatedKeyWrapMetadataObject = [Microsoft.Azure.Commands.CosmosDB.Models.PSSqlKeyWrapMetadata]::new([Microsoft.Azure.Management.CosmosDB.Models.KeyWrapMetadata]::new("myKekV2","AZURE_KEY_VAULT", "https://contoso.vault.azure.net/keys/myKekV2/78deebed173b48e48f55abf87ed4cf71", "RSA-OAEP")) -PS C:\> Update-AzCosmosDbClientEncryptionKey -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName -Name myClientEncryptionKeyName -KeyWrapMetadata $updatedKeyWrapMetadataObject - +$updatedKeyWrapMetadataObject = [Microsoft.Azure.Commands.CosmosDB.Models.PSSqlKeyWrapMetadata]::new([Microsoft.Azure.Management.CosmosDB.Models.KeyWrapMetadata]::new("myKekV2","AZURE_KEY_VAULT", "https://contoso.vault.azure.net/keys/myKekV2/78deebed173b48e48f55abf87ed4cf71", "RSA-OAEP")) +Update-AzCosmosDbClientEncryptionKey -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName -Name myClientEncryptionKeyName -KeyWrapMetadata $updatedKeyWrapMetadataObject +``` +```output Name : myContainerName Id : /subscriptions/mySubscriptionId/resourceGroups/myRgName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlDatabases/myDatabaseName/clientEncryptionKeys/myClientEncryptionKeyName Resource : Microsoft.Azure.Commands.CosmosDB.Models.PSSqlClientEncryptionKeyGetPropertiesResource @@ -54,10 +55,11 @@ In the second command a key with name as set in myClientEncryptionKeyName variab ### Example 2 ```powershell -PS C:\> $updatedKeyWrapMetadataObject = [Microsoft.Azure.Commands.CosmosDB.Models.PSSqlKeyWrapMetadata]::new([Microsoft.Azure.Management.CosmosDB.Models.KeyWrapMetadata]::new("myKekV2","AZURE_KEY_VAULT", "https://contoso.vault.azure.net/keys/myKekV2/78deebed173b48e48f55abf87ed4cf71", "RSA-OAEP")) -PS C:\> $azureKeyVaultKeyResolver = [Azure.Security.KeyVault.Keys.Cryptography.KeyResolver]::new([Azure.Identity.DefaultAzureCredential]::new()) -PS C:\> Update-AzCosmosDbClientEncryptionKey -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName -Name myClientEncryptionKeyName -KeyWrapMetadata $updatedKeyWrapMetadataObject -KeyEncryptionKeyResolver $azureKeyVaultKeyResolver - +$updatedKeyWrapMetadataObject = [Microsoft.Azure.Commands.CosmosDB.Models.PSSqlKeyWrapMetadata]::new([Microsoft.Azure.Management.CosmosDB.Models.KeyWrapMetadata]::new("myKekV2","AZURE_KEY_VAULT", "https://contoso.vault.azure.net/keys/myKekV2/78deebed173b48e48f55abf87ed4cf71", "RSA-OAEP")) +$azureKeyVaultKeyResolver = [Azure.Security.KeyVault.Keys.Cryptography.KeyResolver]::new([Azure.Identity.DefaultAzureCredential]::new()) +Update-AzCosmosDbClientEncryptionKey -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName -Name myClientEncryptionKeyName -KeyWrapMetadata $updatedKeyWrapMetadataObject -KeyEncryptionKeyResolver $azureKeyVaultKeyResolver +``` +```output Name : myContainerName Id : /subscriptions/mySubscriptionId/resourceGroups/myRgName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlDatabases/myDatabaseName/clientEncryptionKeys/myClientEncryptionKeyName Resource : Microsoft.Azure.Commands.CosmosDB.Models.PSSqlClientEncryptionKeyGetPropertiesResource @@ -70,10 +72,11 @@ In the third command a key with name as set in myClientEncryptionKeyName variabl ### Example 3 ```powershell -PS C:\> $updatedKeyWrapMetadataObject = [Microsoft.Azure.Commands.CosmosDB.Models.PSSqlKeyWrapMetadata]::new([Microsoft.Azure.Management.CosmosDB.Models.KeyWrapMetadata]::new("myKekV2","AZURE_KEY_VAULT", "https://contoso.vault.azure.net/keys/myKekV2/78deebed173b48e48f55abf87ed4cf71", "RSA-OAEP")) -PS C:\> $keyToUpdate = Get-AzCosmosDbClientEncryptionKey -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName -ClientEncryptionKeyName myClientEncryptionKeyName -PS C:\> Update-AzCosmosDbClientEncryptionKey -InputObject $keyToUpdate -KeyWrapMetadata $updatedKeyWrapMetadataObject -KeyEncryptionKeyResolver $azureKeyVaultKeyResolver - +$updatedKeyWrapMetadataObject = [Microsoft.Azure.Commands.CosmosDB.Models.PSSqlKeyWrapMetadata]::new([Microsoft.Azure.Management.CosmosDB.Models.KeyWrapMetadata]::new("myKekV2","AZURE_KEY_VAULT", "https://contoso.vault.azure.net/keys/myKekV2/78deebed173b48e48f55abf87ed4cf71", "RSA-OAEP")) +$keyToUpdate = Get-AzCosmosDbClientEncryptionKey -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName -ClientEncryptionKeyName myClientEncryptionKeyName +Update-AzCosmosDbClientEncryptionKey -InputObject $keyToUpdate -KeyWrapMetadata $updatedKeyWrapMetadataObject -KeyEncryptionKeyResolver $azureKeyVaultKeyResolver +``` +```output Name : myContainerName Id : /subscriptions/mySubscriptionId/resourceGroups/myRgName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlDatabases/myDatabaseName/clientEncryptionKeys/myClientEncryptionKeyName Resource : Microsoft.Azure.Commands.CosmosDB.Models.PSSqlClientEncryptionKeyGetPropertiesResource diff --git a/src/CosmosDB/CosmosDB/help/Update-AzManagedCassandraCluster.md b/src/CosmosDB/CosmosDB/help/Update-AzManagedCassandraCluster.md index b98d80056958..1200df0808be 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzManagedCassandraCluster.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzManagedCassandraCluster.md @@ -47,28 +47,28 @@ The **Update-AzManagedCassandraCluster** cmdlet alters an existing managed Cassa ### Example 1 ```powershell Update-AzManagedCassandraCluster ` - -ResourceGroupName {resourceGroupName} ` - -ClusterName {clusterName} ` - -ExternalGossipCertificate {certificates} ` - -ClientCertificate {certificates} ` - -RepairEnabled {boolean} + -ResourceGroupName "resourceGroupName" ` + -ClusterName "clusterName" ` + -ExternalGossipCertificate "certificates" ` + -ClientCertificate "certificates" ` + -RepairEnabled "boolean" ``` ### Example 2 ```powershell Update-AzManagedCassandraCluster ` - -ResourceId {clusterResourceId} ` - -ExternalGossipCertificate {certificates} ` - -ClientCertificate {certificates} ` - -RepairEnabled {boolean} + -ResourceId "clusterResourceId" ` + -ExternalGossipCertificate "certificates" ` + -ClientCertificate "certificates" ` + -RepairEnabled "boolean" ``` ### Example 3 ```powershell $clusterResource | Update-AzManagedCassandraCluster ` - -ExternalGossipCertificate {certificates} ` - -ClientCertificate {certificates} ` - -RepairEnabled {boolean} + -ExternalGossipCertificate "certificates" ` + -ClientCertificate "certificates" ` + -RepairEnabled "boolean" ``` ## PARAMETERS diff --git a/src/CosmosDB/CosmosDB/help/Update-AzManagedCassandraDataCenter.md b/src/CosmosDB/CosmosDB/help/Update-AzManagedCassandraDataCenter.md index 59f9ae27239d..e57ded473ebb 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzManagedCassandraDataCenter.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzManagedCassandraDataCenter.md @@ -48,10 +48,10 @@ The **Update-AzManagedCassandraDataCenter** cmdlet updates an existing managed C ### Example 1 ```powershell Update-AzManagedCassandraDataCenter ` - -ResourceGroupName {resourceGroupName} ` - -ClusterName {clusterName} ` - -DataCenterName {dataCenterName} ` - -NodeCount {N} + -ResourceGroupName "resourceGroupName" ` + -ClusterName "clusterName" ` + -DataCenterName "dataCenterName" ` + -NodeCount "N" ``` ## PARAMETERS diff --git a/src/Test.csproj b/src/Test.csproj new file mode 100644 index 000000000000..c88706edc35b --- /dev/null +++ b/src/Test.csproj @@ -0,0 +1,45 @@ + + + Debug + x86 + {00000000-0000-0000-0000-000000000000} + Exe + false + ConsoleApplication + v4.0 + Client + 512 + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + x86 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + x86 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tools/PS-VSPrompt.lnk b/tools/PS-VSPrompt.lnk index f4b94cb5ae254423da1ec8decedcecf51114d90c..560dc664b6d7530ca5fa501ec0ef3cda146b796f 100644 GIT binary patch delta 17 ZcmX>h*djPVgz@o4(F2T|C7IT<0RTC$1_1y7 delta 37 mcmZn>JRvwigz@!8(F2V9dJK9DF+dC@Cv$NaZ@$d9kqrR7!3lQ& From ddfd0f7cd46fe0417eb4af2668da299c7f563744 Mon Sep 17 00:00:00 2001 From: Ziyue Zheng Date: Fri, 29 Apr 2022 19:39:55 +0800 Subject: [PATCH 2/2] Fix Az.CosmosDB Syntax Errors --- .../help/Get-AzCosmosDBCassandraTable.md | 2 +- ...t-AzCosmosDBMongoDBRestorableCollection.md | 14 +++--- ...Get-AzCosmosDBMongoDBRestorableDatabase.md | 4 +- ...Get-AzCosmosDBMongoDBRestorableResource.md | 2 +- .../Get-AzCosmosDBSqlRestorableContainer.md | 8 ++-- .../Get-AzCosmosDBSqlRestorableDatabase.md | 4 +- .../Get-AzCosmosDBSqlRestorableResource.md | 2 +- .../help/Get-AzCosmosDbClientEncryptionKey.md | 3 +- .../help/New-AzCosmosDBCassandraSchema.md | 2 +- .../help/New-AzCosmosDBMongoDBIndex.md | 2 +- .../help/New-AzCosmosDBSqlRoleAssignment.md | 2 +- .../help/New-AzCosmosDBSqlRoleDefinition.md | 6 +-- .../help/New-AzCosmosDBSqlUniqueKeyPolicy.md | 2 +- .../help/New-AzCosmosDbClientEncryptionKey.md | 4 +- .../help/New-AzManagedCassandraDataCenter.md | 2 +- .../help/Remove-AzCosmosDBCassandraTable.md | 2 +- .../Remove-AzManagedCassandraDataCenter.md | 2 +- .../help/Update-AzCosmosDBAccountRegion.md | 2 +- ...e-AzCosmosDBCassandraKeyspaceThroughput.md | 2 +- ...date-AzCosmosDBCassandraTableThroughput.md | 2 +- .../help/Update-AzCosmosDBGremlinDatabase.md | 2 +- ...ate-AzCosmosDBGremlinDatabaseThroughput.md | 2 +- ...Update-AzCosmosDBGremlinGraphThroughput.md | 2 +- ...e-AzCosmosDBMongoDBCollectionThroughput.md | 2 +- ...ate-AzCosmosDBMongoDBDatabaseThroughput.md | 2 +- ...Update-AzCosmosDBSqlContainerThroughput.md | 2 +- .../Update-AzCosmosDBSqlDatabaseThroughput.md | 2 +- .../Update-AzCosmosDBSqlRoleDefinition.md | 4 +- .../help/Update-AzCosmosDBTableThroughput.md | 2 +- .../Update-AzCosmosDbClientEncryptionKey.md | 3 ++ .../help/Update-AzManagedCassandraCluster.md | 6 +-- .../Update-AzManagedCassandraDataCenter.md | 2 +- src/Test.csproj | 45 ------------------ tools/PS-VSPrompt.lnk | Bin 2180 -> 2248 bytes 34 files changed, 53 insertions(+), 92 deletions(-) delete mode 100644 src/Test.csproj diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraTable.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraTable.md index 28b5fdb3880e..3ed793f5875b 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraTable.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBCassandraTable.md @@ -31,7 +31,7 @@ The **Get-AzCosmosDBCassandraTable** cmdlet creates a new or updates an existing ### Example 1 ```powershell -Get-AzCosmosDBCassandraTable -ResourceGroupName "resourceGroupName" -AccountName "accountName" -KeyspaceName "keyspaceName" -Name "name" +Get-AzCosmosDBCassandraTable -ResourceGroupName "resourceGroupName" -AccountName "accountName" -KeyspaceName "keyspaceName" -Name "tableName" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableCollection.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableCollection.md index da297a0f07a5..77b90f941862 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableCollection.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableCollection.md @@ -34,12 +34,12 @@ For example, if user wants to restore the database account to a timestamp when a ### Example 1 ```powershell -Get-AzCosmosDBMongoDBRestorableCollection -Location "locationName" -DatabaseAccountInstanceId "DatabaseAccountInstanceIdInstanceId" -DatabaseRId "DatabaseRId" +Get-AzCosmosDBMongoDBRestorableCollection -Location "location" -DatabaseAccountInstanceId "DatabaseAccountInstanceId" -DatabaseRId "DatabaseRId" ``` ```output -Id : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{locationName}/restorableDatabaseAccounts - /{DatabaseAccountInstanceIdInstanceId}/restorableMongoDBCollections/6a0cb3e4-7d2b-4363-b585-04a3b14ada8c +Id : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts + /{DatabaseAccountInstanceId}/restorableMongoDBCollections/6a0cb3e4-7d2b-4363-b585-04a3b14ada8c Name : 6a0cb3e4-7d2b-4363-b585-04a3b14ada8c Type : Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongoDBCollections _rid : qsLuzwAAAA== @@ -48,8 +48,8 @@ EventTimestamp : 01/20/2021 18:44:07 OwnerId : foo-collection2 OwnerResourceId : Ts0YAPGKTvw= -Id : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{locationName}/restorableDatabaseAccounts - /{DatabaseAccountInstanceIdInstanceId}/restorableMongoDBCollections/ff36d1d3-f9dc-40a0-a003-60fe349abcfb +Id : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts + /{DatabaseAccountInstanceId}/restorableMongoDBCollections/ff36d1d3-f9dc-40a0-a003-60fe349abcfb Name : ff36d1d3-f9dc-40a0-a003-60fe349abcfb Type : Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongoDBCollections _rid : Ngu72QAAAA== @@ -58,8 +58,8 @@ EventTimestamp : 01/20/2021 18:44:07 OwnerId : foo-collection1 OwnerResourceId : Ts0YAP+RbG0= -Id : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{locationName}/restorableDatabaseAccounts - /{DatabaseAccountInstanceIdInstanceId}/restorableMongoDBCollections/2afb35ba-1755-4fbc-85be-ae175dd0668f +Id : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts + /{DatabaseAccountInstanceId}/restorableMongoDBCollections/2afb35ba-1755-4fbc-85be-ae175dd0668f Name : 2afb35ba-1755-4fbc-85be-ae175dd0668f Type : Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongoDBCollections _rid : lSuf5gAAAA== diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableDatabase.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableDatabase.md index 084af07ec019..ba885a4dbd92 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableDatabase.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableDatabase.md @@ -34,12 +34,12 @@ For example, if user wants to restore the database account to a timestamp when a ### Example 1 ```powershell -Get-AzCosmosDBMongoDBRestorableDatabase -Location "location" -DatabaseAccountInstanceId "DatabaseAccountInstanceIdInstanceId" +Get-AzCosmosDBMongoDBRestorableDatabase -Location "location" -DatabaseAccountInstanceId "DatabaseAccountInstanceId" ``` ```output Name : cb04fbfc-4142-413d-b2c5-c91723a17e28 -Id : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{DatabaseAccountInstanceIdInstanceId}/restorableMongoDBDatabases/cb04fbfc-4142-413d-b2c5-c91723 +Id : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{DatabaseAccountInstanceId}/restorableMongoDBDatabases/cb04fbfc-4142-413d-b2c5-c91723 a17e28 Type : Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongoDBDatabases _rid : a+35ZwAAAA== diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableResource.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableResource.md index f58f82826393..c7d9b5253d7a 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableResource.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBMongoDBRestorableResource.md @@ -36,7 +36,7 @@ The user can also use this list and provide a subset of restorable resources if ### Example 1 ```powershell -Get-AzCosmosDBMongoDBRestorableResource -Location "location" -DatabaseAccountInstanceId "DatabaseInstanceId" -RestoreLocation "Database" -RestoreTimestampInUtc "RestoreTimestamp" +Get-AzCosmosDBMongoDBRestorableResource -Location "location" -DatabaseAccountInstanceId "DatabaseInstanceId" -RestoreLocation "Database" -RestoreTimestampInUtc $RestoreTimestamp ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableContainer.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableContainer.md index f4c001773dd7..0d4b0efc2192 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableContainer.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableContainer.md @@ -34,12 +34,12 @@ For example, if user wants to restore the database account to a timestamp when a ### Example 1 ```powershell -Get-AzCosmosDBSqlRestorableContainer -Location "location" -DatabaseAccountInstanceId "DatabaseAccountInstanceIdInstanceId" -DatabaseRId "DatabaseRId" +Get-AzCosmosDBSqlRestorableContainer -Location "location" -DatabaseAccountInstanceId "DatabaseAccountInstanceId" -DatabaseRId "DatabaseRId" ``` ```output Id : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts - /{DatabaseAccountInstanceIdInstanceId}/restorableSqlContainers/6a0cb3e4-7d2b-4363-b585-04a3b14ada8c + /{DatabaseAccountInstanceId}/restorableSqlContainers/6a0cb3e4-7d2b-4363-b585-04a3b14ada8c Name : 6a0cb3e4-7d2b-4363-b585-04a3b14ada8c Type : Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlContainers _rid : qsLuzwAAAA== @@ -50,7 +50,7 @@ OwnerResourceId : Ts0YAPGKTvw= Container : Microsoft.Azure.Management.CosmosDB.Models.PSRestorableSqlContainerPropertiesResourceContainer Id : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts - /{DatabaseAccountInstanceIdInstanceId}/restorableSqlContainers/ff36d1d3-f9dc-40a0-a003-60fe349abcfb + /{DatabaseAccountInstanceId}/restorableSqlContainers/ff36d1d3-f9dc-40a0-a003-60fe349abcfb Name : ff36d1d3-f9dc-40a0-a003-60fe349abcfb Type : Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlContainers _rid : Ngu72QAAAA== @@ -61,7 +61,7 @@ OwnerResourceId : Ts0YAP+RbG0= Container : Microsoft.Azure.Management.CosmosDB.Models.PSRestorableSqlContainerPropertiesResourceContainer Id : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts - /{DatabaseAccountInstanceIdInstanceId}/restorableSqlContainers/2afb35ba-1755-4fbc-85be-ae175dd0668f + /{DatabaseAccountInstanceId}/restorableSqlContainers/2afb35ba-1755-4fbc-85be-ae175dd0668f Name : 2afb35ba-1755-4fbc-85be-ae175dd0668f Type : Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlContainers _rid : lSuf5gAAAA== diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableDatabase.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableDatabase.md index 9eacda5ccfd1..3b6f8613370f 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableDatabase.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableDatabase.md @@ -34,12 +34,12 @@ For example, if user wants to restore the database account to a timestamp when a ### Example 1 ```powershell -Get-AzCosmosDBSqlRestorableDatabase -Location "location" -DatabaseAccountInstanceId "DatabaseAccountInstanceIdInstanceId" +Get-AzCosmosDBSqlRestorableDatabase -Location "location" -DatabaseAccountInstanceId "DatabaseAccountInstanceId" ``` ```output Name : cb04fbfc-4142-413d-b2c5-c91723a17e28 -Id : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{DatabaseAccountInstanceIdInstanceId}/restorableSqlDatabases/cb04fbfc-4142-413d-b2c5-c91723 +Id : /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{DatabaseAccountInstanceId}/restorableSqlDatabases/cb04fbfc-4142-413d-b2c5-c91723 a17e28 Type : Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlDatabases _rid : a+35ZwAAAA== diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableResource.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableResource.md index fb09347df064..2b0bc014b082 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableResource.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDBSqlRestorableResource.md @@ -36,7 +36,7 @@ The user can also use this list and provide a subset of restorable resources if ### Example 1 ```powershell -Get-AzCosmosDBSqlRestorableResource -Location "locationName" -DatabaseAccountInstanceId "DatabaseInstanceId" -RestoreLocation "Database" -RestoreTimestampInUtc "RestoreTimestamp" +Get-AzCosmosDBSqlRestorableResource -Location "location" -DatabaseAccountInstanceId "DatabaseInstanceId" -RestoreLocation "Database" -RestoreTimestampInUtc $RestoreTimestamp ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDbClientEncryptionKey.md b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDbClientEncryptionKey.md index 1bbf9ef5e4c7..eee80f7d7866 100644 --- a/src/CosmosDB/CosmosDB/help/Get-AzCosmosDbClientEncryptionKey.md +++ b/src/CosmosDB/CosmosDB/help/Get-AzCosmosDbClientEncryptionKey.md @@ -31,8 +31,9 @@ The **Get-AzCosmosDbClientEncryptionKey** cmdlet gets the list of all existing C ### Example 1 ```powershell -Get-AzCosmosDbClientEncryptionKey -AccountName "myAccountName" -DatabaseName "myDatabaseName" -ResourceGroupName "myRgName" +Get-AzCosmosDbClientEncryptionKey -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName ``` + ```output Name : {clientEncryptionKeyName} Id : Id diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBCassandraSchema.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBCassandraSchema.md index 05743b49354b..541bb5ddec47 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBCassandraSchema.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBCassandraSchema.md @@ -24,7 +24,7 @@ The **New-AzCosmosDBCassandraSchema** creates a new CosmosDB Cassandra Schema. ### Example 1 ```powershell -New-AzCosmosDBCassandraSchema -Column "PSColumn[]" -PartitionKey "String[]" -ClusterKey "PSClusterKey[]" +New-AzCosmosDBCassandraSchema -Column $column1 -PartitionKey "a" -ClusterKey $clusterkey1 ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBMongoDBIndex.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBMongoDBIndex.md index 1f1204c1586a..4a68375e36e5 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBMongoDBIndex.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBMongoDBIndex.md @@ -24,7 +24,7 @@ The **New-AzCosmosDBMongoDBIndex** creates a new CosmosDB MongoDB Index. ### Example 1 ```powershell -New-AzCosmosDBMongoDBIndex -TtlInSeconds "val" -Unique 1 -Key "key1" +New-AzCosmosDBMongoDBIndex -TtlInSeconds 604800 -Unique 1 -Key "key1" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlRoleAssignment.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlRoleAssignment.md index 9eb96eb55963..9cdd892fbf33 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlRoleAssignment.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlRoleAssignment.md @@ -44,7 +44,7 @@ RoleDefinitionId can be either fully qualified or just the Guid. ### Example 1 ```powershell -New-AzCosmosDBSqlRoleAssignment +New-AzCosmosDBSqlRoleAssignment ` -AccountName accountName ` -ResourceGroupName resourceGroupName ` -RoleDefinitionId "/subscriptions/subId/resourceGroups/resourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlRoleDefinitions/roleDefinitionId" ` diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlRoleDefinition.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlRoleDefinition.md index 5e9695092d26..381f1445774f 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlRoleDefinition.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlRoleDefinition.md @@ -56,11 +56,11 @@ In order to specify the Role Definition's Permissions, either use the DataAction ### Example 1: Using DataAction ```powershell -New-AzCosmosDBSqlRoleDefinition +New-AzCosmosDBSqlRoleDefinition ` -AccountName accountName ` -ResourceGroupName resourceGroupName ` -Type CustomRole ` - -RoleName roleName + -RoleName roleName ` -DataAction "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create" ` -AssignableScope "/" ``` @@ -77,7 +77,7 @@ AssignableScopes : {/subscriptions/subId/resourceGroups/resourceGroupName/provid ```powershell $DatabaseAccount = Get-AzCosmosDBAccount -Name accountName -ResourceGroupName resourceGroupName $Permission = New-AzCosmosDBPermission -DataAction "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create" -New-AzCosmosDBSqlRoleDefinition +New-AzCosmosDBSqlRoleDefinition ` -Type CustomRole ` -RoleName roleName ` -Permission $Permission ` diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlUniqueKeyPolicy.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlUniqueKeyPolicy.md index d2fe94956648..ab3618d0c07c 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlUniqueKeyPolicy.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlUniqueKeyPolicy.md @@ -24,7 +24,7 @@ The **New-AzCosmosDBSqlUniqueKeyPolicy** cmdlet creates a new object of type PSS ### Example 1 ```powershell -New-AzCosmosDBSqlUniqueKeyPolicy -UniqueKey "psUniqueKey1, psUniqueKey2" +New-AzCosmosDBSqlUniqueKeyPolicy -UniqueKey $psUniqueKey1, $psUniqueKey2 ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDbClientEncryptionKey.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDbClientEncryptionKey.md index 1bd59371aafa..7a718e4fcb94 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDbClientEncryptionKey.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDbClientEncryptionKey.md @@ -38,7 +38,8 @@ The **New-AzCosmosDbClientEncryptionKey** creates a new CosmosDB Client Encrypti $myKeyWrapMetadataObject = [Microsoft.Azure.Commands.CosmosDB.Models.PSSqlKeyWrapMetadata]::new([Microsoft.Azure.Management.CosmosDB.Models.KeyWrapMetadata]::new("myKekV1","AZURE_KEY_VAULT", "https://contoso.vault.azure.net/keys/myKekV1/78deebed173b48e48f55abf87ed4cf71", "RSA-OAEP")) New-AzCosmosDbClientEncryptionKey -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName -Name myClientEncryptionKeyName -EncryptionAlgorithmName "AEAD_AES_256_CBC_HMAC_SHA256" -KeyWrapMetadata $myKeyWrapMetadataObject ``` -```outpot + +```output Name : myContainerName Id : /subscriptions/mySubscriptionId/resourceGroups/myRgName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlDatabases/myDatabaseName/clientEncryptionKeys/myClientEncryptionKeyName Resource : Microsoft.Azure.Commands.CosmosDB.Models.PSSqlClientEncryptionKeyGetPropertiesResource @@ -54,6 +55,7 @@ $myKeyWrapMetadataObject = [Microsoft.Azure.Commands.CosmosDB.Models.PSSqlKeyWra $azureKeyVaultKeyResolver = [Azure.Security.KeyVault.Keys.Cryptography.KeyResolver]::new([Azure.Identity.DefaultAzureCredential]::new()) New-AzCosmosDbClientEncryptionKey -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName -Name myClientEncryptionKeyName -EncryptionAlgorithmName "AEAD_AES_256_CBC_HMAC_SHA256" -KeyWrapMetadata $myKeyWrapMetadataObject -KeyEncryptionKeyResolver $azureKeyVaultKeyResolver ``` + ```output Name : myContainerName Id : /subscriptions/mySubscriptionId/resourceGroups/myRgName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlDatabases/myDatabaseName/clientEncryptionKeys/myClientEncryptionKeyName diff --git a/src/CosmosDB/CosmosDB/help/New-AzManagedCassandraDataCenter.md b/src/CosmosDB/CosmosDB/help/New-AzManagedCassandraDataCenter.md index 4be28407813e..3035fec04978 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzManagedCassandraDataCenter.md +++ b/src/CosmosDB/CosmosDB/help/New-AzManagedCassandraDataCenter.md @@ -43,7 +43,7 @@ New-AzManagedCassandraDataCenter ` -DataCenterName "dataCenterName" ` -DelegatedSubnetId "resourceId" ` -Location "location" ` - -NodeCount "N" + -NodeCount 3 ``` ## PARAMETERS diff --git a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBCassandraTable.md b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBCassandraTable.md index 0c986efc91e2..fcf539f322f6 100644 --- a/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBCassandraTable.md +++ b/src/CosmosDB/CosmosDB/help/Remove-AzCosmosDBCassandraTable.md @@ -32,7 +32,7 @@ The **Remove-AzCosmosDBCassandraTable** delete a CosmosDB Cassandra Table. ### Example 1 ```powershell -Remove-AzCosmosDBCassandraTable -ResourceGroupName "resourceGroup" -AccountName "account" -KeyspaceName "keyspace" -Name "tableName" +Remove-AzCosmosDBCassandraTable -ResourceGroupName "resourceGroupName" -AccountName "accountName" -KeyspaceName "keyspaceName" -Name "tableName" ``` The cmdlet returns an object of type bool(when -PassThru is passed) which is true, if the delete was successful. diff --git a/src/CosmosDB/CosmosDB/help/Remove-AzManagedCassandraDataCenter.md b/src/CosmosDB/CosmosDB/help/Remove-AzManagedCassandraDataCenter.md index 45fc47db0705..cfcd9c585d83 100644 --- a/src/CosmosDB/CosmosDB/help/Remove-AzManagedCassandraDataCenter.md +++ b/src/CosmosDB/CosmosDB/help/Remove-AzManagedCassandraDataCenter.md @@ -46,7 +46,7 @@ The **Remove-AzManagedCassandraDataCenter** cmdlet deletes a managed Cassandra d Remove-AzManagedCassandraDataCenter ` -ResourceGroupName "resourceGroupName" ` -ClusterName "clusterName" ` - -DataCenterName "dataCenterName"} + -DataCenterName "dataCenterName" ``` ### Example 2 diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccountRegion.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccountRegion.md index b4ae1ce12491..41f9b34b158b 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccountRegion.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBAccountRegion.md @@ -42,7 +42,7 @@ Please note, we only support Addition of Regions. Please provide either Location ### Example 1 ```powershell -Update-AzCosmosDBAccountRegion -ResourceGroupName rg -Name dbname -Location "location1,location2" +Update-AzCosmosDBAccountRegion -ResourceGroupName rg -Name dbname -Location "location1", "location2" ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraKeyspaceThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraKeyspaceThroughput.md index 68947ab329ac..c241faddb99a 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraKeyspaceThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraKeyspaceThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB Cassandra Keyspace. ### Example 1 ```powershell -Update-AzCosmosDBCassandraKeyspaceThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -Name "myKeyspaceName" -Throughput "updatedThroughputValue" +Update-AzCosmosDBCassandraKeyspaceThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -Name "myKeyspaceName" -Throughput $updatedThroughputValue ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraTableThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraTableThroughput.md index 9b0fcea42c03..3e0a14c0e458 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraTableThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBCassandraTableThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB Cassandra Table. ### Example 1 ```powershell -Update-AzCosmosDBCassandraTableThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -KeyspaceName "myKeyspacename" -Name "myTableName" -Throughput "updatedThroughputValue" +Update-AzCosmosDBCassandraTableThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -KeyspaceName "myKeyspaceName" -Name "myTableName" -Throughput $updatedThroughputValue ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinDatabase.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinDatabase.md index f5164606d7a9..8d23dc233d6e 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinDatabase.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinDatabase.md @@ -40,7 +40,7 @@ Updates the CosmosDB Gremlin Database. Performs a client side patch operation by ### Example 1 ```powershell -Update-AzCosmosDBGremlinDatabase -AccountName myAccountName -Name myDatabaseName -ResourceGroupName myResourcegroupName -throughput updatedThroughputValueAsInteger +Update-AzCosmosDBGremlinDatabase -AccountName "myAccountName" -Name "myDatabaseName" -ResourceGroupName "myResourcegroupName" -Throughput 700 ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinDatabaseThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinDatabaseThroughput.md index 970ea6b6907e..da3176f1ce9c 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinDatabaseThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinDatabaseThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB Gremlin Database. ### Example 1 ```powershell -Update-AzCosmosDBGremlinDatabaseThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -Name "myDatabaseName" -Throughput "updatedThroughputValue" +Update-AzCosmosDBGremlinDatabaseThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -Name "myDatabaseName" -Throughput $updatedThroughputValue ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinGraphThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinGraphThroughput.md index bf87759c91f6..cc93930c208b 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinGraphThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBGremlinGraphThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB Gremlin Graph. ### Example 1 ```powershell -Update-AzCosmosDBGremlinGraphThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -DatabaseName "mydatabaseName" -Name "myGraphName" -Throughput "updatedThroughputValue" +Update-AzCosmosDBGremlinGraphThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -DatabaseName "mydatabaseName" -Name "myGraphName" -Throughput $updatedThroughputValue ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBCollectionThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBCollectionThroughput.md index 7b958898198b..7e525ae68f7b 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBCollectionThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBCollectionThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB MongoDB Collection. ### Example 1 ```powershell -Update-AzCosmosDBMongoDBCollectionThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -DatabaseName "mydatabaseName" -Name "myCollectionName" -Throughput "updatedThroughputValue" +Update-AzCosmosDBMongoDBCollectionThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -DatabaseName "mydatabaseName" -Name "myCollectionName" -Throughput $updatedThroughputValue ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBDatabaseThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBDatabaseThroughput.md index 519dbc6c7cff..3488faa54e0b 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBDatabaseThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBDatabaseThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB MongoDB Database. ### Example 1 ```powershell -Update-AzCosmosDBMongoDBThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -Name "myDatabaseName" -Throughput "updatedThroughputValue" +Update-AzCosmosDBMongoDBThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -Name "myDatabaseName" -Throughput $updatedThroughputValue ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlContainerThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlContainerThroughput.md index 4f5a7ac64f2f..9c2a9cf7b4b2 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlContainerThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlContainerThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB Sql Container. ### Example 1 ```powershell -Update-AzCosmosDBSqlContainerThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -DatabaseName "myDatabaseName" -Name "myContainerName" -Throughput "updatedThroughputValue" +Update-AzCosmosDBSqlContainerThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -DatabaseName "myDatabaseName" -Name "myContainerName" -Throughput $updatedThroughputValue ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlDatabaseThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlDatabaseThroughput.md index 6ba6717b46e6..e306781df3d9 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlDatabaseThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlDatabaseThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB Sql Database. ### Example 1 ```powershell -Update-AzCosmosDBSqlDatabaseThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -Name "myDatabaseName" -Throughput "updatedThroughputValue" +Update-AzCosmosDBSqlDatabaseThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -Name "myDatabaseName" -Throughput $updatedThroughputValue ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlRoleDefinition.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlRoleDefinition.md index 80a78ec88919..fb2e41c988e4 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlRoleDefinition.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBSqlRoleDefinition.md @@ -49,7 +49,7 @@ In order to specify the Role Definition's Permissions, either use the DataAction ### Example 1 ```powershell -Update-AzCosmosDBSqlRoleDefinition +Update-AzCosmosDBSqlRoleDefinition ` -AccountName accountName ` -ResourceGroupName resourceGroupName ` -Id id ` @@ -71,7 +71,7 @@ AssignableScopes : {/subscriptions/subId/resourceGroups/resourceGroupName/provid ```powershell $DatabaseAccount = Get-AzCosmosDBAccount -Name accountName -ResourceGroupName resourceGroupName $Permission = New-AzCosmosDBPermission -DataAction "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create" -Update-AzCosmosDBSqlRoleDefinition +Update-AzCosmosDBSqlRoleDefinition ` -Type CustomRole ` -Id id ` -RoleName roleName ` diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBTableThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBTableThroughput.md index cd1da22a6e1d..1570a1ef99cd 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBTableThroughput.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBTableThroughput.md @@ -40,7 +40,7 @@ Updates the throughput value of a CosmosDB Table. ### Example 1 ```powershell -Update-AzCosmosDBTableThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -Name "myTableName" -Throughput "updatedThroughputValue" +Update-AzCosmosDBTableThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -Name "myTableName" -Throughput $updatedThroughputValue ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDbClientEncryptionKey.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDbClientEncryptionKey.md index 627e6f31c7d5..6e3f3ef7a15e 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDbClientEncryptionKey.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDbClientEncryptionKey.md @@ -43,6 +43,7 @@ The **Update-AzCosmosDbClientEncryptionKey** updates the CosmosDb Client Encrypt $updatedKeyWrapMetadataObject = [Microsoft.Azure.Commands.CosmosDB.Models.PSSqlKeyWrapMetadata]::new([Microsoft.Azure.Management.CosmosDB.Models.KeyWrapMetadata]::new("myKekV2","AZURE_KEY_VAULT", "https://contoso.vault.azure.net/keys/myKekV2/78deebed173b48e48f55abf87ed4cf71", "RSA-OAEP")) Update-AzCosmosDbClientEncryptionKey -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName -Name myClientEncryptionKeyName -KeyWrapMetadata $updatedKeyWrapMetadataObject ``` + ```output Name : myContainerName Id : /subscriptions/mySubscriptionId/resourceGroups/myRgName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlDatabases/myDatabaseName/clientEncryptionKeys/myClientEncryptionKeyName @@ -59,6 +60,7 @@ $updatedKeyWrapMetadataObject = [Microsoft.Azure.Commands.CosmosDB.Models.PSSqlK $azureKeyVaultKeyResolver = [Azure.Security.KeyVault.Keys.Cryptography.KeyResolver]::new([Azure.Identity.DefaultAzureCredential]::new()) Update-AzCosmosDbClientEncryptionKey -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName -Name myClientEncryptionKeyName -KeyWrapMetadata $updatedKeyWrapMetadataObject -KeyEncryptionKeyResolver $azureKeyVaultKeyResolver ``` + ```output Name : myContainerName Id : /subscriptions/mySubscriptionId/resourceGroups/myRgName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlDatabases/myDatabaseName/clientEncryptionKeys/myClientEncryptionKeyName @@ -76,6 +78,7 @@ $updatedKeyWrapMetadataObject = [Microsoft.Azure.Commands.CosmosDB.Models.PSSqlK $keyToUpdate = Get-AzCosmosDbClientEncryptionKey -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName -ClientEncryptionKeyName myClientEncryptionKeyName Update-AzCosmosDbClientEncryptionKey -InputObject $keyToUpdate -KeyWrapMetadata $updatedKeyWrapMetadataObject -KeyEncryptionKeyResolver $azureKeyVaultKeyResolver ``` + ```output Name : myContainerName Id : /subscriptions/mySubscriptionId/resourceGroups/myRgName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlDatabases/myDatabaseName/clientEncryptionKeys/myClientEncryptionKeyName diff --git a/src/CosmosDB/CosmosDB/help/Update-AzManagedCassandraCluster.md b/src/CosmosDB/CosmosDB/help/Update-AzManagedCassandraCluster.md index 1200df0808be..cb69193cd396 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzManagedCassandraCluster.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzManagedCassandraCluster.md @@ -51,7 +51,7 @@ Update-AzManagedCassandraCluster ` -ClusterName "clusterName" ` -ExternalGossipCertificate "certificates" ` -ClientCertificate "certificates" ` - -RepairEnabled "boolean" + -RepairEnabled $true ``` ### Example 2 @@ -60,7 +60,7 @@ Update-AzManagedCassandraCluster ` -ResourceId "clusterResourceId" ` -ExternalGossipCertificate "certificates" ` -ClientCertificate "certificates" ` - -RepairEnabled "boolean" + -RepairEnabled $true ``` ### Example 3 @@ -68,7 +68,7 @@ Update-AzManagedCassandraCluster ` $clusterResource | Update-AzManagedCassandraCluster ` -ExternalGossipCertificate "certificates" ` -ClientCertificate "certificates" ` - -RepairEnabled "boolean" + -RepairEnabled $true ``` ## PARAMETERS diff --git a/src/CosmosDB/CosmosDB/help/Update-AzManagedCassandraDataCenter.md b/src/CosmosDB/CosmosDB/help/Update-AzManagedCassandraDataCenter.md index e57ded473ebb..98de11ddd495 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzManagedCassandraDataCenter.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzManagedCassandraDataCenter.md @@ -51,7 +51,7 @@ Update-AzManagedCassandraDataCenter ` -ResourceGroupName "resourceGroupName" ` -ClusterName "clusterName" ` -DataCenterName "dataCenterName" ` - -NodeCount "N" + -NodeCount 3 ``` ## PARAMETERS diff --git a/src/Test.csproj b/src/Test.csproj deleted file mode 100644 index c88706edc35b..000000000000 --- a/src/Test.csproj +++ /dev/null @@ -1,45 +0,0 @@ - - - Debug - x86 - {00000000-0000-0000-0000-000000000000} - Exe - false - ConsoleApplication - v4.0 - Client - 512 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - x86 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - x86 - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/tools/PS-VSPrompt.lnk b/tools/PS-VSPrompt.lnk index 560dc664b6d7530ca5fa501ec0ef3cda146b796f..f4b94cb5ae254423da1ec8decedcecf51114d90c 100644 GIT binary patch delta 37 mcmZn>JRvwigz@!8(F2V9dJK9DF+dC@Cv$NaZ@$d9kqrR7!3lQ& delta 17 ZcmX>h*djPVgz@o4(F2T|C7IT<0RTC$1_1y7