Skip to content
Draft
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
4 changes: 2 additions & 2 deletions src/Storage/Storage.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +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.1.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("9.1.0")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("9.2.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("9.2.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
12 changes: 5 additions & 7 deletions src/Storage/Storage.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ 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/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
- https://github.com/welovej/azure-rest-api-specs/blob/bd46040e2bc84dea94b147ae5fa47e5dfe689e4b/specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/openapi.json

# For new RP, the version is 0.1.0
module-version: 5.9.1
Expand Down Expand Up @@ -112,7 +110,7 @@ directive:
set:
property-name: StorageAccountLimitMaxProvisionedIops
- where:
subject: ^StorageAccount$|^StorageAccountKey$|^StorageAccountProperty$|^StorageAccountSas$|^StorageAccountServiceSas$|BlobInventoryPolicy$|^DeletedAccount$|^EncryptionScope$|^LocalUser$|^LocalUserKey$|^ManagementPolicy$|^ObjectReplicationPolicy$|^Usage$|^LocalUserPassword$|^AccountUserDelegationKey$|^AbortStorageAccountHierarchicalNamespaceMigration$|^HierarchicalStorageAccountNamespaceMigration$|^StorageAccountBlobRange$|^StorageAccountUserDelegationKey$|^StorageAccountNameAvailability$|^FileShare$|^FileServiceProperty$|^FileService$
subject: .*Blob.*|.*Table.*|.*Queue.*|^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 @@ -154,16 +152,16 @@ directive:
property-name: ParameterStartOn
set:
property-name: StartOn
- from: storageTaskAssignments.json
- from: openapi.json
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/reports"].get
transform: >
$["operationId"] = "StorageTaskAssignmentInstancesReport_List"
# Renaming the operationId to StorageTaskAssignmentInstancesReport_Get, but the operation actually lists all the reports under a specific storage task assignment.
- from: storageTaskAssignments.json
- from: openapi.json
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}/reports"].get
transform: >
$["operationId"] = "StorageTaskAssignmentInstancesReport_Get"
- from: storageTaskAssignments.json
- from: openapi.json
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}/reports"].get
transform: >
$["operationId"] = "StorageTaskAssignmentInstancesReport_Get"
Expand Down
176 changes: 176 additions & 0 deletions src/Storage/Storage.Autorest/README.md.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
<!-- region Generated -->
# Az.Storage
This directory contains the PowerShell module for the Storage service.

---
## Info
- Modifiable: yes
- Generated: all
- Committed: yes
- Packaged: yes

---
## Detail
This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.

## Module Requirements
- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater

## Authentication
AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.

## Development
For information on how to develop for `Az.Storage`, see [how-to.md](how-to.md).
<!-- endregion -->

### AutoRest Configuration
> see https://aka.ms/autorest

``` yaml
# Please specify the commit id that includes your features to make sure generated codes stable.
commit: 04b87408ba3b8afed159b3d3059bd1594c7f2dd3
require:
# readme.azure.noprofile.md is the common configuration file
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- https://github.com/welovej/azure-rest-api-specs/blob/TspMig-storage/specification/storage/resource-manager/Microsoft.Storage/stable/2025-01-01/openapi.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

directive:
- where:
variant: ^(Create|Update)(?!.*?Expanded|JsonFilePath|JsonString)
remove: true
- where:
variant: ^CreateViaIdentity.*$
remove: true
- from: swagger-document
where: $.paths.["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/startAccountMigration"].post.operationId
transform: return "StartAccountMigration"
- remove-operation: StorageAccounts_Update
- remove-operation: FileShares_Lease
- where:
subject: ^StorageAccountCustomerInitiatedMigration$
set:
subject: StorageAccountMigration
- where:
verb: Start
subject: AccountMigration
hide: true
- where:
variant: ^Customer$|^CustomerViaIdentity$
remove: true
- where:
parameter-name: StorageAccountMigrationDetailTargetSkuName
set:
parameter-name: TargetSku
- where:
verb: Get
subject: ^StorageTaskAssignment$
parameter-name: Top
set:
alias: Maxpagesize
- where:
subject: ^FileServiceUsage$
parameter-name: AccountName
set:
parameter-name: StorageAccountName
- where:
property-name: BurstingConstantBurstFloorIop
set:
property-name: BurstingConstantBurstFloorIops
- where:
property-name: FileShareLimitMaxProvisionedIop
set:
property-name: FileShareLimitMaxProvisionedIops
- where:
property-name: FileShareLimitMinProvisionedIop
set:
property-name: FileShareLimitMinProvisionedIops
- where:
property-name: FileShareRecommendationBaseIop
set:
property-name: FileShareRecommendationBaseIops
- where:
property-name: LiveShareProvisionedIop
set:
property-name: LiveShareProvisionedIops
- where:
property-name: SoftDeletedShareProvisionedIop
set:
property-name: SoftDeletedShareProvisionedIops
- where:
property-name: StorageAccountLimitMaxProvisionedIop
set:
property-name: StorageAccountLimitMaxProvisionedIops
- where:
subject: .*Blob.*|.*Table.*|.*Queue.*|^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
set:
parameter-name: EndBy
- where:
parameter-name: ParameterInterval
set:
parameter-name: Interval
- where:
parameter-name: ParameterIntervalUnit
set:
parameter-name: IntervalUnit
- where:
parameter-name: ParameterStartFrom
set:
parameter-name: StartFrom
- where:
parameter-name: ParameterStartOn
set:
parameter-name: StartOn
- where:
property-name: ParameterEndBy
set:
property-name: EndBy
- where:
property-name: ParameterInterval
set:
property-name: Interval
- where:
property-name: ParameterIntervalUnit
set:
property-name: IntervalUnit
- where:
property-name: ParameterStartFrom
set:
property-name: StartFrom
- where:
property-name: ParameterStartOn
set:
property-name: StartOn
- from: openapi.json
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/reports"].get
transform: >
$["operationId"] = "StorageTaskAssignmentInstancesReport_List"
# Renaming the operationId to StorageTaskAssignmentInstancesReport_Get, but the operation actually lists all the reports under a specific storage task assignment.
- from: openapi.json
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}/reports"].get
transform: >
$["operationId"] = "StorageTaskAssignmentInstancesReport_Get"
- from: openapi.json
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}/reports"].get
transform: >
$["operationId"] = "StorageTaskAssignmentInstancesReport_Get"
- where:
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
@@ -0,0 +1,95 @@
{
"resourceType": "storageAccounts/networkSecurityPerimeterConfigurations",
"apiVersion": "2025-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.storage"
},
"commands": [
{
"name": "Get-AzStorageNetworkSecurityPerimeterConfiguration",
"description": "Gets effective NetworkSecurityPerimeterConfiguration for association",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.storage/get-azstoragenetworksecurityperimeterconfiguration"
},
"parameterSets": [
{
"parameters": [
"-AccountName <String>",
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String[]>]"
]
}
]
},
"examples": [
{
"description": "Gets effective NetworkSecurityPerimeterConfiguration for association",
"parameters": [
{
"name": "-AccountName",
"value": "[Path.accountName]"
},
{
"name": "-Name",
"value": "[Path.networkSecurityPerimeterConfigurationName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
},
{
"name": "Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration",
"description": "Refreshes any information about the association.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/networkSecurityPerimeterConfigurations/{networkSecurityPerimeterConfigurationName}/reconcile",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.storage/invoke-azstoragereconcilenetworksecurityperimeterconfiguration"
},
"parameterSets": [
{
"parameters": [
"-AccountName <String>",
"-NetworkSecurityPerimeterConfigurationName <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String>]"
]
}
]
},
"examples": [
{
"description": "Refreshes any information about the association.",
"parameters": [
{
"name": "-AccountName",
"value": "[Path.accountName]"
},
{
"name": "-NetworkSecurityPerimeterConfigurationName",
"value": "[Path.networkSecurityPerimeterConfigurationName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"resourceType": "storageAccounts/fileServices/usages",
"resourceType": "storageAccounts",
"apiVersion": "2025-01-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.storage"
Expand All @@ -8,7 +8,7 @@
{
"name": "Get-AzStorageFileServiceUsage",
"description": "Gets the usage of file service in storage account including account limits, file share limits and constants used in recommendations and bursting formula.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/{FileServicesName}/usages/{fileServiceUsagesName}",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/usages/default",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.storage/get-azstoragefileserviceusage"
Expand Down
8 changes: 7 additions & 1 deletion 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: 4deee175-f94f-4dfd-80d5-fd7c43018494
Module Guid: 983607ec-bcd9-4156-87aa-ab77eadbbc36
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-AzStorageNetworkSecurityPerimeterConfiguration](Get-AzStorageNetworkSecurityPerimeterConfiguration.md)
Gets effective NetworkSecurityPerimeterConfiguration for association

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

Expand All @@ -26,6 +29,9 @@ Get the storage task assignment properties
### [Get-AzStorageTaskAssignmentInstancesReport](Get-AzStorageTaskAssignmentInstancesReport.md)
Fetch the report summary of a single storage task assignment's instances

### [Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration](Invoke-AzStorageReconcileNetworkSecurityPerimeterConfiguration.md)
Refreshes any information about the association.

### [New-AzStorageTaskAssignment](New-AzStorageTaskAssignment.md)
Asynchronously create a new storage task assignment sub-resource with the specified parameters.
If a storage task assignment is already created and a subsequent create request is issued with different properties, the storage task assignment properties will be updated.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Accept wildcard characters: False
```

### -ResourceGroupName
The name of the resource group within the user's subscription.
The name of the resource group.
The name is case insensitive.

```yaml
Expand All @@ -114,6 +114,7 @@ Accept wildcard characters: False

### -SubscriptionId
The ID of the target subscription.
The value must be an UUID.

```yaml
Type: System.String[]
Expand Down
Loading
Loading