Questions tagged [service-principal]
161 questions
16
votes
4 answers
How to give permissions to AKS to access ACR via terraform?
Question and details
How can I allow a Kubernetes cluster in Azure to talk to an Azure Container Registry via terraform?
I want to load custom images from my Azure Container Registry. Unfortunately, I encounter a permissions error at the point…

hey
- 2,643
- 7
- 29
- 50
14
votes
1 answer
Authentication difference between using AAD app key and Service Principal Password
To run applications in Azure, I need to create an Application in Azure AD and a corresponding Service Principal. Then my application authenticates against this App/Principal pair. To authenticate, I can create an application key in the App…

jschmitter
- 1,669
- 19
- 29
9
votes
2 answers
AzureAD PowerShell New-AzureRmRoleAssignment keeps failing
I'm working on a powershell script that will create a Resource Group, register the included application (in this example, a Web Api) to the associated AAD.
But, when calling trying to assign Reader rights, it keeps on failing.
I've started from the…

Tom Wuyts
- 855
- 1
- 11
- 27
9
votes
2 answers
Using Azure KeyVault, cannot find object in Azure Active Directory tenant
Using Azure KeyVault I have set up a ResourceGroup, KeyVault and Key by following this guide:
https://azure.microsoft.com/en-gb/documentation/articles/key-vault-get-started/
I have set up the application client in Active Directory. However when I…

Banford
- 2,539
- 4
- 23
- 35
6
votes
3 answers
Azure AKS Public IP in Non-standard Resource Group
I've been trying to manage an Azure Kubernetes Service (AKS) instance via Terraform. When I create the AKS instance via the Azure CLI per this MS tutorial, then install an ingress controller with a static public IP, per this MS tutorial, everything…

Derek
- 1,466
- 15
- 24
6
votes
2 answers
Azure - authenticating to KeyVault using Service Principle returns an Unauthorized exception
I'm trying to access KeyVault from an .net Core console application, using a Service Principle (I have the App Id and App Secret). Here's my code:
var client = new KeyVaultClient(GetAccessToken);
var secret =…

Rob
- 65
- 1
- 6
5
votes
2 answers
"Insufficient privileges to complete the operation." in Azure
My situation is as follows: I want to create an Azure service principal. But when I try to do it with this command az ad sp create-for-rbac, I always get the error "Insufficient privileges to complete the operation."
Am I correct in assuming this…

Yana Shetko
- 51
- 1
- 1
- 4
5
votes
0 answers
Azure DataLake with DVC
We are thinking to use DVC for versioning input data for DataScience project.
my data resides in Azure DataLake Gen1.
how do i configure DVC to push data to Azure DataLake using Service Principal?
i want DVC to store cache and data into Azure…

Radhi
- 6,289
- 15
- 47
- 68
5
votes
2 answers
How to obtain bearer token for azure service principal with C#
I need to get the bearer access token for service principal. I want to use it in C# application.
Given that I have principial Id and secret and tenant id, how can I obtain it?
EDIT:
to be more specific:
I have service principal with client_id and…

Dzior
- 1,485
- 1
- 14
- 30
5
votes
2 answers
Azure AD - How to check whether a service principal is being used?
I've got a bunch of old app registrations/service principals that no one has any idea if it's being used or not. When I got into the app from Enterprise Application (All Applications) blade and see Sign-ins from Activity, nothing shows up. Nothing…

DivZ
- 678
- 12
- 20
5
votes
1 answer
Service principal privileges for app registration creation
I'm using service principal as login item for azure cli. The role of this service principal is "owner".
I'm trying to run:
az ad app list
and
az ad app create --display-name "Test application 2"
and getting error:
Directory permission is needed…

Dzior
- 1,485
- 1
- 14
- 30
4
votes
2 answers
PowerBI API error updating Dataset using Service Principal
Requirement: Update PowerBI dataset schedule using Powershell script via a Service Principal. PowerBI API used. Refer: MicrosoftDocs
Error Message: "Message":"API is not accessible for application"
What I did:
Provided PowerBI application API…

KaranSingh
- 460
- 4
- 11
4
votes
1 answer
Azure Service Connections
I'm trying to create a release pipeline in Azure DevOps. I created an App service resource in Azure and I want to deploy my web-app to this App service through my pipeline. For that I need to create an ARM service connection. Can you please help me…

SD4
- 439
- 10
- 27
4
votes
4 answers
Connect to Azure SQL Database from DataBricks using Service Principal
I have a requirement to connect to Azure SQL Database from Azure Databricks via Service Principal. Tried searching forums but unable to find the right approach. Any help is greatly appreciated.
Tried a similar approach with SQL User ID and Password…

SDR
- 361
- 1
- 4
- 20
4
votes
1 answer
How do you get a token for an azure managed identity via REST interface?
This question refers to the article:
https://learn.microsoft.com/en-us/azure/app-service/app-service-managed-service-identity
I'm trying to figure out how I can simulate using the service principal that is generate for my azure application to work…

darewreck
- 2,576
- 5
- 42
- 67