Skip to content

Commit eed9043

Browse files
authored
Merge pull request Azure#9447 from wastoresh/filehandle_nocontoken
[Storage] Support list/close File handles
2 parents 9989b56 + cb6f5e7 commit eed9043

File tree

57 files changed

+1479
-128
lines changed

Some content is hidden

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

57 files changed

+1479
-128
lines changed

src/Storage/Storage.Management/Az.Storage.psd1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ CmdletsToExport = 'Get-AzStorageAccount', 'Get-AzStorageAccountKey',
154154
'Update-AzStorageBlobServiceProperty',
155155
'Get-AzStorageBlobServiceProperty',
156156
'Enable-AzStorageBlobDeleteRetentionPolicy',
157-
'Disable-AzStorageBlobDeleteRetentionPolicy'
157+
'Disable-AzStorageBlobDeleteRetentionPolicy',
158+
'Get-AzStorageFileHandle','Close-AzStorageFileHandle'
158159

159160
# Variables to export from this module
160161
# VariablesToExport = @()

src/Storage/Storage.Management/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
* Change 2 parameters "-IndexDocument" and "-ErrorDocument404Path" from required to optional in cmdlet:
2222
- Enable-AzStorageStaticWebsite
2323
* Show more error information when cmdlet failed with StorageException
24+
* Support list or close file handles of a file share, file directory or a file
25+
- Get-AzStorageFileHandle
26+
- Close-AzStorageFileHandle
2427

2528
## Version 1.4.0
2629
* Support Kind FileStorage and SkuName Premium_ZRS when create Storage account

src/Storage/Storage.Management/Storage.Management.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
</PropertyGroup>
1616
<ItemGroup>
1717
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="11.0.0" />
18-
<PackageReference Include="Microsoft.Azure.Storage.Blob" Version="10.0.1" />
19-
<PackageReference Include="Microsoft.Azure.Storage.File" Version="10.0.1" />
20-
<PackageReference Include="Microsoft.Azure.Storage.Queue" Version="10.0.1" />
18+
<PackageReference Include="Microsoft.Azure.Storage.Blob" Version="10.0.3" />
19+
<PackageReference Include="Microsoft.Azure.Storage.File" Version="10.0.3" />
20+
<PackageReference Include="Microsoft.Azure.Storage.Queue" Version="10.0.3" />
2121
</ItemGroup>
2222
<ItemGroup>
2323
<Compile Include="$(StorageToolsPath)Adapters\ARM.Storage.6\ARMStorageProvider.cs" Link="Common\ARMStorageProvider.cs" />

src/Storage/Storage.Management/help/Az.Storage.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Adds an action to the input ManagementPolicy Action Group object, or creates a M
2020
### [Add-AzStorageAccountNetworkRule](Add-AzStorageAccountNetworkRule.md)
2121
Add IpRules or VirtualNetworkRules to the NetworkRule property of a Storage account
2222

23+
### [Close-AzStorageFileHandle](Close-AzStorageFileHandle.md)
24+
Closes file handles of a file share, a file directory or a file.
25+
2326
### [Disable-AzStorageBlobDeleteRetentionPolicy](Disable-AzStorageBlobDeleteRetentionPolicy.md)
2427
Disable delete retention policy for the Azure Storage Blob service.
2528

@@ -89,6 +92,9 @@ Downloads the contents of a file.
8992
### [Get-AzStorageFileCopyState](Get-AzStorageFileCopyState.md)
9093
Gets the state of a copy operation.
9194

95+
### [Get-AzStorageFileHandle](Get-AzStorageFileHandle.md)
96+
Lists file handles of a file share, a file directory or a file.
97+
9298
### [Get-AzStorageQueue](Get-AzStorageQueue.md)
9399
Lists storage queues.
94100

0 commit comments

Comments
 (0)