Hi @Selmison Campelo de Miranda,
Thank you for reaching out to Microsoft Q&A forum!
When deploying an Azure Function App using az functionapp create
, the automatically created Azure Container App (ACA) bound to the function doesn’t expose customization options for scaling rules. However, you can still achieve custom scaling by manually configuring the scaling rules in the Azure Container App. Here’s how:
Create a Custom Scaling Rule:
- Go to the Scale blade in your Container App.
- Click on “Edit and deploy.”
- Navigate to the Scale tab.
- Add a custom scale rule based on your requirements. For example, if you’re using Redis Streams, the custom rule type would be ‘redis-streams’. Specify any necessary trigger parameters and metadata1.
- For event-driven Container Apps jobs, you can create custom scaling rules based on any ScaledObject-based KEDA scalers. - [If you’re using Azure Functions, consider using ScaledJob-based KEDA scalers](https://learn.microsoft.com/en-us/azure/container-apps/scale-app)[2](https://learn.microsoft.com/en-us/azure/container-apps/scale-app).
- Navigate to the Scale tab.
- Click on “Edit and deploy.”
Remember that while az functionapp create
doesn’t directly expose these options, you can still configure custom scaling rules manually in the Azure Container App to meet your specific needs.