question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[AAD] az ad app create can not include --identifier-uris

See original GitHub issue

Description

Now clear example of what value for --identifier-uris is expected. After peeking at other AAD apps I’ve registered, seems to be a mix of the domain of my tenant directory and a GUID.

Where does this GUID come from, it’s not my tenant ID or my Azure subscription ID? Am I supoosed to use the az tool to generate a GUID and include it in my --identifier-uris?

az_ad_app_create < click here to go to docs on how I was able to construct the below command.

az ad app create --display-name "AwsomeName" --homepage "https://login.windows.net" --identifier-uris "<WHAT_GOES_HERE?>" --reply-urls "https://myawsomesite.azurewebsites.net/.auth/login/aad/callback"

JSON snippet from the manifest of my AAD apps I’ve deployed from the portal.

{
  // metadata json . . .
  // v ISSUE HERE v
  "identifierUris": [
    "https://microsoft.onmicrosoft.com/0eea48bc-8b2f-464e-b814-d870f4f132bf"
  // more metadata json . . .
}

Environment summary

Install Method: apt-get

CLI Version:

azure-cli (2.0.17)

Python location '/opt/az/bin/python3'
Extensions directory '/home/mr-u/.azure/cliextensions'

Python (Linux) 3.6.1 (default, Sep 11 2017, 20:11:41)
[GCC 4.8.4]

OS Version: Windows 10

Shell Type: Bash on Windows

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
liamfoneillcommented, Jan 17, 2019

If I pick a value e.g. “myuri” and delete the application. If I try to recreate the application again it tells me I that the uri already exists. How can I delete the record of this URI?

1reaction
yugangw-msftcommented, Oct 9, 2017

Closing, figuring you have got things work 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

az ad app
Also known as App ID URI, this value is set when an application is used as a resource app. The identifierUris acts as...
Read more >
How to create scope using Azure CLI (az ad app)
Show activity on this post. Using the Azure CLI 2. x, I cannot find a way to "add a Scope" under the expose...
Read more >
Challenge 2: OAuth 2 Implicit Flow | Azure Developer College
Create an Azure AD Application and enable Implicit Grant Flow. Before you can authenticate an user and acquire an access token for the...
Read more >
Preparing to Deploy Ops Manager on Azure
az ad app create --display-name "Service Principal for BOSH" ... Note: You can provide any string for the homepage and identifier-uris flags ...
Read more >
Create an Azure App registrations in Azure Active Directory ...
This guide includes three ways to create App Registration using Azure ... In this PowerShell az module, I can create only register AAD...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found