Skip to content

Commit 92eead8

Browse files
authored
[Storage] File cmdlet Track2, listblob track2 (#19573)
1 parent 19256e6 commit 92eead8

File tree

51 files changed

+1183
-425
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1183
-425
lines changed

src/Storage/Storage.Management/ChangeLog.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,26 @@
1919
-->
2020
## Upcoming Release
2121
* Replaced "Microsoft.Azure.Management.Storage" SDK reference to the generated SDK code
22+
* Migrated some Azure File dataplane cmdlets from v11 SDK to v12 SDK
23+
- `Get-AzStorageFile`
24+
- `Get-AzStorageFileCopyState`
25+
- `Get-AzStorageShare`
26+
- `Get-AzStorageShareStoredAccessPolicy`
27+
- `New-AzStorageDirectory`
28+
- `New-AzStorageFileSasToken`
29+
- `New-AzStorageShare`
30+
- `New-AzStorageShareSasToken`
31+
- `New-AzStorageShareStoredAccessPolicy`
32+
- `Remove-AzStorageDirectory`
33+
- `Remove-AzStorageFile`
34+
- `Remove-AzStorageShare`
35+
- `Remove-AzStorageShareStoredAccessPolicy`
36+
- `Set-AzStorageShareQuota`
37+
- `Set-AzStorageShareStoredAccessPolicy`
38+
- `Start-AzStorageFileCopy`
39+
- `Stop-AzStorageFileCopy`
40+
* Migrated Get/List blob to always using v12 SDK
41+
- `Get-AzStorageBlob`
2242

2343
## Version 4.9.0
2444
* Supported to create or update Storage account with Azure Files Active Directory Domain Service Kerberos Authentication

src/Storage/Storage.Management/help/Get-AzStorageBlob.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ This command uses a blob name and wildcard to get a blob.
6060

6161
### Example 2: Get blobs in a container by using the pipeline
6262
<!-- Skip: Output cannot be splitted from code -->
63+
64+
6365
```
6466
PS C:\>Get-AzStorageContainer -Name container* | Get-AzStorageBlob -IncludeDeleted
6567
@@ -108,6 +110,8 @@ The final command uses the **Echo** command to display the total.
108110

109111
### Example 5: Get all blobs in a container include blob version
110112
<!-- Skip: Output cannot be splitted from code -->
113+
114+
111115
```
112116
PS C:\>Get-AzStorageBlob -Container "containername" -IncludeVersion
113117
@@ -126,6 +130,8 @@ This command gets all blobs in a container include blob version.
126130

127131
### Example 6: Get a single blob version
128132
<!-- Skip: Output cannot be splitted from code -->
133+
134+
129135
```
130136
PS C:\> Get-AzStorageBlob -Container "containername" -Blob blob2 -VersionId "2020-07-03T16:19:16.2883167Z"
131137
@@ -140,6 +146,8 @@ This command gets a single blobs verion with VersionId.
140146

141147
### Example 7: Get a single blob snapshot
142148
<!-- Skip: Output cannot be splitted from code -->
149+
150+
143151
```
144152
PS C:\> Get-AzStorageBlob -Container "containername" -Blob blob1 -SnapshotTime "2020-07-06T06:56:06.8588431Z"
145153
@@ -154,6 +162,8 @@ This command gets a single blobs snapshot with SnapshotTime.
154162

155163
### Example 8: Get blob include blob tags
156164
<!-- Skip: Output cannot be splitted from code -->
165+
166+
157167
```
158168
PS C:\> $blobs = Get-AzStorageBlob -Container "containername" -IncludeTag
159169
@@ -178,6 +188,8 @@ This command lists blobs from a container with blob tags, and show the tags of t
178188

179189
### Example 9: Get a single blob with blob tag condition
180190
<!-- Skip: Output cannot be splitted from code -->
191+
192+
181193
```
182194
PS C:\> Get-AzStorageBlob -Container "containername" -Blob testblob -TagCondition """tag1""='value1'"
183195

src/Storage/Storage.Management/help/Get-AzStorageFileCopyState.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Get-AzStorageFileCopyState [-ShareName] <String> [-FilePath] <String> [-WaitForC
2222

2323
### File
2424
```
25-
Get-AzStorageFileCopyState [-File] <CloudFile> [-WaitForComplete] [-ServerTimeoutPerRequest <Int32>]
26-
[-ClientTimeoutPerRequest <Int32>] [-DefaultProfile <IAzureContextContainer>] [-ConcurrentTaskCount <Int32>]
27-
[<CommonParameters>]
25+
Get-AzStorageFileCopyState [-File] <CloudFile> [-WaitForComplete] [-Context <IStorageContext>]
26+
[-ServerTimeoutPerRequest <Int32>] [-ClientTimeoutPerRequest <Int32>]
27+
[-DefaultProfile <IAzureContextContainer>] [-ConcurrentTaskCount <Int32>] [<CommonParameters>]
2828
```
2929

3030
## DESCRIPTION
@@ -94,7 +94,7 @@ To obtain a context, use the [New-AzStorageContext](./New-AzStorageContext.md) c
9494
9595
```yaml
9696
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext
97-
Parameter Sets: ShareName
97+
Parameter Sets: (All)
9898
Aliases:
9999

100100
Required: False
@@ -197,7 +197,7 @@ Accept wildcard characters: False
197197
```
198198
199199
### CommonParameters
200-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
200+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
201201
202202
## INPUTS
203203

src/Storage/Storage.Management/help/Get-AzStorageShare.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Accept wildcard characters: False
194194
```
195195
196196
### CommonParameters
197-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
197+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
198198
199199
## INPUTS
200200

src/Storage/Storage.Management/help/Get-AzStorageShareStoredAccessPolicy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Accept wildcard characters: False
154154
```
155155
156156
### CommonParameters
157-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
157+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
158158
159159
## INPUTS
160160

src/Storage/Storage.Management/help/New-AzStorageDirectory.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ New-AzStorageDirectory [-ShareName] <String> [-Path] <String> [-Context <IStorag
2222

2323
### Share
2424
```
25-
New-AzStorageDirectory [-Share] <CloudFileShare> [-Path] <String> [-ServerTimeoutPerRequest <Int32>]
26-
[-ClientTimeoutPerRequest <Int32>] [-DefaultProfile <IAzureContextContainer>] [-ConcurrentTaskCount <Int32>]
27-
[<CommonParameters>]
25+
New-AzStorageDirectory [-Share] <CloudFileShare> [-Path] <String> [-Context <IStorageContext>]
26+
[-ServerTimeoutPerRequest <Int32>] [-ClientTimeoutPerRequest <Int32>]
27+
[-DefaultProfile <IAzureContextContainer>] [-ConcurrentTaskCount <Int32>] [<CommonParameters>]
2828
```
2929

3030
### Directory
3131
```
32-
New-AzStorageDirectory [-Directory] <CloudFileDirectory> [-Path] <String> [-ServerTimeoutPerRequest <Int32>]
33-
[-ClientTimeoutPerRequest <Int32>] [-DefaultProfile <IAzureContextContainer>] [-ConcurrentTaskCount <Int32>]
34-
[<CommonParameters>]
32+
New-AzStorageDirectory [-Directory] <CloudFileDirectory> [-Path] <String> [-Context <IStorageContext>]
33+
[-ServerTimeoutPerRequest <Int32>] [-ClientTimeoutPerRequest <Int32>]
34+
[-DefaultProfile <IAzureContextContainer>] [-ConcurrentTaskCount <Int32>] [<CommonParameters>]
3535
```
3636

3737
## DESCRIPTION
@@ -99,7 +99,7 @@ To obtain a storage context, use the [New-AzStorageContext](./New-AzStorageConte
9999
100100
```yaml
101101
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext
102-
Parameter Sets: ShareName
102+
Parameter Sets: (All)
103103
Aliases:
104104

105105
Required: False
@@ -209,7 +209,7 @@ Accept wildcard characters: False
209209
```
210210
211211
### CommonParameters
212-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
212+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
213213
214214
## INPUTS
215215

src/Storage/Storage.Management/help/New-AzStorageFileSASToken.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Accept wildcard characters: False
262262
```
263263
264264
### CommonParameters
265-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
265+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
266266
267267
## INPUTS
268268

src/Storage/Storage.Management/help/New-AzStorageShare.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Accept wildcard characters: False
132132
```
133133
134134
### CommonParameters
135-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
135+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
136136
137137
## INPUTS
138138

src/Storage/Storage.Management/help/New-AzStorageShareSASToken.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ Accept wildcard characters: False
216216
```
217217
218218
### CommonParameters
219-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
219+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
220220
221221
## INPUTS
222222

src/Storage/Storage.Management/help/New-AzStorageShareStoredAccessPolicy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Accept wildcard characters: False
193193
```
194194
195195
### CommonParameters
196-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
196+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
197197
198198
## INPUTS
199199

0 commit comments

Comments
 (0)