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

Created on 5 Oct 2017  路  5Comments  路  Source: Azure/azure-cli

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.
```c#
{
// 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:** 
```shell
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

question

All 5 comments

@gregdegruy, any uri will work, as long as it is unique, and it doesn't need to exist, so https://mygreatapp will do, and of course you can throw in a GUID to guarantee the uniqueness. It is only used for identity.

ah cool. so the GUID is optional sounds like? going to test this out and add to thread if I'm blocked again.

GUID is optional

Closing, figuring you have got things work :)

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?

Was this page helpful?
0 / 5 - 0 ratings