I've executed the code below to create a service principal and then list all of my service principals. However, the service principal I just created is not listed.
Service Principals I create are not being created as mine
77 views Asked by kevin At
1
There are 1 answers
Related Questions in AZURE
- How to update to the latest external Git in Azure Web App?
- I need an azure product that executes my intensive ffmpeg command then dies, and i only get charged for the delta. Any Tips?
- Inject AsyncCollector into a service
- mutual tls authentication between app service and function app
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Application settings for production deployment slot in Azure App Services
- Encountered an error (ServiceUnavailable) from host runtime on Azure Function App
- Implementing Incremental consent when using both application and delegated permissions
- Invalid format for email address in WordPress on Azure app service
- Producer Batching Service Bus Vs Kafka
- Integrating Angular External IP with ClusterIP of .NET microservices on AKS
- Difficulty creating a data pipeline with Fabric Datafactory using REST
- Azure Batch for Excel VBA
- How to authenticate only Local and Guest users in Azure AD B2C and add custom claims in token?
- Azure Scale Sets and Parallel Jobs
Related Questions in AZURE-ACTIVE-DIRECTORY
- How to authenticate only Local and Guest users in Azure AD B2C and add custom claims in token?
- Microsoft Entra ID - How to delete a tenant?
- Azure AD guest account in web app authentication user claims data
- Handling errors in MSAL Redirect - reactjs login with microsoft sso
- Azure Cross Cloud Auth using AAD
- Get id token from the access token
- Microsoft Identity does not work in docker desktop
- how to get refresh token in msal-browser Azure AD B2C login?
- Local DX for service-to-service authentication based on Managed Identities in Azure
- How can I add an identity provider to an existing user in an AWS Cognito user pool using the OIDC protocol?
- Azure B2C MFA custom policy flow 'try another way'
- How can I protect an Java Spring boot API against Azure AD B2C if I only have an id_token?
- Is there any way to get a new Azure CLI token without logging out?
- Code a Delegated Permission in Azure Powershell
- Service Principals I create are not being created as mine
Related Questions in AZURE-CLI2
- How to create new vm using existing VHD image in blob storage in azure cli 2.0?
- How ubuntu parameter by uuidgen and remove "-" format
- what is the support for cli az cosmosdb access to container data?
- SCM_DO_BUILD_DURING_DEPLOYMENT is set to false explicitly by Azure Cli
- AZ REST DevOps method returns "az : Not a json response"
- Does create service endpoint work? REST method fails, CLI Hangs
- Insufficient privileges using Azure CLI over Pipeline
- How to perform substring like function in jmespath on a string
- How to Get All the Containers From a Specific Azure Storage Account using Azure CLI?
- Powershell count azure CLI result
- Powershell loop until the output is one line
- Azure special characters regex contains fault ones but i cant find out which ones
- Do you know how to create a custom domain name with azure command line?
- How to tell if my VM is Gen1 or Gen2 in Azure?
- Microsoft example for installing Azure extension always gives error Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
Related Questions in ENTRA
- Azure unknown Service Prinicple Sign-In
- Does Msal work with Blazor V8 release? And where should the Msal components be located?
- How to add Company name as a field on a Sign up User Flow?
- Provisioning Profile Photos between Microsoft Entra and Slack
- GraphClient Business Account OnBehalfOfCredential authentication failed
- API Sharepoint : List and download files with App Azure
- EntraID Token results in 'The audience 'xxx' is invalid"
- Doesn't Azure AD have a metadata document that lists the `issuer` for v1 access tokens?
- Flutter Web Azure AD (Entra) authentication with aad_OAuth not working
- Microsoft Identity Platform not available as authentication type choice for a Blazor Server app
- User not allowed by policy conditions - Entra External ID for customers
- Authentication using AccessToken / ServicePrincipal
- Do Personal Accounts Have a UPN
- How do I add an on-prem ADConnect synced user attribute as a claim in the ID token of my app in AAD/Entra?
- Azure AD B2C - Reject Passwords with name, surname, username
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)

When I ran those CLI commands in my environment, I too got same response like this:
Response:
This happens if the signed-in user has Admin roles like Global Administrator of the tenant, that won't be added as Owner of newly created service principal which can be checked here in Enterprise applications:
But when I ran the same commands by signing in with new user account not having Global Administrator access, got response successfully like this:
Response:
In such cases where you are logging with Admin accounts, you can make use of below bash script that adds signed-in user as Owner of newly created service principal explicitly:
Response:
To confirm that, I checked the same in Portal where signed-in user is added as Owner of service principal like this:
When I ran the same command now to list applications owned by signed-in user having Admin access, I got response with expected results:
Response:
Reference: Overview of enterprise application ownership - Microsoft Entra ID