Repository navigation
Open
Labels
App Servicesaka WebSitesaka WebSitesact-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reported
Description
Description
Description
Get-AzWebApp throws:
Microsoft.Rest.SerializationException:
Unable to deserialize the response.
Inner Exception:
Error converting value "FileShare" to type
Microsoft.Azure.Management.WebSites.Models.AzureStorageType
Requested value 'FileShare' was not found.
This happens if you have a file share (e.g. a SMB on-premises share) configured for your logic app standard
Reproduction
Get-AzWebApp -ResourceGroupName "my-rg"
-Name "my-logicapp"
Relevant JSON
"azureStorageAccounts": {
"FileSystem": {
"type": "FileShare"
}
}
Issue script & Debug output
$DebugPreference='Continue'
Get-AzWebApp -ResourceGroupName "<REDACTED>" -Name "<REDACTED>" -ErrorAction StopEnvironment data
Name Value
---- -----
PSVersion 7.5.1
PSEdition Core
GitCommitId 7.5.1
OS Microsoft Windows 10.0.14393
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0β¦}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Module versions
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 5.5.2 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefaultβ¦}
Script 10.1.0 Az.Resources {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeploymentβ¦}
Script 4.0.0 Az.Websites {Add-AzWebAppAccessRestrictionRule, Add-AzWebAppTrafficRouting, Edit-AzWebAppBackupConfiguration, Get-AzAppServiceEnvironmentβ¦}Error output
DEBUG: 3:24:38 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Error converting value "FileShare" to type 'System.Nullable`1[Microsoft.Azure.Management.WebSites.Models.AzureStorageType]'. Path 'properties.azureStorageAccounts.FileSystem.type', line 1,
position 4306.
StackTrace : at Newtonsoft.Json.Converters.StringEnumConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty
containerProperty, JsonReader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract
containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract
containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryContract contract, JsonProperty containerProperty,
String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract
containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract
containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.Linq.JToken.ToObject(Type objectType, JsonSerializer jsonSerializer)
at Microsoft.Rest.Serialization.TransformationJsonConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject[T](String json, JsonSerializerSettings settings)
at Microsoft.Azure.Management.WebSites.WebAppsOperations.GetConfigurationWithHttpMessagesAsync(String resourceGroupName, String name, Dictionary`2 customHeaders, CancellationToken
cancellationToken)
Exception : Newtonsoft.Json.JsonSerializationException
InvocationInfo : {Get-AzWebApp}
Line : Get-AzWebApp `
Position : At line:1 char:1
+ Get-AzWebApp `
+ ~~~~~~~~~~~~~~
HistoryId : 4
DEBUG: 3:24:38 PM - [ConfigManager] Got nothing from [DisplaySecretsWarning], Module = [], Cmdlet = []. Returning default value [True].
Message : Requested value 'FileShare' was not found.
StackTrace : at Newtonsoft.Json.Utilities.EnumUtils.ParseEnum(Type enumType, NamingStrategy namingStrategy, String value, Boolean disallowNumber)
at Newtonsoft.Json.Converters.StringEnumConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)
Exception : System.ArgumentException
InvocationInfo : {Get-AzWebApp}
Line : Get-AzWebApp `
Position : At line:1 char:1
+ Get-AzWebApp `
+ ~~~~~~~~~~~~~~
HistoryId : 4Reacted by Copilot
Metadata
Metadata
Assignees
Labels
App Servicesaka WebSitesaka WebSitesact-observability-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reported
Activity
microsoft-github-policy-service commentedon Aug 10, 2026
π Routing this issue to @Azure/act-observability-squad.
x-engineering-agent commentedon Aug 10, 2026
Get-AzWebAppthrowsMicrosoft.Rest.SerializationExceptionwhen the web app'sazureStorageAccountsconfig includes a storage account of type"FileShare"(e.g. an SMB on-premises share mounted on a Logic App Standard / App Service).
Root cause: The client-side model
Microsoft.Azure.Management.WebSites.Models.AzureStorageType(used byAz.Websites) does not define aFileShareenum member, soNewtonsoft.Json'sStringEnumConverterfails withRequested value 'FileShare' was not foundwhile deserializing the
GetConfigurationresponse.Fix guidance: Locate the
AzureStorageTypeenum/model definition under theWebsitesmodule (likely in the generated SDK models or a correspondingpartial/extension type) and add the missing
FileSharevalue so thedeserializer can map it correctly. Add/update a
Websites.Testrecording orunit test that deserializes a config payload containing
"azureStorageAccounts": {"FileSystem": {"type": "FileShare"}}to confirm noexception is thrown and the value round-trips correctly.
Use this EXACT PR title:
[Websites] Add FileShare to AzureStorageType enum to fix deserialization errorPR title & description (azure-powershell)
Follow CONTRIBUTING.md. azure-powershell does not enforce a strict title gate β it requires a clear, informative title and a fully filled-out PR template.
Suggested PR title (clear & informative;
[Module]prefix is the common convention):Required (per CONTRIBUTING.md):
Fixes #29979in the description so the PR auto-closes it.## Upcoming Releaseheader ofsrc/Websites/Websites/ChangeLog.md. Do not add a new version header.main.src/Websites/).