Questions tagged [azure-service-principal]

235 questions
0
votes
1 answer

Azure Build Pipeline - How to Grant Access to Storage Accounts?

Goal: Securely get Azure resources by tag from Azure pipeline. Details: I have an azure-pipelines.yaml that builds a static website and saves it to a hard-coded storage account. This is a security vulnerability. I now need to update the file to…
VSO
  • 11,546
  • 25
  • 99
  • 187
0
votes
1 answer

how to set the service principle display name in azure active directory

I am trying to create a service principle in using Microsoft graph API. Following the document i refereed create service principle. I just want to identify the service principle that created through graph API. So i just add display name in graph API…
june alex
  • 244
  • 4
  • 17
0
votes
1 answer

Azure Log Analytics from multiple tenants

I'm building a C# MVC webapp. The plan is: First time user creates a custom account When logged in, add a tenant with Microsoft OAuth2, agree to permissions The webapp aggregates pre-configured Log Analytics items for each user's onboarded…
0
votes
1 answer

Azure Synapse - Unable to create External table Error 401 Unauthorized

I have a service principal using which I am trying to create an external table for Azure Data lake gen1. The external table creation fails with the error: Error occurred while accessing HDFS: Java exception raised on call to HdfsBridge_IsDirExist.…
0
votes
1 answer

In Azure can we create a service principal connection that can access multiple subscriptions

So I have an identity(azure AD email id) that has access to multiple subscriptions in the azure portal. when I create a service principal using that identity, it binds it to only 1 subscription and i am not able to use that service principal to…
Aparna
  • 835
  • 2
  • 23
  • 47
0
votes
2 answers

How to refresh access token provided by TokenCredential / ClientSecretCredential by Azure Identity Java SDK?

I am trying to obtain an access token using the Azure Identity Java SDK and later refresh it using the refresh token. I use the following SDK: com.azure azure-identity
0
votes
1 answer

Assign the claimsMappingPolicy to a servicePrincipal giving error?

I have followed the below stackoverflow link ( The answer provided by Allen Wu) How to add a custom claim and retrieve the same as part of access_token, when the scope is not Graph API in Azure AD? to add a custom claim in access token. But I am…
0
votes
3 answers

Multitenant API - Admin consent ERROR https://login.microsoftonline.com/organizations/v2.0/adminconsent AADSTS90009

Using the following endpoint acting as the Admin on the tenantB I want to register a multitenant API App defined in another…
0
votes
2 answers

Service principle assign to who? ACR or App service?

I have an azure app service that pulls an image from azure ACR and fire up the image to run the application. I would like the action that the app service pulling the image from ACR by service principle. My question is which resource should I assign…
0
votes
1 answer

Insufficient privileges to complete the operation with listing service principals using az ad sp list

Hi I'm trying to use the Azure CLI command logged in a service principal az ad sp list and I get the error message Insufficient privileges to complete the operation. The service principal is owner of the subscription and has been assigned Delegated…
Kaule
  • 1
  • 1
  • 1
0
votes
1 answer

Azure service principal: Grant an appRoleAssignment for a service principal does update the original permission's status

I am trying to grant admin consent to assigned permissions using Microsoft graph APIs. Steps i performed are as follows: Create application having "appRoles" array defined. create service principal with appId. Grant an appRoleAssignment for a…
0
votes
1 answer

Create service principle before creating the resource

A service principle can be created to control the access to a specific resource in azure. For example azure ACR's service principle can be created in according to the official page My question is that can I create the service principle before the…
0
votes
1 answer

Azure Service Principal creation - using Azure function

I am trying to write a Python Azure Function to create service principal with custom role. I have the JSON template to pass role definitions and create a custom role. The idea for the function is to using REST API equivalent to 'az ad sp…
0
votes
2 answers

powershell core 7.0.3 Az.Account PSADServicePrincipal appRoles and oauth2permissions

I have windows powershell 5.1 script block like the following that successfully retrieves appRoles and oauth2permissions. import-module -name AzureAD if ($null -eq $mycredentials) { $mycredentials = Get-Credential } $azConnectionContext =…
0
votes
3 answers

Insufficient privileges to deploy Azure Service Principal

I'm a Microsoft employee and I'm new to Azure. I would like to deploy a Service Principal on my internal Microsoft Azure subscription. Using the Azure CLI, when I run az ad sp create-for-rbac --name $spn_name I get the error "Insufficient…
1 2 3
15
16