Questions tagged [azure-service-principal]
235 questions
1
vote
1 answer
Azure Devops Service Principal with Azure Machine Learning Workspace
I have an Azure Devops Pipeline which runs a script that creates and runs an experiment in an Azure Machine Learning Studio workspace.
Msft Documentation suggests using Service Principal Authentication for this type of…

klettg
- 21
- 5
1
vote
2 answers
Azure : GroupsClient.BaseClient.Get(): unexpected status 403 with OData error: Authorization_RequestDenied: Insufficient privileges
I’m trying to create the Azure AD Group using the following terraform code
# Required Provider
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.0.2"
}
}
required_version = ">=…

One Developer
- 99
- 5
- 43
- 103
1
vote
1 answer
Create b2c tenant failed from both ARM API and Portal
From our previous ask, we got to know how to create b2c tenant using ARM API. This is the reference: https://learn.microsoft.com/en-us/rest/api/activedirectory/b2c-tenants/create?tabs=HTTP#scopes
PUT…

Suvmam950
- 25
- 5
1
vote
1 answer
Any graph api call to create Azure b2c tenant
We want to create Azure b2c tenant using Graph api.
We tried searching in Internet and got how to create b2c tenant from portal. This is the reference we found: https://learn.microsoft.com/en-us/azure/active-directory-b2c/tutorial-create-tenant
But…

Suvmam950
- 25
- 5
1
vote
1 answer
What Azure Service Principals really are?
From the page about Azure CLI Sign-in:
Service principals are accounts not tied to any particular user, which can have permissions on them assigned through pre-defined roles. Authenticating with a service principal is the best way to write secure…

YoavKlein
- 2,005
- 9
- 38
1
vote
1 answer
Azure pipeline failing to build helm chart into my private AKS
I'm currently having issues with my pipeline since is passing but at the time of trying to run my helm chart into my private AKS Cluster I'm getting the following issue:
command started at 2022-10-26 21:31:42+00:00, finished at 2022-10-26…

Hvaandres
- 755
- 2
- 12
- 39
1
vote
1 answer
Azure DevOps pipeline authentic with service principle for API
I was trying to create an Azure DevOps pipeline with the help of REST API. But I know that the authentication can be established with the help of a token. But anybody knows how to authenticate Azure DevOps with the help of the service principle for…

Techiescorner
- 791
- 2
- 12
- 25
1
vote
1 answer
Malformed error while generating token for outlook and then exchanging with graphapi
When I try to generate access token for a user in Outlook and then Exchanging Access Token for graph Api it failed with malformed error.
To generate access token, I passed these values
Complete error is:
{
"error": "invalid_grant",
…

smithr
- 13
- 2
1
vote
0 answers
Cant download azure artifacts through service principal
I am trying to fetch Azure Artifacts through Service Principal in PowerShell but not able to do it.
Reproduction step:
az login --service-principal --username "" -p="" --tenant ""
Above command works fine and returns the following…

Owais Khan Afridi
- 11
- 1
1
vote
1 answer
How can I grant consent to my own app in azure, in case I am not global admin in tenant?
Given I have created an app using this repository in Azure.
And this app is deployed using a Service Principal which was created by below command:
az ad sp create-for-rbac --name "fxpricepredictor" --role contributor --scopes…

Sal-laS
- 11,016
- 25
- 99
- 169
1
vote
2 answers
Graph API is removing certificates from my Enterprise Application in AzureAD
When I call graphAPI from my Powershell script it first removes all keyCredentials(certificates) from the Enterprise Application Service Principal in Azure AD, then uploads my custom certificate. How can I retain the certificates that are currently…

Shawn Tucker
- 21
- 3
1
vote
1 answer
Login to python script using service principal
I have registered one App in AAD, I got its App ID. I did role assignment for this app as "owner of a particular subscription"
Now from Azure Runbook I want to run my python script and use this App credentials to login. My python script has az cli…

Sadhna Pandey
- 19
- 3
1
vote
1 answer
Retrieve members from an Azure AD group including service principals
I have an Azure AD group containing a User, a Group and a service principal. I want to retrieve them with the Azure CLI.
When trying this:
az ad group member list --group
Only the User and Group details are being retrieved.
I double…

crystyxn
- 1,411
- 4
- 27
- 59
1
vote
2 answers
Azure Role Assignment to AAD group fails with Terraform
I am trying to assign contributor rights on a resource group to an Azure Active Directory Group using Terraform. The Terraform script I use looks like this:
# Deploy Resource Groups
resource "azurerm_resource_group" "rg" {
name =…

Bakkie103
- 47
- 6
1
vote
2 answers
What is best practice to create Service connection for multiple microservice deployments?
Background - I'm working on Azure DevOps CICD pipelines for web API microservices project which built in ASP.NET core. There are multiple microservices projects for which I'm implementing the CICD on Azure DevOps. These web APIs are deployed on…

Ajit Medhekar
- 1,018
- 1
- 10
- 39