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
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// Copyright (c) Microsoft Corporation. All rights reserved.
Comment on lines 1 to +4
Copy link

Copilot AI Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate copyright notice at lines 1 and 4. Remove the duplicate copyright header to avoid confusion.

Copilot uses AI. Check for mistakes.
// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
Expand All @@ -19,12 +22,8 @@
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StorageAction")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StorageActionsManagementClient")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]




67 changes: 0 additions & 67 deletions src/StorageAction/StorageAction.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,70 +22,3 @@ AutoRest does not generate authentication code for the module. Authentication is
## Development
For information on how to develop for `Az.StorageAction`, see [how-to.md](how-to.md).
<!-- endregion -->

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

```yaml
# pin the swagger version by using the commit id instead of branch name
commit: 2219e4e4e0409bcb88a2b82e8febe1a3baecaf18
tag: package-2023-01-01
require:
# readme.azure.noprofile.md is the common configuration file
- $(this-folder)/../../readme.azure.noprofile.md
- $(repo)/specification/storageactions/resource-manager/readme.md
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
# - (this-folder)/relative-path-to-your-local-readme.md

try-require:
- $(repo)/specification/storageactions/resource-manager/readme.powershell.md

# The next three configurations are activated by default.
# identity-correction-for-post: true
# resourcegroup-append: true
# nested-object-to-string: true

# For new RP, the version is 0.1.0
module-version: 1.0.0
# Normally, title is the service name
title: StorageAction
subject-prefix: $(service-name)

directive:
# # Following are common directives which are normally required in all the RPs
# # 1. Remove the unexpanded parameter set
# # 2. For New-* cmdlets, ViaIdentity is not required
# # Following two directives are v4 specific
- where:
variant: ^(Create|Update|Preview)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
variant: ^CreateViaIdentity.*$
remove: true
# Rename commands
- where:
subject: StorageTask
set:
subject: Task
- where:
verb: Invoke
subject: PreviewStorageTaskAction
set:
subject: TaskPreviewAction
- where:
subject: StorageTaskAssignment
set:
subject: TaskAssignment
- where:
subject: StorageTasksReport
set:
subject: TasksReport
# Add model
- model-cmdlet:
- model-name: StorageTaskOperation
cmdlet-name: New-AzStorageActionTaskOperationObject
- model-name: StorageTaskPreviewBlobProperties
cmdlet-name: New-AzStorageActionTaskPreviewBlobPropertiesObject
- model-name: StorageTaskPreviewKeyValueProperties
cmdlet-name: New-AzStorageActionTaskPreviewKeyValuePropertiesObject
```
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Module Name: Az.StorageAction
Module Guid: 78dad367-40fa-497c-afc0-831ee12e5038
Module Guid: 1d5268ec-2c5b-40b6-ae60-e23935752fad
Download Help Link: https://learn.microsoft.com/powershell/module/az.storageaction
Help Version: 1.0.0.0
Locale: en-US
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Get the storage task properties

## SYNTAX

### List (Default)
### List1 (Default)
```
Get-AzStorageActionTask [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>] [<CommonParameters>]
```
Expand All @@ -29,7 +29,7 @@ Get-AzStorageActionTask -InputObject <IStorageActionIdentity> [-DefaultProfile <
[<CommonParameters>]
```

### List1
### List
```
Get-AzStorageActionTask -ResourceGroupName <String> [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
[<CommonParameters>]
Expand Down Expand Up @@ -154,7 +154,7 @@ The name is case insensitive.
```yaml
Type: System.String
Parameter Sets: Get, List1
Parameter Sets: Get, List
Aliases:

Required: True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ Accept wildcard characters: False
```
### -Location
The location to perform preview of the actions.
Represents an Azure geography region where supported resource providers live.
```yaml
Type: System.String
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"generate_Id": "3f2c49f4-d751-4192-8f46-6a62b3c249c4"
"generate_Id": "a74827d2-9c4e-448e-a965-56f6f587edee"
}
3 changes: 3 additions & 0 deletions src/StorageAction/StorageAction.Autorest/tsp-location.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
directory: specification\storageactions\StorageAction.Management
commit: c6a6145cc42fb6ddc5743ecbcc958fb1bc96d015
repo: Azure/azure-rest-api-specs
66 changes: 66 additions & 0 deletions src/StorageAction/StorageAction.Autorest/tspconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
options:
"@azure-tools/typespec-powershell":
service-dir: "src"
emitter-output-dir: "{output-dir}/{service-dir}/StorageAction/StorageAction.Autorest"
clear-output-folder: true
debug: true
azure: true
module-version: 0.1.0
prefix: "Az"
subject-prefix: "StorageAction"
service-name: StorageAction
module-name: "{prefix}.{service-name}"
output-folder: "{output-dir}"
exclude-tableview-properties:
- Id
- Type

directive:
# Following are common directives which are normally required in all the RPs
# 1. Remove the unexpanded parameter set
# 2. For New-* cmdlets, ViaIdentity is not required
# Following two directives are v4 specific
- where:
variant: ^(Create|Update|Preview)(?!.*?(Expanded|JsonFilePath|JsonString))
remove: true
- where:
variant: ^CreateViaIdentity.*$
remove: true
# Remove commands
- where:
verb: Get
subject: Operation
remove: true
# Rename commands
- where:
subject: StorageTask
set:
subject: Task
- where:
verb: Invoke
subject: PreviewStorageTaskAction
set:
subject: TaskPreviewAction
- where:
subject: StorageTaskAssignment
set:
subject: TaskAssignment
- where:
subject: StorageTasksReport
set:
subject: TasksReport
- where:
parameter-name: SubscriptionId
set:
default:
name: SubscriptionId Default
description: Gets the SubscriptionId from the current context.
script: '(Get-AzContext).Subscription.Id'
# Add model cmdlets for creating parameter objects
- model-cmdlet:
- model-name: StorageTaskOperation
cmdlet-name: New-AzStorageActionTaskOperationObject
- model-name: StorageTaskPreviewBlobProperties
cmdlet-name: New-AzStorageActionTaskPreviewBlobPropertiesObject
- model-name: StorageTaskPreviewKeyValueProperties
cmdlet-name: New-AzStorageActionTaskPreviewKeyValuePropertiesObject
28 changes: 14 additions & 14 deletions src/StorageAction/StorageAction.sln
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StorageAction", "StorageAct
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "StorageAction.Autorest", "StorageAction.Autorest", "{7ABF6BD4-50D0-0ECC-E91A-5192EF367F53}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.StorageAction", "..\..\generated\StorageAction\StorageAction.Autorest\Az.StorageAction.csproj", "{C3B58143-2262-4AB3-A612-2398B4E554A0}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.StorageAction", "..\..\generated\StorageAction\StorageAction.Autorest\Az.StorageAction.csproj", "{0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -117,18 +117,18 @@ Global
{03F4F24D-3A93-442A-AD20-EB731FA44F9C}.Release|x64.Build.0 = Release|Any CPU
{03F4F24D-3A93-442A-AD20-EB731FA44F9C}.Release|x86.ActiveCfg = Release|Any CPU
{03F4F24D-3A93-442A-AD20-EB731FA44F9C}.Release|x86.Build.0 = Release|Any CPU
{C3B58143-2262-4AB3-A612-2398B4E554A0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C3B58143-2262-4AB3-A612-2398B4E554A0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C3B58143-2262-4AB3-A612-2398B4E554A0}.Debug|x64.ActiveCfg = Debug|Any CPU
{C3B58143-2262-4AB3-A612-2398B4E554A0}.Debug|x64.Build.0 = Debug|Any CPU
{C3B58143-2262-4AB3-A612-2398B4E554A0}.Debug|x86.ActiveCfg = Debug|Any CPU
{C3B58143-2262-4AB3-A612-2398B4E554A0}.Debug|x86.Build.0 = Debug|Any CPU
{C3B58143-2262-4AB3-A612-2398B4E554A0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C3B58143-2262-4AB3-A612-2398B4E554A0}.Release|Any CPU.Build.0 = Release|Any CPU
{C3B58143-2262-4AB3-A612-2398B4E554A0}.Release|x64.ActiveCfg = Release|Any CPU
{C3B58143-2262-4AB3-A612-2398B4E554A0}.Release|x64.Build.0 = Release|Any CPU
{C3B58143-2262-4AB3-A612-2398B4E554A0}.Release|x86.ActiveCfg = Release|Any CPU
{C3B58143-2262-4AB3-A612-2398B4E554A0}.Release|x86.Build.0 = Release|Any CPU
{0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Debug|x64.ActiveCfg = Debug|Any CPU
{0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Debug|x64.Build.0 = Debug|Any CPU
{0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Debug|x86.ActiveCfg = Debug|Any CPU
{0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Debug|x86.Build.0 = Debug|Any CPU
{0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Release|Any CPU.Build.0 = Release|Any CPU
{0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Release|x64.ActiveCfg = Release|Any CPU
{0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Release|x64.Build.0 = Release|Any CPU
{0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Release|x86.ActiveCfg = Release|Any CPU
{0D641ECD-26B8-4C88-9FA5-43B2F3891AF0}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -140,6 +140,6 @@ Global
{8F9432F9-BDA5-4C81-B97B-B9BB177B7CD7} = {3311551B-F955-4474-BA2B-35D62C807B7D}
{C7DD7FF2-C624-4859-950B-022DA9EFAFAE} = {3311551B-F955-4474-BA2B-35D62C807B7D}
{D49DDD02-B11A-40AF-95FD-BFF8DACF2CC6} = {3311551B-F955-4474-BA2B-35D62C807B7D}
{C3B58143-2262-4AB3-A612-2398B4E554A0} = {7ABF6BD4-50D0-0ECC-E91A-5192EF367F53}
{0D641ECD-26B8-4C88-9FA5-43B2F3891AF0} = {7ABF6BD4-50D0-0ECC-E91A-5192EF367F53}
EndGlobalSection
EndGlobal
12 changes: 6 additions & 6 deletions src/StorageAction/StorageAction/Az.StorageAction.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 6/25/2025
# Generated on: 2/5/2026
#

@{
Expand Down Expand Up @@ -51,16 +51,16 @@ DotNetFrameworkVersion = '4.7.2'
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.1.1'; })
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.3.2'; })

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'StorageAction.Autorest/bin/Az.StorageAction.private.dll'

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

# Type files (.ps1xml) to be loaded when importing this module
# TypesToProcess = @()
TypesToProcess = @()

# Format files (.ps1xml) to be loaded when importing this module
FormatsToProcess = 'StorageAction.Autorest/Az.StorageAction.format.ps1xml'
Expand Down Expand Up @@ -101,7 +101,7 @@ PrivateData = @{
PSData = @{

# Tags applied to this module. These help with module discovery in online galleries.
Tags = 'Azure','ResourceManager','ARM','PSModule','StorageAction'
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'StorageAction'

# A URL to the license for this module.
LicenseUri = 'https://aka.ms/azps-license'
Expand All @@ -126,7 +126,7 @@ PrivateData = @{

} # End of PSData hashtable

} # End of PrivateData hashtable
} # End of PrivateData hashtable

# HelpInfo URI of this module
# HelpInfoURI = ''
Expand Down
1 change: 1 addition & 0 deletions src/StorageAction/StorageAction/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Migrated to typespec

## Version 1.0.0
* General availability for module Az.StorageAction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Get the storage task properties

## SYNTAX

### List (Default)
### List1 (Default)
```
Get-AzStorageActionTask [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
[<CommonParameters>]
Expand All @@ -24,7 +24,7 @@ Get-AzStorageActionTask -Name <String> -ResourceGroupName <String> [-Subscriptio
[-DefaultProfile <PSObject>] [<CommonParameters>]
```

### List1
### List
```
Get-AzStorageActionTask -ResourceGroupName <String> [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
[<CommonParameters>]
Expand Down Expand Up @@ -155,7 +155,7 @@ The name is case insensitive.
```yaml
Type: System.String
Parameter Sets: Get, List1
Parameter Sets: Get, List
Aliases:

Required: True
Expand All @@ -171,7 +171,7 @@ The value must be an UUID.
```yaml
Type: System.String[]
Parameter Sets: List, Get, List1
Parameter Sets: List1, Get, List
Aliases:

Required: False
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ Accept wildcard characters: False
```
### -Location
The location to perform preview of the actions.
Represents an Azure geography region where supported resource providers live.
```yaml
Type: System.String
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"Module","ClassName","Target","Severity","ProblemId","Description","Remediation"
"Az.StorageAction","Get-AzStorageActionTask","Get-AzStorageActionTask","0","3000","The type of property 'IdentityUserAssignedIdentity' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTask' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IUserAssignedIdentities' to 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IManagedServiceIdentityUserAssignedIdentities'.","Change the type of property 'IdentityUserAssignedIdentity' back to 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IUserAssignedIdentities'."
"Az.StorageAction","New-AzStorageActionTask","New-AzStorageActionTask","0","3000","The type of property 'IdentityUserAssignedIdentity' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTask' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IUserAssignedIdentities' to 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IManagedServiceIdentityUserAssignedIdentities'.","Change the type of property 'IdentityUserAssignedIdentity' back to 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IUserAssignedIdentities'."
"Az.StorageAction","Update-AzStorageActionTask","Update-AzStorageActionTask","0","3000","The type of property 'IdentityUserAssignedIdentity' of type 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTask' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IUserAssignedIdentities' to 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IManagedServiceIdentityUserAssignedIdentities'.","Change the type of property 'IdentityUserAssignedIdentity' back to 'Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IUserAssignedIdentities'."
Loading