Azure / Azure/azure-powershell
The Get-AzSynapseSparkConfiguration command has stopped working.
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Description
It has stopped working since yesterday.
### Issue script & Debug output
```PowerShell
unable to paste anything
```
### Environment data
```PowerShell
Name Value
---- -----
PSVersion 5.1.22621.2506
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.2506
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
```
### Module versions
```PowerShell
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 2.15.0 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContext, Clear-AzDefault...}
Script 3.2.0 Az.OperationalInsights {Disable-AzOperationalInsightsIISLogCollection, Disable-AzOperationalInsightsLinuxCustomLo...
Script 6.14.0 Az.Resources {Export-AzResourceGroup, Export-AzTemplateSpec, Get-AzDenyAssignment, Get-AzDeployment...}
Script 3.0.5 Az.Synapse {Add-AzSynapseDataFlowDebugSessionPackage, Add-AzSynapseTriggerSubscription, Clear-AzSynap...
```
### Error output
```PowerShell
DEBUG: 6:59:44 PM - ResolveError begin processing with ParameterSet 'AnyErrorParameterSet'.
DEBUG: 6:59:44 PM - using account id 'Id'...
DEBUG: 6:59:44 PM - [ConfigManager] Got nothing from [DisplayBreakingChangeWarning], Module = [], Cmdlet = []. Returning default value [True].
HistoryId: 47
Message : The requested operation requires an element of type 'String', but the target element has type 'Number'.
StackTrace : at System.Text.Json.JsonDocument.GetString(Int32 index, JsonTokenType expectedType)
at Azure.Analytics.Synapse.Artifacts.Models.SparkConfiguration.DeserializeSparkConfiguration(JsonElement element)
at Azure.Analytics.Synapse.Artifacts.Models.SparkConfigurationResource.DeserializeSparkConfigurationResource(JsonElement element)
at Azure.Core.PageableHelpers.PageableImplementation`1.d__17.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Management.Automation.MshCommandRuntime._WriteObjectsSkipAllowCheck(Object sendToPipeline)
at System.Security.SecurityContext.Run(SecurityContext securityContext, ContextCallback callback, Object state)
at System.Management.Automation.MshCommandRuntime.WriteObject(Object sendToPipeline, Boolean enumerateCollection)
at System.Management.Automation.Cmdlet.WriteObject(Object sendToPipeline, Boolean enumerateCollection)
at Microsoft.Azure.Commands.Synapse.GetAzureSynapseSparkConfiguration.ExecuteCmdlet()
at Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet.ProcessRecord()
Exception : System.InvalidOperationException
InvocationInfo : {Get-AzSynapseSparkConfiguration}
Line : $config = Get-AzSynapseSparkConfiguration -WorkspaceName $SynapseWorkspaces
Position : At line:3 char:11
+ $config = Get-AzSynapseSparkConfiguration -WorkspaceName $SynapseWork ...
+
DEBUG: 6:59:44 PM - [ConfigManager] Got nothing from [DisplayRegionIdentified], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: 6:59:44 PM - [ConfigManager] Got nothing from [CheckForUpgrade], Module = [], Cmdlet = []. Returning default value [True].
DEBUG: AzureQoSEvent: Module: Az.Accounts:2.15.0; CommandName: Resolve-AzError; PSVersion: 5.1.22621.2506; IsSuccess: True; Duration: 00:00:00.2229976
DEBUG: 6:59:44 PM - [ConfigManager] Got nothing from [EnableDataCollection], Module = [], Cmdlet = []. Returning default value [True].
```
Contributor guide
Assessment
This issue has not been assessed yet.