Questions tagged [service-principal]

161 questions
2
votes
1 answer

Azure Service Principal - force expiration on purpose?

Azure Service Principals have an expiration date by default and have the need to be rotated. But is there a way to invalidate or force expiry of a service principal?
GilliVilla
  • 4,998
  • 11
  • 55
  • 96
2
votes
0 answers

What are all these unnamed service principals in my Azure account?

When I run az role assignment list --subscription $sub_id, I get a list of ~20 service principals. All have Contributor access. Only 1 is named (the one I created). The others show "principalName": "",. There is only 1 service principal showing in…
SeaDude
  • 3,725
  • 6
  • 31
  • 68
2
votes
1 answer

Can I query the available service principle APIs through Graph or PowerShell?

I am automating the requesting of AAD service principals / applications, or more specifically the APIs, and am trying to pull a list of all the APIs available through the portal, using either Graph or PowerShell. Specifically, if you go into an…
2
votes
0 answers

Get azure service principal inside Azure ADO pipeline task and then pass it through to the next step in the pipeline

I have already created a service connection between existing subscription and ADO. Problem statement 1: I am running a simple ADO job which has just one Azure cli step. In the step I have checked the option to "Access service principal details in…
makil
  • 489
  • 2
  • 7
  • 19
2
votes
1 answer

Is it possible to assign roles and scopes to a newly created app using a Service Principal in PowerShell?

I have written a module to create an app registration in Azure AD and assign roles and scopes. When using my own credentials as a Global Administrator to connect to Azure AD it works but when using a Service Principal with certificate thumbprint it…
2
votes
1 answer

Can't create new Service Principals in Azure despite being under quota

I can't create any new SPs in Azure despite being under quota. If I run: az ad sp create-for-rbac I get The directory object quota limit for the Principal has been exceeded. Please ask your administrator to increase the quota limit or delete…
JoeS
  • 1,405
  • 17
  • 30
2
votes
2 answers

Relationship between Azure RBAC roles and service principal

What is the relationship between Azure RBAC roles and service principal? Are they the same thing or Azure RBAC roles is the property of the account that can create different service principals by different RBAC roles? What is the relationship…
SLN
  • 4,772
  • 2
  • 38
  • 79
2
votes
1 answer

@azure/identity credentials.getToken('openid') returns null instead of token for DefaultAzureCredential() with Environment variables configed?

I'm trying to retrieve some secrets from Azure's keyvault but I cannot seem to authenticate using @azure/identity module. Versions: "@azure/identity": "^1.0.0-preview.6", "@azure/keyvault-secrets": "^4.0.0-preview.9", When I try to get the token:…
2
votes
1 answer

Azure AD - create a new Service Principal programmatically

I'm writing a python script to provision and configure Azure services. I would like to provision a new Service Principal as a part of my script but have issues with permissions. If I run this command in my terminal (after azure login), it will…
Petr Hecko
  • 460
  • 1
  • 8
  • 17
2
votes
1 answer

What happens to Azure Service Principal Ownership/Roles when subscription is transfer

I have an Azure Service Principal that I use with my proj pipeline (Azure DevOps). I'm going to provision an environment for the client in azure with my subscription. I'm going to transfer the subscription to the client (Which I know how to do). But…
BAcevedo
  • 105
  • 3
  • 12
2
votes
1 answer

Create service principal programmatically in Azure Python API

How can I, using the Azure Python API, create a full set of credentials that can later be used to start and deallocate all VMs in a named resource group, without any other permissions? I have thoroughly researched the example code and both official…
Mr. Developerdude
  • 9,118
  • 10
  • 57
  • 95
2
votes
1 answer

Securing you're app's ClientId and SecretKey in Azure

What's the guidance for protecting: ClientId and SecretKey to avoid service identity impersonation? These are used for ServicePrincipal authentication in Azure Active Directory using OAuth. Currently, we're using config settings in our…
bartonm
  • 1,600
  • 3
  • 18
  • 30
1
vote
1 answer

Bitbucket Cloud repository using Repository Access Token for Databricks Service Principal git credentials

I am trying to get a Databricks Workflow running as a Service Principal. I am using a Bitbucket Cloud Repository Access Token so that the git credentials for the Databricks Service Principal to use are not tied to an individual user. Based on the…
1
vote
0 answers

How can we use service principal as user in Databricks SQL

If I want to run with service principles instead my user id in databricks sql is possible ?
1
vote
0 answers

Service Principal Authentication method to connect to SQL MI server using SSIS - Script task - C# code

From last few days I am looking for solution- I need to connect to Azure SQL MI server using service principal authentication through SSIS script task - C# code. I am using Microsoft.Data.SqlClient.dll v5.0.0, .net framework (by default) v4.7,…
1 2
3
10 11