Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/CosmosDB/CosmosDB/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
-->

## Upcoming Release
* Added PublicNetworkAccess parameter to `Restore-AzCosmosDBAccount`.

## Version 1.10.0
* Introduced restorable apis support for Gremlin and Table, which includes:
- Added the apis for RestorableGremlinDatabases, RestorableGremlinGraphs, RestorableGremlinResources,RestorableTables, RestorableResources.
- Added RetrieveContinuousBackupInfo apis for Gremlin and Table which help in determining the restore point of time and the resources to restore.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
using Microsoft.Azure.Management.CosmosDB.Models;
using Microsoft.Extensions.Azure;
using Newtonsoft.Json.Converters;
using SDKModel = Microsoft.Azure.Management.CosmosDB.Models;

namespace Microsoft.Azure.Commands.CosmosDB
{
Expand Down Expand Up @@ -62,6 +63,10 @@ public class RestoreAzCosmosDBAccount : AzureCosmosDBCmdletBase
[Parameter(Mandatory = false, HelpMessage = Constants.AsJobHelpMessage)]
public SwitchParameter AsJob { get; set; }

[Parameter(Mandatory = false, HelpMessage = Constants.PublicNetworkAccessHelpMessage)]
[PSArgumentCompleter(SDKModel.PublicNetworkAccess.Disabled, SDKModel.PublicNetworkAccess.Enabled)]
public string PublicNetworkAccess { get; set; }

public override void ExecuteCmdlet()
{
DateTime utcRestoreDateTime;
Expand Down Expand Up @@ -227,7 +232,8 @@ public override void ExecuteCmdlet()
{
Kind = apiKind,
CreateMode = CreateMode.Restore,
RestoreParameters = restoreParameters.ToSDKModel()
RestoreParameters = restoreParameters.ToSDKModel(),
PublicNetworkAccess = PublicNetworkAccess
};

if (ShouldProcess(TargetDatabaseAccountName,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml
Module Name: Az.CosmosDB
online version:
online version: https://learn.microsoft.com/powershell/module/az.cosmosdb/get-azcosmosdbmongodbcollectionperpartitionthroughput
schema: 2.0.0
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml
Module Name: Az.CosmosDB
online version:
online version: https://learn.microsoft.com/powershell/module/az.cosmosdb/get-azcosmosdbsqlcontainerperpartitionthroughput
schema: 2.0.0
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml
Module Name: Az.CosmosDB
online version:
online version: https://learn.microsoft.com/powershell/module/az.cosmosdb/invoke-azcosmosdbmongodbcollectionmerge
schema: 2.0.0
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml
Module Name: Az.CosmosDB
online version:
online version: https://learn.microsoft.com/powershell/module/az.cosmosdb/invoke-azcosmosdbsqlcontainermerge
schema: 2.0.0
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml
Module Name: Az.CosmosDB
online version:
online version: https://learn.microsoft.com/powershell/module/az.cosmosdb/new-azcosmosdbphysicalpartitionthroughputobject
schema: 2.0.0
---

Expand Down
17 changes: 16 additions & 1 deletion src/CosmosDB/CosmosDB/help/Restore-AzCosmosDBAccount.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Restores an existing CosmosDB account (live or deleted) to a given timestamp to
Restore-AzCosmosDBAccount -RestoreTimestampInUtc <DateTime> -SourceDatabaseAccountName <String>
-Location <String> -TargetResourceGroupName <String> -TargetDatabaseAccountName <String>
[-DatabasesToRestore <PSDatabaseToRestore[]>] [-GremlinDatabasesToRestore <PSGremlinDatabaseToRestore[]>]
[-TablesToRestore <PSTablesToRestore>] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
[-TablesToRestore <PSTablesToRestore>] [-PublicNetworkAccess <String>] [-AsJob] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
[-Confirm] [<CommonParameters>]
```

Expand Down Expand Up @@ -145,6 +145,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -PublicNetworkAccess
Whether or not public endpoint access is allowed for this server. Possible values include: 'Enabled', 'Disabled'

```yaml
Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -RestoreTimestampInUtc
The timestamp to which the source account has to be restored to.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml
Module Name: Az.CosmosDB
online version:
online version: https://learn.microsoft.com/powershell/module/az.cosmosdb/restore-azcosmosdbmongodbcollection
schema: 2.0.0
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml
Module Name: Az.CosmosDB
online version:
online version: https://learn.microsoft.com/powershell/module/az.cosmosdb/restore-azcosmosdbmongodbdatabase
schema: 2.0.0
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml
Module Name: Az.CosmosDB
online version:
online version: https://learn.microsoft.com/powershell/module/az.cosmosdb/restore-azcosmosdbsqlcontainer
schema: 2.0.0
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml
Module Name: Az.CosmosDB
online version:
online version: https://learn.microsoft.com/powershell/module/az.cosmosdb/restore-azcosmosdbsqldatabase
schema: 2.0.0
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml
Module Name: Az.CosmosDB
online version:
online version: https://learn.microsoft.com/powershell/module/az.cosmosdb/update-azcosmosdbmongodbcollectionperpartitionthroughput
schema: 2.0.0
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
external help file: Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll-Help.xml
Module Name: Az.CosmosDB
online version:
online version: https://learn.microsoft.com/powershell/module/az.cosmosdb/update-azcosmosdbsqlcontainerperpartitionthroughput
schema: 2.0.0
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@
"Az.CosmosDB","Microsoft.Azure.Commands.CosmosDB.GetAzCosmosDBSqlContainerPerPartitionThroughput","Get-AzCosmosDBSqlContainerPerPartitionThroughput","1","8410","Parameter AllPartitions of cmdlet Get-AzCosmosDBSqlContainerPerPartitionThroughput does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name."
"Az.CosmosDB","Microsoft.Azure.Commands.CosmosDB.NewAzCosmosDBPhysicalPartitionThroughputObject","New-AzCosmosDBPhysicalPartitionThroughputObject","1","8100","New-AzCosmosDBPhysicalPartitionThroughputObject Does not support ShouldProcess but the cmdlet verb New indicates that it should.","Determine if the cmdlet should implement ShouldProcess and if so determine if it should implement Force / ShouldContinue"
"Az.CosmosDB","Microsoft.Azure.Commands.CosmosDB.NewAzCosmosDBPhysicalPartitionThroughputObject","New-AzCosmosDBPhysicalPartitionThroughputObject","1","8600","Cmdlet 'New-AzCosmosDBPhysicalPartitionThroughputObject' has no defined output type.","Add an OutputType attribute that declares the type of the object(s) returned by this cmdlet. If this cmdlet returns no output, please set the output type to 'bool' and make sure to implement the 'PassThru' parameter."
"Az.CosmosDB","Microsoft.Azure.Commands.CosmosDB.GetAzCosmosDBMongoDBDatabasePerPartitionThroughput","Get-AzCosmosDBMongoDBDatabasePerPartitionThroughput","1","8410","Parameter PhysicalPartitionIds of cmdlet Get-AzCosmosDBMongoDBDatabasePerPartitionThroughput does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name."
"Az.CosmosDB","Microsoft.Azure.Commands.CosmosDB.GetAzCosmosDBMongoDBDatabasePerPartitionThroughput","Get-AzCosmosDBMongoDBDatabasePerPartitionThroughput","1","8410","Parameter AllPartitions of cmdlet Get-AzCosmosDBMongoDBDatabasePerPartitionThroughput does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name."
"Az.CosmosDB","Microsoft.Azure.Commands.CosmosDB.GetAzCosmosDBSqlDatabasePerPartitionThroughput","Get-AzCosmosDBSqlDatabasePerPartitionThroughput","1","8410","Parameter PhysicalPartitionIds of cmdlet Get-AzCosmosDBSqlDatabasePerPartitionThroughput does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name."
"Az.CosmosDB","Microsoft.Azure.Commands.CosmosDB.GetAzCosmosDBSqlDatabasePerPartitionThroughput","Get-AzCosmosDBSqlDatabasePerPartitionThroughput","1","8410","Parameter AllPartitions of cmdlet Get-AzCosmosDBSqlDatabasePerPartitionThroughput does not follow the enforced naming convention of using a singular noun for a parameter name.","Consider using a singular noun for the parameter name."