Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/Storage/Storage.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Storage")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("9.0.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("9.0.0")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("9.1.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("9.1.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]

27 changes: 16 additions & 11 deletions src/Storage/Storage.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,22 @@ For information on how to develop for `Az.Storage`, see [how-to.md](how-to.md).

``` yaml
# Please specify the commit id that includes your features to make sure generated codes stable.
commit: 2219e4e4e0409bcb88a2b82e8febe1a3baecaf18
commit: 04b87408ba3b8afed159b3d3059bd1594c7f2dd3
require:
# readme.azure.noprofile.md is the common configuration file
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- $(repo)/specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/storage.json
- $(repo)/specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/file.json
- $(repo)/specification/storage/resource-manager/Microsoft.Storage/stable/2024-01-01/storageTaskAssignments.json
- $(repo)/specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/storage.json
- $(repo)/specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/file.json
- $(repo)/specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/storageTaskAssignments.json

# For new RP, the version is 0.1.0
module-version: 5.9.1
# Normally, title is the service name
title: Storage
subject-prefix: $(service-name)
nested-object-to-string: true
identity-correction-for-post: true

# Pin to an old version to workaround a regression issue of generator. link to the issue - blabla
use-extension:
"@autorest/powershell": "4.0.734"

identity-correction-for-post: true

directive:
- where:
Expand Down Expand Up @@ -77,6 +72,12 @@ directive:
parameter-name: StorageAccountMigrationDetailTargetSkuName
set:
parameter-name: TargetSku
- where:
verb: Get
subject: ^StorageTaskAssignment$
parameter-name: Top
set:
alias: Maxpagesize
- where:
subject: ^FileServiceUsage$
parameter-name: AccountName
Expand Down Expand Up @@ -111,7 +112,7 @@ directive:
set:
property-name: StorageAccountLimitMaxProvisionedIops
- where:
subject: ^StorageAccount$|^StorageAccountKey$|^StorageAccountProperty$|^StorageAccountSas$|^StorageAccountServiceSas$|BlobInventoryPolicy$|^DeletedAccount$|^EncryptionScope$|^LocalUser$|^LocalUserKey$|^ManagementPolicy$|^ObjectReplicationPolicy$|^Sku$|^Usage$|^LocalUserPassword$|^AccountUserDelegationKey$|^AbortStorageAccountHierarchicalNamespaceMigration$|^HierarchicalStorageAccountNamespaceMigration$|^StorageAccountBlobRange$|^StorageAccountUserDelegationKey$|^StorageAccountNameAvailability$|^FileShare$|^FileServiceProperty$|^FileService$
subject: ^StorageAccount$|^StorageAccountKey$|^StorageAccountProperty$|^StorageAccountSas$|^StorageAccountServiceSas$|BlobInventoryPolicy$|^DeletedAccount$|^EncryptionScope$|^LocalUser$|^LocalUserKey$|^ManagementPolicy$|^ObjectReplicationPolicy$|^Usage$|^LocalUserPassword$|^AccountUserDelegationKey$|^AbortStorageAccountHierarchicalNamespaceMigration$|^HierarchicalStorageAccountNamespaceMigration$|^StorageAccountBlobRange$|^StorageAccountUserDelegationKey$|^StorageAccountNameAvailability$|^FileShare$|^FileServiceProperty$|^FileService$
remove: true
- where:
parameter-name: ParameterEndBy
Expand Down Expand Up @@ -170,4 +171,8 @@ directive:
model-name: StorageTaskReportInstance
set:
suppress-format: true
- where:
model-name: ^SkuInformation$
set:
suppress-format: true
```
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "storageAccounts/accountMigrations",
"apiVersion": "2024-01-01",
"apiVersion": "2025-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.storage"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "storageAccounts/fileServices/usages",
"apiVersion": "2024-01-01",
"apiVersion": "2025-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.storage"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "storageAccounts/storageTaskAssignments",
"apiVersion": "2024-01-01",
"apiVersion": "2025-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.storage"
},
Expand Down
7 changes: 5 additions & 2 deletions src/Storage/Storage.Autorest/docs/Az.Storage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.Storage
Module Guid: f586bd97-8cde-45be-883a-cf5716cc062d
Module Guid: 4deee175-f94f-4dfd-80d5-fd7c43018494
Download Help Link: https://learn.microsoft.com/powershell/module/az.storage
Help Version: 1.0.0.0
Locale: en-US
Expand All @@ -17,6 +17,9 @@ Gets the status of the ongoing migration for the specified storage account.
### [Get-AzStorageFileServiceUsage](Get-AzStorageFileServiceUsage.md)
Gets the usage of file service in storage account including account limits, file share limits and constants used in recommendations and bursting formula.

### [Get-AzStorageSku](Get-AzStorageSku.md)
Lists the available SKUs supported by Microsoft.Storage for given subscription.

### [Get-AzStorageTaskAssignment](Get-AzStorageTaskAssignment.md)
Get the storage task assignment properties

Expand All @@ -37,5 +40,5 @@ The migration updates the non-zonal redundant storage account to a zonal redunda
Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region.

### [Update-AzStorageTaskAssignment](Update-AzStorageTaskAssignment.md)
update storage task assignment properties
Update storage task assignment properties

102 changes: 102 additions & 0 deletions src/Storage/Storage.Autorest/docs/Get-AzStorageSku.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
---
external help file:
Module Name: Az.Storage
online version: https://learn.microsoft.com/powershell/module/az.storage/get-azstoragesku
schema: 2.0.0
---

# Get-AzStorageSku

## SYNOPSIS
Lists the available SKUs supported by Microsoft.Storage for given subscription.

## SYNTAX

```
Get-AzStorageSku [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>] [<CommonParameters>]
```

## DESCRIPTION
Lists the available SKUs supported by Microsoft.Storage for given subscription.

## EXAMPLES

### Example 1: List SKUs under a subscription
```powershell
Get-AzStorageSku -SubscriptionId $mysubid
```

```output
Capability : {{
"name": "supportsAccountHnsOnMigration",
"value": "true"
}, {
"name": "supportsaccountvlw",
"value": "true"
}, {
"name": "supportsadlsgen2snapshot",
"value": "true"
}, {
"name": "supportsadlsgen2staticwebsite",
"value": "true"
}…}
Kind : StorageV2
Location : {westus2}
LocationInfo : {{
"location": "westus2",
"zones": [ ]
}}
Name : Standard_ZRS
ResourceType : storageAccounts
Restriction : {}
Tier : Standard
```

This command lists all SKUs under a specified subscription.

## PARAMETERS

### -DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

```yaml
Type: System.Management.Automation.PSObject
Parameter Sets: (All)
Aliases: AzureRMContext, AzureCredential

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -SubscriptionId
The ID of the target subscription.

```yaml
Type: System.String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: (Get-AzContext).Subscription.Id
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters
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).

## INPUTS

## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.Storage.Models.ISkuInformation

## NOTES

## RELATED LINKS

32 changes: 16 additions & 16 deletions src/Storage/Storage.Autorest/docs/Get-AzStorageTaskAssignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Get the storage task assignment properties
### List (Default)
```
Get-AzStorageTaskAssignment -AccountName <String> -ResourceGroupName <String> [-SubscriptionId <String[]>]
[-Maxpagesize <Int32>] [-DefaultProfile <PSObject>] [<CommonParameters>]
[-Top <Int32>] [-DefaultProfile <PSObject>] [<CommonParameters>]
```

### Get
Expand Down Expand Up @@ -145,21 +145,6 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```

### -Maxpagesize
Optional, specifies the maximum number of storage task assignment Ids to be included in the list response.

```yaml
Type: System.Int32
Parameter Sets: List
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Name
The name of the storage task assignment within the specified resource group.
Storage task assignment names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
Expand Down Expand Up @@ -222,6 +207,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```

### -Top
Optional, specifies the maximum number of storage task assignment Ids to be included in the list response.

```yaml
Type: System.Int32
Parameter Sets: List
Aliases: Maxpagesize

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters
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).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ schema: 2.0.0
# Update-AzStorageTaskAssignment

## SYNOPSIS
update storage task assignment properties
Update storage task assignment properties

## SYNTAX

Expand Down Expand Up @@ -40,7 +40,7 @@ Update-AzStorageTaskAssignment -Name <String> -StorageAccountInputObject <IStora
```

## DESCRIPTION
update storage task assignment properties
Update storage task assignment properties

## EXAMPLES

Expand Down
34 changes: 34 additions & 0 deletions src/Storage/Storage.Autorest/examples/Get-AzStorageSku.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
### Example 1: List SKUs under a subscription
```powershell
Get-AzStorageSku -SubscriptionId $mysubid
```

```output
Capability : {{
"name": "supportsAccountHnsOnMigration",
"value": "true"
}, {
"name": "supportsaccountvlw",
"value": "true"
}, {
"name": "supportsadlsgen2snapshot",
"value": "true"
}, {
"name": "supportsadlsgen2staticwebsite",
"value": "true"
}…}
Kind : StorageV2
Location : {westus2}
LocationInfo : {{
"location": "westus2",
"zones": [ ]
}}
Name : Standard_ZRS
ResourceType : storageAccounts
Restriction : {}
Tier : Standard
```

This command lists all SKUs under a specified subscription.


2 changes: 1 addition & 1 deletion src/Storage/Storage.Autorest/generate-info.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"generate_Id": "fb909859-db8b-495e-a620-7452062a22ad"
"generate_Id": "5261f671-6e33-479c-b602-b675c12ccf82"
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"Get-AzStorageAccountMigration+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testaccountmigrationrg/providers/Microsoft.Storage/storageAccounts/testaccountmigration111/accountMigrations/default?api-version=2024-01-01+1": {
"Get-AzStorageAccountMigration+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testaccountmigrationrg/providers/Microsoft.Storage/storageAccounts/testaccountmigration111/accountMigrations/default?api-version=2025-01-01+1": {
"Request": {
"Method": "GET",
"RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testaccountmigrationrg/providers/Microsoft.Storage/storageAccounts/testaccountmigration111/accountMigrations/default?api-version=2024-01-01",
"RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testaccountmigrationrg/providers/Microsoft.Storage/storageAccounts/testaccountmigration111/accountMigrations/default?api-version=2025-01-01",
"Content": null,
"isContentBase64": false,
"Headers": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"Get-AzStorageFileServiceUsage+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testaccountmigrationrg/providers/Microsoft.Storage/storageAccounts/pshtestaccountpv2/fileServices/default/usages/default?api-version=2024-01-01+1": {
"Get-AzStorageFileServiceUsage+[NoContext]+Get+$GET+https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testaccountmigrationrg/providers/Microsoft.Storage/storageAccounts/pshtestaccountpv2/fileServices/default/usages/default?api-version=2025-01-01+1": {
"Request": {
"Method": "GET",
"RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testaccountmigrationrg/providers/Microsoft.Storage/storageAccounts/pshtestaccountpv2/fileServices/default/usages/default?api-version=2024-01-01",
"RequestUri": "https://management.azure.com/subscriptions/45b60d85-fd72-427a-a708-f994d26e593e/resourceGroups/testaccountmigrationrg/providers/Microsoft.Storage/storageAccounts/pshtestaccountpv2/fileServices/default/usages/default?api-version=2025-01-01",
"Content": null,
"isContentBase64": false,
"Headers": {
Expand Down
Loading