title: How to read domain of Azure Active Directory
body: <p>I created new Azure account and trying to automatically deploy app inside it with following code:</p>
  
  <pre><code>var app = azure.AccessManagement.ActiveDirectoryApplications
  .Define(appName)
  .WithSignOnUrl(appSignOnUrl)
  .WithAvailableToOtherTenants(true)
  .WithIdentifierUrl(identifierUrl)
  .DefinePasswordCredential(username)
  .WithPasswordValue(password)
  .WithDuration()
  .Attach();
  .CreateAsync();
  </code></pre>
  
  <p>It works, if identifierUrl is hardcoded as Azure Active Directory name.</p>
  
  <p>How can I read identifierUrl (Azure Active Directory domain name) from Azure?</p>
  
  <p>I can see this value in portal, but I cannot find an API to read it.</p>
  
  <p><a href="https://i.stack.imgur.com/rH7C4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rH7C4.png" alt="AD domain value."></a></p>