Azure / Azure/azure-powershell
Update-AzContainerAppJob fails on OK response
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Description
When invoking Update-AzContainerAppJob, I get a successful response, but the module fails with
```
The server responded with an unrecognized response, Status: OK
```
### Issue script & Debug output
```PowerShell
Update-AzContainerAppJob `
-ResourceGroupName $rg `
-Name $job `
-TemplateContainer $containers `
-ConfigurationRegistry $registry `
-ConfigurationReplicaTimeout $jobObj.ConfigurationReplicaTimeout `
-ConfigurationReplicaRetryLimit $jobObj.ConfigurationReplicaRetryLimit
Update-AzContainerAppJob_UpdateExpanded: /home/user/.local/share/powershell/Modules/Az.App/2.0.1/App.Autorest/custom/Update-AzContainerAppJob.ps1:492:5
Line |
492 | Az.App.internal\Update-AzContainerAppJob @PSBoundParameters
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| The server responded with an unrecognized response, Status: OK
```
### Environment data
```PowerShell
$PSVersionTable
Name Value
---- -----
PSVersion 7.5.4
PSEdition Core
GitCommitId 7.5.4
OS Gentoo Linux
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
```
### Module versions
```PowerShell
Get-Module Az*
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 5.3.0 Az.Accounts {Add-AzEnvironment, Clear-AzConfig, Clear-AzContex…
Script 2.0.1 Az.App {Disable-AzContainerAppRevision, Enable-AzContaine…
```
### Error output
```PowerShell
Message : The server responded with an unrecognized response, Status: OK
StackTrace : at Microsoft.Azure.PowerShell.Cmdlets.App.App.JobsUpdate_Call(HttpRequestMessage request, Func`3
onOk, Func`3 onDefault, IEventListener eventListener, ISendAsync sender)
at Microsoft.Azure.PowerShell.Cmdlets.App.App.JobsUpdate_Call(HttpRequestMessage request, Func`3
onOk, Func`3 onDefault, IEventListener eventListener, ISendAsync sender)
at Microsoft.Azure.PowerShell.Cmdlets.App.App.JobsUpdate(String subscriptionId, String
resourceGroupName, String jobName, IJobPatchProperties body, Func`3 onOk, Func`3 onDefault,
IEventListener eventListener, ISendAsync sender, SerializationMode serializationMode)
at Microsoft.Azure.PowerShell.Cmdlets.App.Cmdlets.UpdateAzContainerAppJob_UpdateExpanded.ProcessReco
rdAsync()
Exception : Microsoft.Azure.PowerShell.Cmdlets.App.Runtime.UndeclaredResponseException
InvocationInfo : {Update-AzContainerAppJob_UpdateExpanded}
Line : Az.App.internal\Update-AzContainerAppJob @PSBoundParameters
Position : At /home/user/.local/share/powershell/Modules/Az.App/2.0.1/App.Autorest/custom/Update-AzContainerAppJob.
ps1:492 char:5
+ Az.App.internal\Update-AzContainerAppJob @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HistoryId : 14
```
Contributor guide
Research direction
Start with the failing call in App.Autorest/custom/Update-AzContainerAppJob.ps1 at line 492 and the JobsUpdate_Call stack entry. Reproduce the provided Update-AzContainerAppJob command and inspect how the OK response is handled; done means the update completes successfully without UndeclaredResponseException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, powershell
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100