0

I need to update the scaling rule of an Azure container app with PowerShell. The provided examples on the MSDN documentation is not super helpful. From the Azure portal this is what I need to do, enter image description here

What should be the PowerShell command to update the container app?

1 Answer 1

0

Suppose you wanted to set the concurrent requests to 5 for the HTTP scaling rule named "test-rule":

Here's how to do it:

$scaleRuleObject = New-AzContainerAppScaleRuleObject -Name "test-rule" -CustomType "http" -CustomMetadata @{"concurrentRequests"="5"}
Update-AzContainerApp -ContainerAppName demoapp -ResourceGroupName demoapp-rg -ScaleRule $scaleRuleObject
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.