Azure API Authentication
<p>I am using Azure API's in C# code and used below libraries:</p>
<pre class="lang-cs prettyprint-override"><code>using Microsoft.Rest; using Microsoft.Rest.Azure.Authentication;
using Microsoft.Azure.Management.DataLake.Store;
using Microsoft.Azure.Management.DataLake.StoreUploader;
using Microsoft.Azure.Management.DataLake.Analytics;
using Microsoft.Azure.Management.DataLake.Analytics.Models;
using Microsoft.WindowsAzure.Storage.Blob;
</code></pre>
<p>To create connection with Azure:</p>
<pre class="lang-cs prettyprint-override"><code>private static ServiceClientCredentials AuthenticateAzure(string domainName, string nativeClientAppCLIENTID)
{
    // User login via interactive popup
    SynchronizationContext.SetSynchronizationContext(new SynchronizationContext());
    // Use the client ID of an existing AAD &quot;Native Client&quot; application.
    var activeDirectoryClientSettings = ActiveDirectoryClientSettings.UsePromptOnly(nativeClientAppCLIENTID, new Uri(&quot;urn:ietf:wg:oauth:2.0:oob&quot;));
    return UserTokenProvider.LoginWithPromptAsync(domainName, activeDirectoryClientSettings).Result;
}
</code></pre>
<p>When calling <code>LoginWithPromptAsync</code>, I got the popup, which ask my credentials. I don't want this pop-up to appear every time I run the code. Is there any way to come up with this thing beside creating Azure app?</p>
<p>I have an <code>ApplicationId</code>, <code>TenantId</code>, <code>CertificateThumbprint</code>, and <code>SubscriptionId</code> (below).  Can I use these fields to authenticate to azure without prompt?</p>
<p><a href="https://i.stack.imgur.com/61DdO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Uxq4Y.png" alt="example of credentials" /></a></p>