Skip to content

Commit 21cd197

Browse files
Move Storage to main
1 parent d7338d0 commit 21cd197

File tree

174 files changed

+3191
-919
lines changed

Some content is hidden

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

174 files changed

+3191
-919
lines changed

src/Storage/Storage.Autorest/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ nested-object-to-string: true
4444
identity-correction-for-post: true
4545

4646
directive:
47+
- remove-operation: StorageAccounts_Update
4748
- where:
4849
subject: ^StorageAccountCustomerInitiatedMigration$
4950
set:

src/Storage/Storage.Autorest/build-module.ps1

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
1313
# is regenerated.
1414
# ----------------------------------------------------------------------------------
15-
param([switch]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX)
15+
param([switch]$NotIsolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs, [switch]$UX, [Switch]$DisableAfterBuildTasks)
1616
$ErrorActionPreference = 'Stop'
1717

1818
if($PSEdition -ne 'Core') {
@@ -177,4 +177,14 @@ if (Test-Path (Join-Path $PSScriptRoot 'generate-portal-ux.ps1'))
177177
. (Join-Path $PSScriptRoot 'generate-portal-ux.ps1')
178178
}
179179

180+
if (-not $DisableAfterBuildTasks){
181+
$afterBuildTasksPath = Join-Path $PSScriptRoot ''
182+
$afterBuildTasksArgs = ConvertFrom-Json 'true' -AsHashtable
183+
if(Test-Path -Path $afterBuildTasksPath -PathType leaf){
184+
Write-Host -ForegroundColor Green 'Running after build tasks...'
185+
. $afterBuildTasksPath @afterBuildTasksArgs
186+
}
187+
}
188+
189+
180190
Write-Host -ForegroundColor Green '-------------Done-------------'

src/Storage/Storage.Autorest/generated/api/Storage.cs

Lines changed: 40 additions & 478 deletions
Large diffs are not rendered by default.

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 9/5/2024
6+
# Generated on: 9/15/2024
77
#
88

99
@{
@@ -62,6 +62,7 @@ RequiredAssemblies = 'Azure.Data.Tables.dll', 'Azure.Storage.Blobs.dll',
6262
'Microsoft.Azure.Cosmos.Table.dll',
6363
'Microsoft.Azure.DocumentDB.Core.dll',
6464
'Microsoft.Azure.KeyVault.Core.dll',
65+
'Microsoft.Azure.PowerShell.Storage.Common.dll',
6566
'Microsoft.Azure.PowerShell.Storage.Management.Sdk.dll',
6667
'Microsoft.Azure.Storage.Blob.dll',
6768
'Microsoft.Azure.Storage.Common.dll',
@@ -70,17 +71,16 @@ RequiredAssemblies = 'Azure.Data.Tables.dll', 'Azure.Storage.Blobs.dll',
7071
'Microsoft.Azure.Storage.Queue.dll', 'Microsoft.OData.Core.dll',
7172
'Microsoft.OData.Edm.dll', 'Microsoft.Spatial.dll',
7273
'Storage.Autorest/bin/Az.Storage.private.dll',
73-
'System.IO.Hashing.dll',
74-
'Microsoft.Azure.PowerShell.Storage.Common.dll'
74+
'System.IO.Hashing.dll'
7575

7676
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
77-
# ScriptsToProcess = @()
77+
ScriptsToProcess = @()
7878

7979
# Type files (.ps1xml) to be loaded when importing this module
80-
# TypesToProcess = @()
80+
TypesToProcess = @()
8181

8282
# Format files (.ps1xml) to be loaded when importing this module
83-
FormatsToProcess = 'Storage.Autorest\Az.Storage.format.ps1xml',
83+
FormatsToProcess = 'Storage.Autorest/Az.Storage.format.ps1xml',
8484
'Storage.format.ps1xml', 'Storage.generated.format.ps1xml',
8585
'Storage.Management.format.ps1xml'
8686

@@ -231,7 +231,7 @@ PrivateData = @{
231231
PSData = @{
232232

233233
# Tags applied to this module. These help with module discovery in online galleries.
234-
Tags = 'Azure','ResourceManager','ARM','Storage','StorageAccount'
234+
Tags = 'Azure', 'ResourceManager', 'ARM', 'Storage', 'StorageAccount'
235235

236236
# A URL to the license for this module.
237237
LicenseUri = 'https://aka.ms/azps-license'
@@ -257,7 +257,7 @@ PrivateData = @{
257257

258258
} # End of PSData hashtable
259259

260-
} # End of PrivateData hashtable
260+
} # End of PrivateData hashtable
261261

262262
# HelpInfo URI of this module
263263
# HelpInfoURI = ''

src/Storage/Storage.Management/help/Add-AzRmStorageContainerLegalHold.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ Adds legal hold tags to a Storage blob container
1616
```
1717
Add-AzRmStorageContainerLegalHold [-ResourceGroupName] <String> [-StorageAccountName] <String> -Name <String>
1818
-Tag <String[]> [-AllowProtectedAppendWriteAll <Boolean>] [-DefaultProfile <IAzureContextContainer>]
19-
[-WhatIf] [-Confirm] [<CommonParameters>]
19+
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
2020
```
2121

2222
### AccountObject
2323
```
2424
Add-AzRmStorageContainerLegalHold -Name <String> -StorageAccount <PSStorageAccount> -Tag <String[]>
2525
[-AllowProtectedAppendWriteAll <Boolean>] [-DefaultProfile <IAzureContextContainer>]
26-
[-WhatIf] [-Confirm] [<CommonParameters>]
26+
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
2727
```
2828

2929
### ContainerObject
3030
```
3131
Add-AzRmStorageContainerLegalHold -Container <PSContainer> -Tag <String[]>
3232
[-AllowProtectedAppendWriteAll <Boolean>] [-DefaultProfile <IAzureContextContainer>]
33-
[-WhatIf] [-Confirm] [<CommonParameters>]
33+
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
3434
```
3535

3636
## DESCRIPTION
@@ -123,6 +123,21 @@ Accept pipeline input: True (ByPropertyName, ByValue)
123123
Accept wildcard characters: False
124124
```
125125
126+
### -ProgressAction
127+
{{ Fill ProgressAction Description }}
128+
129+
```yaml
130+
Type: System.Management.Automation.ActionPreference
131+
Parameter Sets: (All)
132+
Aliases: proga
133+
134+
Required: False
135+
Position: Named
136+
Default value: None
137+
Accept pipeline input: False
138+
Accept wildcard characters: False
139+
```
140+
126141
### -ResourceGroupName
127142
Resource Group Name.
128143

src/Storage/Storage.Management/help/Add-AzStorageAccountManagementPolicyAction.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,35 +16,35 @@ Adds an action to the input ManagementPolicy Action Group object, or creates a M
1616
```
1717
Add-AzStorageAccountManagementPolicyAction -BaseBlobAction <String> -DaysAfterModificationGreaterThan <Int32>
1818
[-DaysAfterLastTierChangeGreaterThan <Int32>] [-InputObject <PSManagementPolicyActionGroup>]
19-
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
19+
[-DefaultProfile <IAzureContextContainer>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
2020
```
2121

2222
### BaseBlobLastAccessTime
2323
```
2424
Add-AzStorageAccountManagementPolicyAction -BaseBlobAction <String> -DaysAfterLastAccessTimeGreaterThan <Int32>
2525
[-EnableAutoTierToHotFromCool] [-InputObject <PSManagementPolicyActionGroup>]
26-
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
26+
[-DefaultProfile <IAzureContextContainer>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
2727
```
2828

2929
### BaseBlobCreationTime
3030
```
3131
Add-AzStorageAccountManagementPolicyAction -BaseBlobAction <String> -DaysAfterCreationGreaterThan <Int32>
3232
[-InputObject <PSManagementPolicyActionGroup>] [-DefaultProfile <IAzureContextContainer>]
33-
[<CommonParameters>]
33+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
3434
```
3535

3636
### Snapshot
3737
```
3838
Add-AzStorageAccountManagementPolicyAction -SnapshotAction <String> -DaysAfterCreationGreaterThan <Int32>
3939
[-DaysAfterLastTierChangeGreaterThan <Int32>] [-InputObject <PSManagementPolicyActionGroup>]
40-
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
40+
[-DefaultProfile <IAzureContextContainer>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
4141
```
4242

4343
### BlobVersion
4444
```
4545
Add-AzStorageAccountManagementPolicyAction -BlobVersionAction <String> -DaysAfterCreationGreaterThan <Int32>
4646
[-DaysAfterLastTierChangeGreaterThan <Int32>] [-InputObject <PSManagementPolicyActionGroup>]
47-
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
47+
[-DefaultProfile <IAzureContextContainer>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
4848
```
4949

5050
## DESCRIPTION
@@ -292,6 +292,21 @@ Accept pipeline input: True (ByValue)
292292
Accept wildcard characters: False
293293
```
294294
295+
### -ProgressAction
296+
{{ Fill ProgressAction Description }}
297+
298+
```yaml
299+
Type: System.Management.Automation.ActionPreference
300+
Parameter Sets: (All)
301+
Aliases: proga
302+
303+
Required: False
304+
Position: Named
305+
Default value: None
306+
Accept pipeline input: False
307+
Accept wildcard characters: False
308+
```
309+
295310
### -SnapshotAction
296311
The management policy action for snapshot.
297312

src/Storage/Storage.Management/help/Add-AzStorageAccountNetworkRule.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,41 +16,41 @@ schema: 2.0.0
1616
```
1717
Add-AzStorageAccountNetworkRule [-ResourceGroupName] <String> [-Name] <String>
1818
-VirtualNetworkResourceId <String[]> [-AsJob] [-DefaultProfile <IAzureContextContainer>]
19-
[-WhatIf] [-Confirm] [<CommonParameters>]
19+
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
2020
```
2121

2222
### IpRuleObject
2323
```
2424
Add-AzStorageAccountNetworkRule [-ResourceGroupName] <String> [-Name] <String> -IPRule <PSIpRule[]> [-AsJob]
25-
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
25+
[-DefaultProfile <IAzureContextContainer>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm]
2626
[<CommonParameters>]
2727
```
2828

2929
### NetworkRuleObject
3030
```
3131
Add-AzStorageAccountNetworkRule [-ResourceGroupName] <String> [-Name] <String>
3232
-VirtualNetworkRule <PSVirtualNetworkRule[]> [-AsJob] [-DefaultProfile <IAzureContextContainer>]
33-
[-WhatIf] [-Confirm] [<CommonParameters>]
33+
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
3434
```
3535

3636
### ResourceAccessRuleObject
3737
```
3838
Add-AzStorageAccountNetworkRule [-ResourceGroupName] <String> [-Name] <String>
3939
-ResourceAccessRule <PSResourceAccessRule[]> [-AsJob] [-DefaultProfile <IAzureContextContainer>]
40-
[-WhatIf] [-Confirm] [<CommonParameters>]
40+
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
4141
```
4242

4343
### IpRuleString
4444
```
4545
Add-AzStorageAccountNetworkRule [-ResourceGroupName] <String> [-Name] <String> -IPAddressOrRange <String[]>
46-
[-AsJob] [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
46+
[-AsJob] [-DefaultProfile <IAzureContextContainer>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm]
4747
[<CommonParameters>]
4848
```
4949

5050
### ResourceAccessRuleString
5151
```
5252
Add-AzStorageAccountNetworkRule [-ResourceGroupName] <String> [-Name] <String> -TenantId <String>
53-
-ResourceId <String> [-AsJob] [-DefaultProfile <IAzureContextContainer>]
53+
-ResourceId <String> [-AsJob] [-DefaultProfile <IAzureContextContainer>] [-ProgressAction <ActionPreference>]
5454
[-WhatIf] [-Confirm] [<CommonParameters>]
5555
```
5656

@@ -180,6 +180,21 @@ Accept pipeline input: True (ByPropertyName)
180180
Accept wildcard characters: False
181181
```
182182
183+
### -ProgressAction
184+
{{ Fill ProgressAction Description }}
185+
186+
```yaml
187+
Type: System.Management.Automation.ActionPreference
188+
Parameter Sets: (All)
189+
Aliases: proga
190+
191+
Required: False
192+
Position: Named
193+
Default value: None
194+
Accept pipeline input: False
195+
Accept wildcard characters: False
196+
```
197+
183198
### -ResourceAccessRule
184199
Storage Account NetworkRule ResourceAccessRules.
185200

src/Storage/Storage.Management/help/Close-AzStorageFileHandle.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,30 @@ Closes file handles of a file share, a file directory or a file.
1717
Close-AzStorageFileHandle [-ShareName] <String> [[-Path] <String>] [-Recursive] [-CloseAll]
1818
[-Context <IStorageContext>] [-DisAllowTrailingDot] [-PassThru] [-AsJob] [-ServerTimeoutPerRequest <Int32>]
1919
[-ClientTimeoutPerRequest <Int32>] [-DefaultProfile <IAzureContextContainer>] [-ConcurrentTaskCount <Int32>]
20-
[-WhatIf] [-Confirm] [<CommonParameters>]
20+
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
2121
```
2222

2323
### ShareNameCloseSingle
2424
```
2525
Close-AzStorageFileHandle [-ShareName] <String> -FileHandle <PSFileHandle> [-Context <IStorageContext>]
2626
[-DisAllowTrailingDot] [-PassThru] [-AsJob] [-ServerTimeoutPerRequest <Int32>]
2727
[-ClientTimeoutPerRequest <Int32>] [-DefaultProfile <IAzureContextContainer>] [-ConcurrentTaskCount <Int32>]
28-
[-WhatIf] [-Confirm] [<CommonParameters>]
28+
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
2929
```
3030

3131
### ShareCloseAll
3232
```
3333
Close-AzStorageFileHandle [-Share] <CloudFileShare> [-ShareClient <ShareClient>] [[-Path] <String>]
3434
[-Recursive] [-CloseAll] [-PassThru] [-AsJob] [-ServerTimeoutPerRequest <Int32>]
3535
[-ClientTimeoutPerRequest <Int32>] [-DefaultProfile <IAzureContextContainer>] [-ConcurrentTaskCount <Int32>]
36-
[-WhatIf] [-Confirm] [<CommonParameters>]
36+
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
3737
```
3838

3939
### ShareCloseSingle
4040
```
4141
Close-AzStorageFileHandle [-Share] <CloudFileShare> [-ShareClient <ShareClient>] -FileHandle <PSFileHandle>
4242
[-PassThru] [-AsJob] [-ServerTimeoutPerRequest <Int32>] [-ClientTimeoutPerRequest <Int32>]
43-
[-DefaultProfile <IAzureContextContainer>] [-ConcurrentTaskCount <Int32>]
43+
[-DefaultProfile <IAzureContextContainer>] [-ConcurrentTaskCount <Int32>] [-ProgressAction <ActionPreference>]
4444
[-WhatIf] [-Confirm] [<CommonParameters>]
4545
```
4646

@@ -49,14 +49,14 @@ Close-AzStorageFileHandle [-Share] <CloudFileShare> [-ShareClient <ShareClient>]
4949
Close-AzStorageFileHandle [-Directory] <CloudFileDirectory> [-ShareDirectoryClient <ShareDirectoryClient>]
5050
[[-Path] <String>] [-Recursive] [-CloseAll] [-PassThru] [-AsJob] [-ServerTimeoutPerRequest <Int32>]
5151
[-ClientTimeoutPerRequest <Int32>] [-DefaultProfile <IAzureContextContainer>] [-ConcurrentTaskCount <Int32>]
52-
[-WhatIf] [-Confirm] [<CommonParameters>]
52+
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
5353
```
5454

5555
### FileCloseAll
5656
```
5757
Close-AzStorageFileHandle [-File] <CloudFile> [-ShareFileClient <ShareFileClient>] [-CloseAll] [-PassThru]
5858
[-AsJob] [-ServerTimeoutPerRequest <Int32>] [-ClientTimeoutPerRequest <Int32>]
59-
[-DefaultProfile <IAzureContextContainer>] [-ConcurrentTaskCount <Int32>]
59+
[-DefaultProfile <IAzureContextContainer>] [-ConcurrentTaskCount <Int32>] [-ProgressAction <ActionPreference>]
6060
[-WhatIf] [-Confirm] [<CommonParameters>]
6161
```
6262

@@ -280,6 +280,21 @@ Accept pipeline input: False
280280
Accept wildcard characters: False
281281
```
282282
283+
### -ProgressAction
284+
{{ Fill ProgressAction Description }}
285+
286+
```yaml
287+
Type: System.Management.Automation.ActionPreference
288+
Parameter Sets: (All)
289+
Aliases: proga
290+
291+
Required: False
292+
Position: Named
293+
Default value: None
294+
Accept pipeline input: False
295+
Accept wildcard characters: False
296+
```
297+
283298
### -Recursive
284299
List handles Recursively.
285300
Only works on File Directory.

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

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Copy a blob synchronously.
1717
Copy-AzStorageBlob [-SrcBlob] <String> -SrcContainer <String> -DestContainer <String> [-DestBlob <String>]
1818
[-DestBlobType <String>] [-StandardBlobTier <String>] [-RehydratePriority <RehydratePriority>]
1919
[-EncryptionScope <String>] [-Context <IStorageContext>] [-DestContext <IStorageContext>] [-Force] [-AsJob]
20-
[-TagCondition <String>] [-DefaultProfile <IAzureContextContainer>]
20+
[-TagCondition <String>] [-DefaultProfile <IAzureContextContainer>] [-ProgressAction <ActionPreference>]
2121
[-WhatIf] [-Confirm] [<CommonParameters>]
2222
```
2323

@@ -26,7 +26,7 @@ Copy-AzStorageBlob [-SrcBlob] <String> -SrcContainer <String> -DestContainer <St
2626
Copy-AzStorageBlob [-BlobBaseClient <BlobBaseClient>] -DestContainer <String> [-DestBlob <String>]
2727
[-DestBlobType <String>] [-StandardBlobTier <String>] [-RehydratePriority <RehydratePriority>]
2828
[-EncryptionScope <String>] [-Context <IStorageContext>] [-DestContext <IStorageContext>] [-Force] [-AsJob]
29-
[-TagCondition <String>] [-DefaultProfile <IAzureContextContainer>]
29+
[-TagCondition <String>] [-DefaultProfile <IAzureContextContainer>] [-ProgressAction <ActionPreference>]
3030
[-WhatIf] [-Confirm] [<CommonParameters>]
3131
```
3232

@@ -35,7 +35,7 @@ Copy-AzStorageBlob [-BlobBaseClient <BlobBaseClient>] -DestContainer <String> [-
3535
Copy-AzStorageBlob -AbsoluteUri <String> -DestContainer <String> -DestBlob <String> [-DestBlobType <String>]
3636
[-StandardBlobTier <String>] [-RehydratePriority <RehydratePriority>] [-EncryptionScope <String>]
3737
[-Context <IStorageContext>] [-DestContext <IStorageContext>] [-Force] [-AsJob] [-TagCondition <String>]
38-
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
38+
[-DefaultProfile <IAzureContextContainer>] [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm]
3939
[<CommonParameters>]
4040
```
4141

@@ -272,6 +272,21 @@ Accept pipeline input: False
272272
Accept wildcard characters: False
273273
```
274274
275+
### -ProgressAction
276+
{{ Fill ProgressAction Description }}
277+
278+
```yaml
279+
Type: System.Management.Automation.ActionPreference
280+
Parameter Sets: (All)
281+
Aliases: proga
282+
283+
Required: False
284+
Position: Named
285+
Default value: None
286+
Accept pipeline input: False
287+
Accept wildcard characters: False
288+
```
289+
275290
### -RehydratePriority
276291
Block Blob RehydratePriority.
277292
Indicates the priority with which to rehydrate an archived blob.

0 commit comments

Comments
 (0)