Edit

Update-AzRestorePointCollection

Update Restore Point Collection.

Syntax

Default (Default)

Update-AzRestorePointCollection
    [-ResourceGroupName] <String>
    [-Name] <String>
    [-Tag <Hashtable>]
    [-InstantAccess <Boolean>]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Update Restore Point Collection. Can update tags and the InstantAccess setting.

Examples

Example 1

Update-AzRestorePointCollection -ResourceGroupName <String> -Name <String> -Tag <Hashtable> -Confirm

Add updated tags using -Tag parameter

Example 2

Update-AzRestorePointCollection -ResourceGroupName "MyResourceGroup" -Name "MyRPCollection" -InstantAccess $false

Disable Instant Access on an existing restore point collection.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InstantAccess

Enables or disables instant access snapshot for restore points created under this restore point collection for Premium SSD v2 or Ultra disk. This parameter requires a supported Compute API version and the required subscription feature flag for instant access restore points. In subscriptions or regions where this feature is not enabled, the request may be ignored or rejected.

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Resource Name

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:RestorePointCollectionName

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-ResourceGroupName

Resource Group Name

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Tag

A hashtable which represents resource tags.

Parameter properties

Type:Hashtable
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

Outputs

Microsoft.Azure.Commands.Compute.Automation.Models.PSRestorePointCollection