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 best solutions below
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
- Service Principals I create are not being created as mine
- How to install azure devops extension from powershell script
- az containerapp exec is throwing exception in azure cli task of azure devops pipeline
- Azure cli or rest api end to upload custom policy
- Insufficient privileges using Azure CLI over Pipeline
- Why is running an Azure CLI command in a pipeline super slow?
- How to Set Azure App scope after creating the new App using Azure CLI
- Azure DevOps Pipeline Az CLI task: ERROR: 'NoneType' object is not iterable
- How to pass a script argument with spaces to Azure CLI task
- How to pass more than 5000 characters as command to Azure CLI task?
- Azure CLI Task Yaml
- az account not prompting for login but still granting access
- How to pass AzureCLI credential to docker run (to be used by DefaultAzureCredential inside the container)?
- az keyvault key rotation-policy update - CLI supported version
- Azure : ResourceNotFound from az cli but resource exist in Portal
Related Questions in ENTRA
- Local DX for service-to-service authentication based on Managed Identities in Azure
- Service Principals I create are not being created as mine
- Azure Service Principals are not deleting from the Azure CLI
- Entra multitenant collaboration
- Entra Proxy Service - Switching From IWA to Azure Authentication
- Extract logged in user's email from B2C tenant
- Entra ID Self Service Signup Application Claim Blade missing in B2X
- Entra External ID AttributeCollectionSubmit does not include ObjectId
- JWT Roles Are Missing From Token
- Unique SAML issuer required for each application within the same EntraID account
- Rule Syntax for Azure user.memberof
- Powershell Script to filter new Entra AD users
- Entra ID and SCIM: Setting up enum attribute for request to API
- Azure Automation Account - Connect-MGGraph - Insufficient priveleges
- How can I initialize GraphServiceClient by providing an acessToken using Microsoft.Graph v5 sdk
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)
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?

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