@@ -14,23 +14,23 @@ Copy a blob synchronously.
14
14
15
15
### ContainerName (Default)
16
16
```
17
- Copy-AzStorageBlob [-DestBlobType <String>] [-SrcBlob] <String> -SrcContainer <String> -DestContainer <String>
18
- [-DestBlob <String>] [-StandardBlobTier <String >] [-RehydratePriority <RehydratePriority >]
19
- [-EncryptionScope <String>] [- Context <IStorageContext>] [-DestContext <IStorageContext>] [-Force] [-AsJob]
17
+ Copy-AzStorageBlob [-SrcBlob] <String> -SrcContainer <String> -DestContainer <String> [-DestBlob <String>]
18
+ [-StandardBlobTier <String>] [-RehydratePriority <RehydratePriority >] [-EncryptionScope <String >]
19
+ [-Context <IStorageContext>] [-DestContext <IStorageContext>] [-Force] [-AsJob]
20
20
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
21
21
```
22
22
23
23
### BlobInstance
24
24
```
25
- Copy-AzStorageBlob [-BlobBaseClient <BlobBaseClient>] [-DestBlobType <String>] -DestContainer <String>
26
- [-DestBlob <String>] [-StandardBlobTier <String >] [-RehydratePriority <RehydratePriority >]
27
- [-EncryptionScope <String>] [- Context <IStorageContext>] [-DestContext <IStorageContext>] [-Force] [-AsJob]
25
+ Copy-AzStorageBlob [-BlobBaseClient <BlobBaseClient>] -DestContainer <String> [-DestBlob <String>]
26
+ [-StandardBlobTier <String>] [-RehydratePriority <RehydratePriority >] [-EncryptionScope <String >]
27
+ [-Context <IStorageContext>] [-DestContext <IStorageContext>] [-Force] [-AsJob]
28
28
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
29
29
```
30
30
31
31
### UriPipeline
32
32
```
33
- Copy-AzStorageBlob [-DestBlobType <String>] -AbsoluteUri <String> -DestContainer <String> -DestBlob <String>
33
+ Copy-AzStorageBlob -AbsoluteUri <String> -DestContainer <String> -DestBlob <String>
34
34
[-StandardBlobTier <String>] [-RehydratePriority <RehydratePriority>] [-EncryptionScope <String>]
35
35
[-Context <IStorageContext>] [-DestContext <IStorageContext>] [-Force] [-AsJob]
36
36
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
@@ -43,23 +43,23 @@ The **Copy-AzStorageBlob** cmdlet copies a blob synchronously, currently only su
43
43
44
44
### Example 1: Copy a named blob to another
45
45
```
46
- C:\PS> $destBlob = Copy-AzStorageBlob -SrcContainer "sourcecontainername" -SrcBlob "srcblobname" -DestContainer "destcontainername" -DestBlob "destblobname"
46
+ C:\PS> $destBlob = Copy-AzStorageBlob -SrcContainer "sourcecontainername" -SrcBlob "srcblobname" -DestContainer "destcontainername" -DestBlob "destblobname"
47
47
```
48
48
49
49
This command copies a blob from source container to the destination container with a new blob name.
50
50
51
51
### Example 2: Copy blob from a blob object
52
52
```
53
53
C:\PS> $srcBlob = Get-AzStorageBlob -Container $containerName -Blob $blobName -Context $ctx
54
- C:\PS> $destBlob = $srcBlob | Copy-AzStorageBlob -DestContainer "destcontainername" -DestBlob "destblobname"
54
+ C:\PS> $destBlob = $srcBlob | Copy-AzStorageBlob -DestContainer "destcontainername" -DestBlob "destblobname"
55
55
```
56
56
57
57
This command copies a blob from source blob object to the destination container with a new blob name.
58
58
59
59
### Example 3: Copy blob from a blob Uri
60
60
```
61
61
C:\PS> $srcBlobUri = New-AzStorageBlobSASToken -Container $srcContainerName -Blob $srcBlobName -Permission rt -ExpiryTime (Get-Date).AddDays(7) -FullUri
62
- C:\PS> $destBlob = Copy-AzStorageBlob -AbsoluteUri $srcBlobUri -DestContainer "destcontainername" -DestBlob "destblobname"
62
+ C:\PS> $destBlob = Copy-AzStorageBlob -AbsoluteUri $srcBlobUri -DestContainer "destcontainername" -DestBlob "destblobname"
63
63
```
64
64
65
65
The first command creates a blob Uri of the source blob, with sas token of permission "rt". The second command copies from source blob Uri to the destination blob.
@@ -187,22 +187,6 @@ Accept pipeline input: False
187
187
Accept wildcard characters : False
188
188
` ` `
189
189
190
- ### -DestBlobType
191
- Destiantion Blob Type('Block', 'Page', 'Append'), by default will be same as source.
192
-
193
- ` ` ` yaml
194
- Type : System.String
195
- Parameter Sets : (All)
196
- Aliases :
197
- Accepted values : Block, Page, Append
198
-
199
- Required : False
200
- Position : Named
201
- Default value : None
202
- Accept pipeline input : False
203
- Accept wildcard characters : False
204
- ` ` `
205
-
206
190
### -DestContainer
207
191
Destination container name
208
192
0 commit comments