Skip to content

Update-AzContainerAppJob fails on OK response #29163

@lupusbytes

Description

@lupusbytes

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

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

$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

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ContainerAppMicrosoft.AppService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reported

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions