Example #1
0
        static async Task MainAsync(string[] args)
        {
            try
            {
                var result = await Helper.AcquireTokenWithCertificatAsync();

                await AzureRM.AzureResourceManagerHelper.Authenticate(result.AccessToken, result.TenantId)
                .ListSubscriptionAsync();
            }
            catch (Exception exc)
            {
                Console.WriteLine("Something went wrong.");
                Console.WriteLine("Message: " + exc.Message + "\n");
            }
            Console.Read();
        }