Questions tagged [azure-service-principal]
235 questions
12
votes
2 answers
Login into Azure cli for a service principal
I'm trying to get my ansible script to get logged into azure via azure cli. For some reasons, I'm not allowed to use the ansible azure package. I have to use the shell and call directly the commands from there.
I'm fairly new with azure in general,…

Flashito
- 332
- 1
- 4
- 16
9
votes
4 answers
What Role or Scopes Does An Azure Service Principal Need to Create Applications
I currently create a service principal using the Azure CLI:
az ad sp create-for-rbac --name foo --role Contributor
I need the service principal to have enough permissions to create/modify/delete various Azure AD resources including Applications,…

Muhammad Rehan Saeed
- 35,627
- 39
- 202
- 311
7
votes
3 answers
How to create client secret for Azure Service Principal using Terraform
I am fairly new in Azure and Terraform, and am trying to create a secret client for Azure Service Principal using Terraform.
I am unable to figure this out.
This is what I have right now:
provider "azuread" {
version = "=0.7.0"
client_id =…

Shikhar Ambashta
- 195
- 3
- 10
5
votes
1 answer
Connect to Synapse from DataBricks using Service Principal
I am trying to connect from Databricks to Synapse using service principal.
I have configured the service principal in cluster configuration
fs.azure.account.auth.type..dfs.core.windows.net OAuth
fs.azure.account.oauth.provider.type…

Ram
- 51
- 1
- 3
4
votes
1 answer
Azure DevOps Service Connection to B2C Tenant?
I am trying to establish a Service Connection from Azure DevOps to my Azure B2C tenant and am running into issues. I'm starting to think it's not even possible.
I have multiple Service Connections to the primary Azure Subscription/Tenant, but…

aseb
- 274
- 2
- 11
4
votes
1 answer
Graph API: Listing the Active SAML signing certificates
I am using Postman and the servicePrincipals API to build a list of our SAML signing certificates and their expirations. I have all of the keyCredentials for the appID as well as the preferredTokenSigningKeyThumbprint for the Active cert. However, I…

nooclearwessel
- 101
- 4
3
votes
0 answers
Setting up Spring Data JPA with AD Service Principal in application.properties
So as per documentation in Azure:
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import com.microsoft.sqlserver.jdbc.SQLServerDataSource;
public class AADServicePrincipal {
public static void main(String[]…

Soumyadeep Ghosh
- 366
- 5
- 13
3
votes
1 answer
Incremental redeployment of an ARM Template with Role Assignments throws an error
If I use Azure Pipelines to do an 'Incremental' 'Resource Group' scoped deployment of an ARM template containing Role Assignments, it seems I can't rerun/redeploy the pipeline without receiving an error on the Role Assignment…

JohnKoz
- 908
- 11
- 21
3
votes
2 answers
How to find an identity by client id in Azure?
I have an application (AWX) with a script that is trying to perform an action in Azure (add tags to a vm). In AWX, I get the following error, apparently from Azure: msg: "Error retrieving resource group usw-sys-rg-001 - The client '9d...27' with…

208_man
- 1,440
- 3
- 28
- 59
3
votes
3 answers
Is there a way to use ARM Template to create an Azure Service Principal?
I am trying to write an ARM template that can create a service principal on Azure with all the specified permissions. The end goal is to automate this process and create n number of service principals using the template. Is there a way to do this?…

KGosalia
- 39
- 1
- 5
2
votes
1 answer
The secret of KeyVault parameter '' cannot be retrieved. Http status code: 'Forbidden'. Error message: 'Access denied to first party service
We have a Azure DevOps pipeline that we are using to deploy infrastructure to Azure using bicep files. In Azure, We have create a App Registration Service Principle and added it as a contributor to our Subscription, which we use as a Service…

Ross
- 2,463
- 5
- 35
- 91
2
votes
2 answers
How to use output of one child module as an input to another child module in Terraform
I have the below directory structure
├── main.tf
├── output.tf
├── variables.tf
├── modules
│ ├── ServicePrincipal
│ │ ├── variables.tf
│ │ ├── outputs.tf
│ │ ├── main.tf
│ ├── aks
│ │ ├── main.tf
│ │ ├── output.tf
│ │ …

piyush sachdeva
- 416
- 4
- 14
2
votes
2 answers
Power bi dataset refresh: how to use Service Principal for data source credentials
One of the data sources in the Power Bi dataset points to Azure SQL straight (No Data Gateways). Service Principal can take ownership of the data set, but I do not see a way to assign credentials to the SQL data source inside this data set. In this…

Alexa Goldi
- 19
- 1
- 2
2
votes
2 answers
differences between aad application password and service principal password
When creating a AAD application, we are able to create client secrets for the application. So I understand the client secrets are for the application. As a contrast, we can also create many service principals for the same application. And each…

derek
- 9,358
- 11
- 53
- 94
2
votes
0 answers
Velero installation issue with AKS - "Error getting a backup store"
I am installing Velero in AKS.
Steps-
Velero(version 1.6.1) downloaded and unzipped it then moved it to the /usr/local/bin/
I have created Service Principle with the contributor role.
my credential-velero…

Darshana Patel
- 507
- 1
- 11
- 25