Hey,
Are both the QA and Production Azure Automation accounts running the latest Az.App module version 0.1.1? If not maybe Production needs to bump up to that one.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi team, we have created an automation script that will increase the scaling to 1 in business hours. we use the below script to do the same.
In lower env, we use a Consumption plan, and in higher env, we use a consumption + workload profile Still we are using a consumption plan only to host the container apps.
Working well in QA able to update the scaling to 1 but in the higher env we are throwing errors like "[WorkloadProfilePropertyNotSupportedInApiVersion] : WorkloadProfiles configuration is not supported in api version. Use 2022-11-01-preview or above."
Any workaround for this or any AZ modules that we need to update or add to the automation account?
Script :
Connect-AzAccount -Identity
$contanierAppPropertybefore= Get-AzContainerApp -ResourceGroupName <RGName> -Name <ContainerAppName>
$scallingminvalues1 = $contanierAppPropertybefore.ScaleMinReplica
Update-AzContainerApp -ResourceGroupName <RGName> -Name <ContainerAppName> - ScaleMinReplica 1
$contanierAppPropertyAfter= Get-AzContainerApp -ResourceGroupName <RGName> -Name <ContainerAppName>
$scallingminvalues2 = $contanierAppPropertyAfter.ScaleMinReplica
Write-Output = $scallingminvalues1
Write-Output = $scallingminvalues2
Hey,
Are both the QA and Production Azure Automation accounts running the latest Az.App module version 0.1.1? If not maybe Production needs to bump up to that one.