From c5bea98f8ad336070d243732b8ad8c26c1fd3598 Mon Sep 17 00:00:00 2001 From: Flynn Date: Thu, 16 Jun 2022 21:19:01 +0800 Subject: [PATCH 1/2] format the help markdown file of Az.CosmosDB --- .../CosmosDB/help/New-AzCosmosDBAccount.md | 2 +- .../help/New-AzCosmosDBSqlContainer.md | 18 +++++++++--------- ...date-AzCosmosDBMongoDBDatabaseThroughput.md | 2 +- .../CosmosDB/help/Update-AzCosmosDBTable.md | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBAccount.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBAccount.md index 5fbcc33da479..2dfa68fcc2ef 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBAccount.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBAccount.md @@ -64,7 +64,7 @@ A new CosmosDB Account with name databaseAccountName is created in the ResourceG ### Example 2 ```powershell -New-AzCosmosDBAccount -ResourceGroupName resourceGroupName -Name restored-account-name -Location "West US" -FromPointInTimeBackup -SourceRestorableDatabaseAccountId /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/restorableDatabaseAccounts/{instance-id} -RestoreTimesampInUtc 2020-07-20T17:19:25+0000 +New-AzCosmosDBAccount -ResourceGroupName resourceGroupName -Name restored-account-name -Location "West US" -FromPointInTimeBackup -SourceRestorableDatabaseAccountId "/subscriptions/subscriptionId/providers/Microsoft.DocumentDB/restorableDatabaseAccounts/instance-id" -RestoreTimesampInUtc 2020-07-20T17:19:25+0000 ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlContainer.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlContainer.md index bdda3038d94a..27205b3b4d9c 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlContainer.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBSqlContainer.md @@ -57,15 +57,15 @@ Resource : Microsoft.Azure.Commands.CosmosDB.Models.PSSqlContainerGetPropertiesR ### Example 2: Create a new CosmosDB Sql Container with Client Encryption Policy ```powershell -PS C:\> $includedPath1 = [Microsoft.Azure.Management.CosmosDB.Models.ClientEncryptionIncludedPath]::new("/path1","key1","Deterministic","AEAD_AES_256_CBC_HMAC_SHA256"); -PS C:\> $includedPath2 = [Microsoft.Azure.Management.CosmosDB.Models.ClientEncryptionIncludedPath]::new("/path2","key2","Randomized","AEAD_AES_256_CBC_HMAC_SHA256"); -PS C:\> $listofIncludedPaths = New-Object Collections.Generic.List[Microsoft.Azure.Management.CosmosDB.Models.ClientEncryptionIncludedPath] -PS C:\> $listofIncludedPaths.Add($includedPath1) -PS C:\> $listofIncludedPaths.Add($includedPath2) -PS C:\> $newClientEncryptionPolicy = New-Object Microsoft.Azure.Management.CosmosDB.Models.ClientEncryptionPolicy -PS C:\> $newClientEncryptionPolicy.IncludedPaths = $listofIncludedPaths -PS C:\> $newPSSqlClientEncryptionPolicy = [Microsoft.Azure.Commands.CosmosDB.Models.PSSqlClientEncryptionPolicy]::new($newClientEncryptionPolicy) -PS C:\> New-AzCosmosDBSqlContainer -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName -Name myContainerName -PartitionKeyPath /a/b/c -PartitionKeyKind Hash -ClientEncryptionPolicy $newPSSqlClientEncryptionPolicy +$includedPath1 = [Microsoft.Azure.Management.CosmosDB.Models.ClientEncryptionIncludedPath]::new("/path1","key1","Deterministic","AEAD_AES_256_CBC_HMAC_SHA256"); +$includedPath2 = [Microsoft.Azure.Management.CosmosDB.Models.ClientEncryptionIncludedPath]::new("/path2","key2","Randomized","AEAD_AES_256_CBC_HMAC_SHA256"); +$listofIncludedPaths = New-Object Collections.Generic.List[Microsoft.Azure.Management.CosmosDB.Models.ClientEncryptionIncludedPath] +$listofIncludedPaths.Add($includedPath1) +$listofIncludedPaths.Add($includedPath2) +$newClientEncryptionPolicy = New-Object Microsoft.Azure.Management.CosmosDB.Models.ClientEncryptionPolicy +$newClientEncryptionPolicy.IncludedPaths = $listofIncludedPaths +$newPSSqlClientEncryptionPolicy = [Microsoft.Azure.Commands.CosmosDB.Models.PSSqlClientEncryptionPolicy]::new($newClientEncryptionPolicy) +New-AzCosmosDBSqlContainer -AccountName myAccountName -DatabaseName myDatabaseName -ResourceGroupName myRgName -Name myContainerName -PartitionKeyPath /a/b/c -PartitionKeyKind Hash -ClientEncryptionPolicy $newPSSqlClientEncryptionPolicy ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBDatabaseThroughput.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBMongoDBDatabaseThroughput.md index 3488faa54e0b..6c1b1f2958d6 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-AzCosmosDBMongoDBDatabaseThroughput -AccountName "myAccountName" -ResourceGroupName "myResourceGroupName" -Name "myDatabaseName" -Throughput $updatedThroughputValue ``` ```output diff --git a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBTable.md b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBTable.md index bd15d930e51e..5e0b94951322 100644 --- a/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBTable.md +++ b/src/CosmosDB/CosmosDB/help/Update-AzCosmosDBTable.md @@ -40,7 +40,7 @@ Updates the CosmosDB Table. Performs a client side patch operation by reading th ### Example 1 ```powershell -Update-AzCosmosDBTable -AccountName myAcccountName -Name myTableName -ResourceGroupName myRgName Throughput 800 +Update-AzCosmosDBTable -AccountName myAcccountName -Name myTableName -ResourceGroupName myRgName -Throughput 800 ``` ```output From 2956662fbd7b868ac10346e98dafe5468a52f9f6 Mon Sep 17 00:00:00 2001 From: Ziyue Zheng Date: Mon, 20 Jun 2022 17:03:30 +0800 Subject: [PATCH 2/2] Update New-AzCosmosDBAccount.md --- src/CosmosDB/CosmosDB/help/New-AzCosmosDBAccount.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBAccount.md b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBAccount.md index 2dfa68fcc2ef..150faf4a6a69 100644 --- a/src/CosmosDB/CosmosDB/help/New-AzCosmosDBAccount.md +++ b/src/CosmosDB/CosmosDB/help/New-AzCosmosDBAccount.md @@ -64,7 +64,7 @@ A new CosmosDB Account with name databaseAccountName is created in the ResourceG ### Example 2 ```powershell -New-AzCosmosDBAccount -ResourceGroupName resourceGroupName -Name restored-account-name -Location "West US" -FromPointInTimeBackup -SourceRestorableDatabaseAccountId "/subscriptions/subscriptionId/providers/Microsoft.DocumentDB/restorableDatabaseAccounts/instance-id" -RestoreTimesampInUtc 2020-07-20T17:19:25+0000 +New-AzCosmosDBAccount -ResourceGroupName resourceGroupName -Name restored-account-name -Location "West US" -FromPointInTimeBackup -SourceRestorableDatabaseAccountId "/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/restorableDatabaseAccounts/{instance-id}" -RestoreTimesampInUtc 2020-07-20T17:19:25+0000 ``` ```output