Skip to content

Commit b75a0a2

Browse files
committed
Fix the OutputType of of new/Set-AzureRMstorageAccount
1 parent cf612e9 commit b75a0a2

File tree

5 files changed

+6
-4
lines changed

5 files changed

+6
-4
lines changed

src/ResourceManager/Storage/Commands.Management.Storage/StorageAccount/NewAzureStorageAccount.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
namespace Microsoft.Azure.Commands.Management.Storage
2424
{
25-
[Cmdlet(VerbsCommon.New, StorageAccountNounStr), OutputType(typeof(StorageModels.StorageAccount))]
25+
[Cmdlet(VerbsCommon.New, StorageAccountNounStr), OutputType(typeof(PSStorageAccount))]
2626
public class NewAzureStorageAccountCommand : StorageAccountBaseCmdlet
2727
{
2828
[Parameter(

src/ResourceManager/Storage/Commands.Management.Storage/StorageAccount/SetAzureStorageAccount.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Microsoft.Azure.Commands.Management.Storage
2626
/// <summary>
2727
/// Lists all storage services underneath the subscription.
2828
/// </summary>
29-
[Cmdlet(VerbsCommon.Set, StorageAccountNounStr, SupportsShouldProcess = true, DefaultParameterSetName = StorageEncryptionParameterSet), OutputType(typeof(StorageModels.StorageAccount))]
29+
[Cmdlet(VerbsCommon.Set, StorageAccountNounStr, SupportsShouldProcess = true, DefaultParameterSetName = StorageEncryptionParameterSet), OutputType(typeof(PSStorageAccount))]
3030
public class SetAzureStorageAccountCommand : StorageAccountBaseCmdlet
3131
{
3232

src/ResourceManager/Storage/Commands.Management.Storage/help/New-AzureRmStorageAccount.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
307307
308308
## OUTPUTS
309309
310-
### Microsoft.Azure.Management.Storage.Models.StorageAccount
310+
### Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount
311311
312312
## NOTES
313313

src/ResourceManager/Storage/Commands.Management.Storage/help/Set-AzureRmStorageAccount.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
469469
470470
## OUTPUTS
471471
472-
### Microsoft.Azure.Management.Storage.Models.StorageAccount
472+
### Microsoft.Azure.Commands.Management.Storage.Models.PSStorageAccount
473473
474474
## NOTES
475475

tools/StaticAnalysis/Exceptions/BreakingChangeIssues.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,3 +760,5 @@
760760
"d:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Batch\Microsoft.Azure.Commands.Batch.dll","Microsoft.Azure.Commands.Batch.GetBatchPoolCommand","Get-AzureBatchPool","0","3030","The generic type for 'property ResizeErrors' has been changed from 'System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Batch.Models.PSResizeError]' to 'System.Collections.Generic.IReadOnlyList`1[Microsoft.Azure.Commands.Batch.Models.PSResizeError]'. ","Change the generic type for 'property ResizeErrors' back to 'System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Batch.Models.PSResizeError]'."
761761
"d:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Batch\Microsoft.Azure.Commands.Batch.dll","Microsoft.Azure.Commands.Batch.SetBatchPoolCommand","Set-AzureBatchPool","0","3030","The generic type for 'property ResizeErrors' has been changed from 'System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Batch.Models.PSResizeError]' to 'System.Collections.Generic.IReadOnlyList`1[Microsoft.Azure.Commands.Batch.Models.PSResizeError]'. ","Change the generic type for 'property ResizeErrors' back to 'System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Batch.Models.PSResizeError]'."
762762
"d:\workspace\powershell\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Batch\Microsoft.Azure.Commands.Batch.dll","Microsoft.Azure.Commands.Batch.GetBatchComputeNodeCommand","Get-AzureBatchComputeNode","0","3030","The generic type for 'property ResizeErrors' has been changed from 'System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Batch.Models.PSResizeError]' to 'System.Collections.Generic.IReadOnlyList`1[Microsoft.Azure.Commands.Batch.Models.PSResizeError]'. ","Change the generic type for 'property ResizeErrors' back to 'System.Collections.Generic.IList`1[Microsoft.Azure.Commands.Batch.Models.PSResizeError]'."
763+
"c:\code\PSH_Dev\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Storage\Microsoft.Azure.Commands.Management.Storage.dll","Microsoft.Azure.Commands.Management.Storage.NewAzureStorageAccountCommand","New-AzureRmStorageAccount","0","1020","The cmdlet 'New-AzureRmStorageAccount' no longer has output type 'Microsoft.Azure.Management.Storage.Models.StorageAccount'.","Make cmdlet 'New-AzureRmStorageAccount' return type 'Microsoft.Azure.Management.Storage.Models.StorageAccount'."
764+
"c:\code\PSH_Dev\src\Package\Debug\ResourceManager\AzureResourceManager\AzureRM.Storage\Microsoft.Azure.Commands.Management.Storage.dll","Microsoft.Azure.Commands.Management.Storage.SetAzureStorageAccountCommand","Set-AzureRmStorageAccount","0","1020","The cmdlet 'Set-AzureRmStorageAccount' no longer has output type 'Microsoft.Azure.Management.Storage.Models.StorageAccount'.","Make cmdlet 'Set-AzureRmStorageAccount' return type 'Microsoft.Azure.Management.Storage.Models.StorageAccount'."

0 commit comments

Comments
 (0)