New-AzStorageBlobRangeToRestore
Creates a Blob Range object to restores a Storage account.
Syntax
Default (Default)
New-AzStorageBlobRangeToRestore
[-StartRange <String>]
[-EndRange <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The New-AzStorageBlobRangeToRestore cmdlet creates a Blob range object, which can be used in Restore-AzStorageBlobRange.
Examples
Example 1: Creates a blob range to restore
$range = New-AzStorageBlobRangeToRestore -StartRange container1/blob1 -EndRange container2/blob2
This command creates a blob range to restore, which starts at container1/blob1 (include), and ends at container2/blob2 (exclude).
Example 2: Creates a blob range which will restore from first blob in alphabetical order, to a specific blob (exclude)
$range = New-AzStorageBlobRangeToRestore -StartRange "" -EndRange container2/blob2
This command creates a blob range which will restore from first blob of alphabetical order, to a specific blob container2/blob2 (exclude)
Example 3: Creates a blob range which will restore from a specific blob (include), to the last blob in alphabetical order
$range = New-AzStorageBlobRangeToRestore -StartRange container1/blob1 -EndRange ""
This command creates a blob range which will restore from a specific blob container1/blob1 (include), to the last blob in alphabetical order.
Example 4: Creates a blob range which will restore all blobs
$range = New-AzStorageBlobRangeToRestore -StartRange "" -EndRange ""
This command creates a blob range which will restore all blobs.
Parameters
-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 |
-EndRange
Specify the blob restore End range. End range will be excluded in restore blobs. Set it as empty string to restore to the end.
Parameter properties
Type: | String |
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 |
-StartRange
Specify the blob restore start range. Start range will be included in restore blobs. Set it as empty string to restore from beginning.
Parameter properties
Type: | String |
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 |
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.