Does KEDA support azure service principal(client id and secret)? I read through the documentation but could not find an example. The documentation did mentioned service principal for key vault but my understanding is that the service principal here is to authenticate to key vault then read the secrets from there.
KEDA Trigger Authentication with Azure Service Principal
174 Views Asked by Sandy At
1
There are 1 best solutions below
Related Questions in AZURE
- How to update to the latest external Git in Azure Web App?
- I need an azure product that executes my intensive ffmpeg command then dies, and i only get charged for the delta. Any Tips?
- Inject AsyncCollector into a service
- mutual tls authentication between app service and function app
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Application settings for production deployment slot in Azure App Services
- Encountered an error (ServiceUnavailable) from host runtime on Azure Function App
- Implementing Incremental consent when using both application and delegated permissions
- Invalid format for email address in WordPress on Azure app service
- Producer Batching Service Bus Vs Kafka
- Integrating Angular External IP with ClusterIP of .NET microservices on AKS
- Difficulty creating a data pipeline with Fabric Datafactory using REST
- Azure Batch for Excel VBA
- How to authenticate only Local and Guest users in Azure AD B2C and add custom claims in token?
- Azure Scale Sets and Parallel Jobs
Related Questions in AZURE-AKS
- Integrating Angular External IP with ClusterIP of .NET microservices on AKS
- Kubernetes : How to connect production and non-production Azure CLI simultaneously through windows system?
- Deploy Docker Image into AKS cluster using Azure Release Pipelines with the parameters like clustername, acr, resourcegroup
- Running Azure Function in AKS with Workload Identity and Eventhub Trigger
- Error while performing acr run build: MONGODB_URI environment variable in .env.local
- How can I deploy Ultralytics YOLOv8 on Azure AKS Specifically on the score.py file?
- Regex for azure kubernetes policy doesn't work
- How to know if API Version upgrade will effect AKS function or not?
- Azure DevOps self-hosted Pipeline Agent that can perform a docker build and push command
- Azure K8S Calico network policy is recommended for dev/test configuration. Not suitable for Production?
- Azure error writing parquet to ADLS Gen 2
- Does number of running pods in namespace cause performance issue?
- Resource Provider for AKS Backup Vault
- Qdrant:vectordb:Which shard is at which node? It seems like all shards are on the two nodes out of 4Replicas
- With Terraform, how do I integrate a basic-sku load balancer and basic-sku public ip address with an azurerm_kubernetes_cluster resource?
Related Questions in KEDA
- Scaling Nuclio With KEDA Based on Queue Length: Error ScaledObject Name is Not Specified
- Does PodDisruptionBudget prevent KEDA ScaledObject from scaling down?
- How to get a list of Jobs created by ScaledJob?
- KEDA kafka - azure eventhub configuration
- KEDA Trigger Authentication with Azure Service Principal
- Scaling Issue with Azure Container App using KEDA and Private Endpoint Queue
- KEDAScalerFailed rpc error: code = PermissionDenied desc = Permission monitoring.timeSeries.list denied (or the resource may not exist)
- KEDA + AKS - could not get information about the resource: scaledobjects.keda.sh
- KEDA NATS scaler not activating deployment
- RabbitMQ unacked messages stuck in a queue even without consumers
- How to alert when specific HPA's desiredReplicas is not equal to currentReplicas
- Keda ScaledJob Caching / Not Starting New Jobs
- Is there a way to use rollout as a ScaledObject in Keda?
- How to configure gcp-storage trigger for keda scaler
- Unclear how to remove ADO agent pool after KEDA downscales a windows workload in azure AKS
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

KEDA supports Azure service principal authentication. You can use Azure service principal (client ID and secret) to authenticate to Azure Key Vault and read secrets from there. You can then use these secrets to authenticate to other Azure services, including KEDA. Once you have authenticated to Azure Key Vault, you can use the secrets to authenticate to KEDA. Here's an example of how to authenticate to Azure Kubernetes Service (AKS) using Azure service principal
To set up Azure service principal authentication for KEDA, Create the Service Principal using CLI or portal and get the
appId(client ID) andpassword(client secret) andtenantHere replace
<appId>,<role>, and<scope>with the values you recieved from the first step.or if creating a fresh resource like AKS cluster then directly push it while creating the cluster
Store Service Principal Credentials i.e. the service principal's
appIdandpasswordin a Kubernetes secret. Replace<client-id>and<client-secret>with your values.Make sure you have already installed Keda on your system helm install keda kedacore/keda --namespace
Finally configure KEDA to use the Service Principal
Here replace the productpage-v1 with your own deployment which you want to scale with keda- and kedaqueue with your own service bus queue name
Create a
TriggerAuthenticationYAML to accompany theScaledObject, since you also need aTriggerAuthenticationresource to refer to the secret holding the service principal's credentials.apply them with kubectl apply -f
Now you can monitor Keda for autoscaling events-
kubectl logs -f deployment/keda-operator -n <namespace>Reference Documents: