A new item was added to the Az powershell module to stop constant logging of ErrorRecords in stories
https://github.com/Azure/azure-powershell/issues/21732
and
https://github.com/Azure/azure-functions-powershell-worker/issues/955
Update-AzConfig -DisableErrorRecordsPersistence $true
The above command can be used to disable this locally.
What I'm trying to do is implement the setting in an Azure Function App. I updated requirements.psd1 to use Az 10
@{
'Az' = '10.*'
}
I'm not having much luck getting the functionapp to use this setting though. Any suggestions?