{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/7780","repository_url":"https://api.github.com/repos/Azure/azure-powershell","labels_url":"https://api.github.com/repos/Azure/azure-powershell/issues/7780/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-powershell/issues/7780/comments","events_url":"https://api.github.com/repos/Azure/azure-powershell/issues/7780/events","html_url":"https://github.com/Azure/azure-powershell/issues/7780","id":378896612,"node_id":"MDU6SXNzdWUzNzg4OTY2MTI=","number":7780,"title":"Get-AzureRmStorageAccount - \"Unable to deserialize the response\" - Unsupported Storage Account Type","user":{"login":"shailesh91","id":3657525,"node_id":"MDQ6VXNlcjM2NTc1MjU=","avatar_url":"https://avatars3.githubusercontent.com/u/3657525?v=4","gravatar_id":"","url":"https://api.github.com/users/shailesh91","html_url":"https://github.com/shailesh91","followers_url":"https://api.github.com/users/shailesh91/followers","following_url":"https://api.github.com/users/shailesh91/following{/other_user}","gists_url":"https://api.github.com/users/shailesh91/gists{/gist_id}","starred_url":"https://api.github.com/users/shailesh91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shailesh91/subscriptions","organizations_url":"https://api.github.com/users/shailesh91/orgs","repos_url":"https://api.github.com/users/shailesh91/repos","events_url":"https://api.github.com/users/shailesh91/events{/privacy}","received_events_url":"https://api.github.com/users/shailesh91/received_events","type":"User","site_admin":false},"labels":[{"id":1069434804,"node_id":"MDU6TGFiZWwxMDY5NDM0ODA0","url":"https://api.github.com/repos/Azure/azure-powershell/labels/Service%20Attention","name":"Service Attention","color":"e99695","default":false},{"id":148836221,"node_id":"MDU6TGFiZWwxNDg4MzYyMjE=","url":"https://api.github.com/repos/Azure/azure-powershell/labels/Storage","name":"Storage","color":"e99695","default":false}],"state":"closed","locked":false,"assignee":{"login":"blueww","id":6926193,"node_id":"MDQ6VXNlcjY5MjYxOTM=","avatar_url":"https://avatars3.githubusercontent.com/u/6926193?v=4","gravatar_id":"","url":"https://api.github.com/users/blueww","html_url":"https://github.com/blueww","followers_url":"https://api.github.com/users/blueww/followers","following_url":"https://api.github.com/users/blueww/following{/other_user}","gists_url":"https://api.github.com/users/blueww/gists{/gist_id}","starred_url":"https://api.github.com/users/blueww/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueww/subscriptions","organizations_url":"https://api.github.com/users/blueww/orgs","repos_url":"https://api.github.com/users/blueww/repos","events_url":"https://api.github.com/users/blueww/events{/privacy}","received_events_url":"https://api.github.com/users/blueww/received_events","type":"User","site_admin":false},"assignees":[{"login":"blueww","id":6926193,"node_id":"MDQ6VXNlcjY5MjYxOTM=","avatar_url":"https://avatars3.githubusercontent.com/u/6926193?v=4","gravatar_id":"","url":"https://api.github.com/users/blueww","html_url":"https://github.com/blueww","followers_url":"https://api.github.com/users/blueww/followers","following_url":"https://api.github.com/users/blueww/following{/other_user}","gists_url":"https://api.github.com/users/blueww/gists{/gist_id}","starred_url":"https://api.github.com/users/blueww/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueww/subscriptions","organizations_url":"https://api.github.com/users/blueww/orgs","repos_url":"https://api.github.com/users/blueww/repos","events_url":"https://api.github.com/users/blueww/events{/privacy}","received_events_url":"https://api.github.com/users/blueww/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2018-11-08T20:08:28Z","updated_at":"2018-12-18T08:00:07Z","closed_at":"2018-12-18T08:00:07Z","author_association":"NONE","body":"<!--\r\n\r\nIf this issue is a bug report:\r\n- Upgrade to the latest version of AzureRM and verify you are able to reproduce the issue\r\n    - You can install the latest version of AzureRM from the PowerShell Gallery\r\n        - https://www.powershellgallery.com/packages/AzureRM\r\n    - You can also install the latest version from the Releases section\r\n        - https://github.com/Azure/azure-powershell/releases\r\n- Ensure that you repro the issue with $DebugPreference = \"Continue\" to receive the debug stream\r\n- If this bug involves an exception being thrown, please run Resolve-AzureRmError to receive extended information on the error\r\n- Fill out the below template\r\n\r\nIf this issue is not a bug report, please remove the below template\r\n\r\n-->\r\n\r\n### Description\r\n\r\n<!-- Please provide a description of the issue you are facing -->\r\nWhen I try to list all Azure Storage Account using Get-AzureRmStorageAccount I get the following errror\r\n\"Unable to deserialize the response.\". On running the following command with \"Debug\" switch I noticed that the module was not able to serliaze \"FileStorage\" Storage account type which is still in preview.\r\n\r\nMicrosoft.Rest.SerializationException: Unable to deserialize the response. ---> Newtonsoft.Json.JsonSerializationException: Error converting value\r\n\"FileStorage\" to type 'System.Nullable`1[Microsoft.Azure.Management.Storage.Models.Kind]'. Path '', line 1, position 40038. ---> System.ArgumentException:\r\nRequested value 'FileStorage' was not found.\r\n\r\n### Script/Steps for Reproduction\r\n\r\n<!-- Please provide the necessary script(s) that reproduce the issue -->\r\n\r\n```powershell\r\nGet-AzureRmStorageAccount\r\n```\r\n\r\n### Module Version\r\n\r\n<!-- Please run (Get-Module -ListAvailable) to get the version(s) of all modules, including Azure installed on your machine -->\r\n\r\n```powershell\r\nGet-Module AzureRM -ListAvailable\r\nModuleType Version    Name                                ExportedCommands\r\n---------- -------    ----                                ----------------\r\nScript     6.12.0     AzureRM\r\n```\r\n\r\n### Environment Data\r\n\r\n<!-- Please run $PSVersionTable to get the necessary environment data -->\r\n\r\n```powershell\r\nName                           Value\r\n----                           -----\r\nPSVersion                      5.1.14393.2248\r\nPSEdition                      Desktop\r\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}\r\nBuildVersion                   10.0.14393.2248\r\nCLRVersion                     4.0.30319.42000\r\nWSManStackVersion              3.0\r\nPSRemotingProtocolVersion      2.3\r\nSerializationVersion           1.1.0.1\r\n```\r\n\r\n### Debug Output\r\n\r\n<!-- Please run the above script with $DebugPreference='Continue' and paste the resulting debug stream in the below code block -->\r\n\r\n```\r\nGet-AzureRmStorageAccount : Unable to deserialize the response.\r\nAt line:1 char:1\r\n+ Get-AzureRmStorageAccount -Debug | Where-Object{$_.StorageAccountName ...\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : CloseError: (:) [Get-AzureRmStorageAccount], SerializationException\r\n    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Management.Storage.GetAzureStorageAccountCommand\r\n\r\nDEBUG: AzureQoSEvent: CommandName - Get-AzureRmStorageAccount; IsSuccess - False; Duration - 00:00:07.1667259; Exception -\r\nMicrosoft.Rest.SerializationException: Unable to deserialize the response. ---> Newtonsoft.Json.JsonSerializationException: Error converting value\r\n\"FileStorage\" to type 'System.Nullable`1[Microsoft.Azure.Management.Storage.Models.Kind]'. Path '', line 1, position 40038. ---> System.ArgumentException:\r\nRequested value 'FileStorage' was not found.\r\n   at System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)\r\n   at System.Enum.Parse(Type enumType, String value, Boolean ignoreCase)\r\n   at Newtonsoft.Json.Utilities.EnumUtils.ParseEnumName(String enumText, Boolean isNullable, Type t)\r\n   at Newtonsoft.Json.Converters.StringEnumConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)\r\n   --- End of inner exception stack trace ---\r\n   at Newtonsoft.Json.Converters.StringEnumConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object\r\nexistingValue)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)\r\n   at Newtonsoft.Json.Linq.JToken.ToObject(Type objectType, JsonSerializer jsonSerializer)\r\n   at Microsoft.Rest.Serialization.TransformationJsonConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object\r\nexistingValue)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty\r\ncontainerProperty, String id)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member,\r\nObject existingValue, String id)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter,\r\nJsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract,\r\nJsonProperty member, String id)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member,\r\n JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)\r\n   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)\r\n   at Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject[T](String json, JsonSerializerSettings settings)\r\n   at Microsoft.Azure.Management.Storage.StorageAccountsOperations.<ListWithHttpMessagesAsync>d__10.MoveNext()\r\n   --- End of inner exception stack trace ---\r\n   at Microsoft.Azure.Management.Storage.StorageAccountsOperations.<ListWithHttpMessagesAsync>d__10.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.Azure.Management.Storage.StorageAccountsOperationsExtensions.<ListAsync>d__11.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Microsoft.Azure.Management.Storage.StorageAccountsOperationsExtensions.List(IStorageAccountsOperations operations)\r\n   at Microsoft.Azure.Commands.Management.Storage.GetAzureStorageAccountCommand.ExecuteCmdlet()\r\n   at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord();\r\nDEBUG: Finish sending metric.\r\nDEBUG: 11:58:59 AM - GetAzureStorageAccountCommand end processing.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-powershell/issues/comments/448130108","html_url":"https://github.com/Azure/azure-powershell/issues/7780#issuecomment-448130108","issue_url":"https://api.github.com/repos/Azure/azure-powershell/issues/7780","id":448130108,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODEzMDEwOA==","user":{"login":"blueww","id":6926193,"node_id":"MDQ6VXNlcjY5MjYxOTM=","avatar_url":"https://avatars3.githubusercontent.com/u/6926193?v=4","gravatar_id":"","url":"https://api.github.com/users/blueww","html_url":"https://github.com/blueww","followers_url":"https://api.github.com/users/blueww/followers","following_url":"https://api.github.com/users/blueww/following{/other_user}","gists_url":"https://api.github.com/users/blueww/gists{/gist_id}","starred_url":"https://api.github.com/users/blueww/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueww/subscriptions","organizations_url":"https://api.github.com/users/blueww/orgs","repos_url":"https://api.github.com/users/blueww/repos","events_url":"https://api.github.com/users/blueww/events{/privacy}","received_events_url":"https://api.github.com/users/blueww/received_events","type":"User","site_admin":false},"created_at":"2018-12-18T08:00:07Z","updated_at":"2018-12-18T08:00:07Z","author_association":"COLLABORATOR","body":"The PR is merged and this will be fixed in Az 1.0 release."}}
{"actor":{"display_login":"blueww"}}