你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzStorageBlobRangeToRestore
Creates a Blob Range object to restores a Storage account.
Syntax
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.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EndRange
Specify the blob restore End range. End range will be excluded in restore blobs. Set it as empty strng to restore to the end.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StartRange
Specify the blob restore start range. Start range will be included in restore blobs. Set it as empty string to restore from begining.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None