Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autorest generated cmdlet throwing "Argument passed in is not serializable" error #81

Open
rakku-ms opened this issue Mar 26, 2021 · 0 comments

Comments

@rakku-ms
Copy link
Contributor

This is for AzureStack specific admin modules
Some of the generated cmdlets throw "Argument passed in is not serializable" error when incorrect parameter value is passed. In the below examples, "TargetSubscriptionId" parameter value is correct for the first one but not for the second one.

PS C:\Windows\system32> Get-AzsUserSubscription -TargetSubscriptionId "966bbf24-21ce-43bd-8735-e1a4c0eed411"

DelegatedProviderSubscriptionId      DisplayName                  ExternalReferenceId OfferId                                                                           
-------------------------------      -----------                  ------------------- -------                                                                           
209523fa-09a8-4642-93df-58496efe1ca2 EventRPBVTTenantSubscription                     /subscriptions/209523fa-09a8-4642-93df-58496efe1ca2/resourceGroups/EventRPBVTTe...



PS C:\Windows\system32> Get-AzsUserSubscription -TargetSubscriptionId "966bbf24-21ce-43bd-8735-e1a4c0eed418"
Get-AzsUserSubscription : Argument passed in is not serializable.
Parameter name: value
At line:1 char:1
+ Get-AzsUserSubscription -TargetSubscriptionId "966bbf24-21ce-43bd-873 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-AzsUserSubscription_Get], ArgumentException
    + FullyQualifiedErrorId : Microsoft.Azure.PowerShell.Cmdlets.SubscriptionsAdmin.Cmdlets.GetAzsUserSubscription_Get

details here: Azure/autorest.powershell#755

@rakku-ms rakku-ms changed the title [AzureStack] Autorest generated cmdlet throwing "Argument passed in is not serializable" error Autorest generated cmdlet throwing "Argument passed in is not serializable" error Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant