Azure Container app - deploying a container using an Azure Service Bus scaler

Ron Hayes 0 Reputation points
2023-01-18T16:21:11.1166667+00:00

Trying to provision a simple container scaling on Azure Service Bus. I tried the "Azure Service Bus" scaler first but received a system log message "ScaledObject doesn't have correct scaleTargetRef specification". I then tried creating a Custom scaler with the parameters below (the asb-connection has the connection string) and receive the same error. What am I missing?

User's image

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
260 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Mike Urnun 9,666 Reputation points Microsoft Employee
    2023-01-30T21:42:24.2066667+00:00

    Hello @Ron Hayes , I connected with @Alex Q last week and was able to repro the "ScaledObject doesn't have correct scaleTargetRef specification" warning afterward. The warning is coming from KEDA (with ScaledObjectCheckFailed as its reason) and is caused by invalid parameters supplied for the scale rules.
    Assuming that there were multiple attempts in creating the scale rule with different values, each attempt will result in a new revision in ACA, and trigger underlying provisioning of the scale target for the associated resource/app: https://custom-pod-autoscaler.readthedocs.io/en/latest/reference/scaling-targets/
    In order to avoid this warning & aggregation of them in your logs, please review the trigger specification thoroughly and make sure that each parameter is valid, and can pass the validation step.


  2. Nick Raphael 0 Reputation points
    2023-02-08T00:24:08.0133333+00:00

    I'm seeing the "ScaledObject doesn't have correct scaleTargetRef specification" errors a lot. My contianer app doesn't have a scale rule at all. I've got scaling set to 5-5.

    The status claims the revision is provisioned and is taking 100% of traffic. But there are no replicas available in Log Stream and the containers don't seem to be running.

    0 comments No comments