public void Initialize() { if (this.init == false) { string tenant = "microsoft.onmicrosoft.com"; this.Authentication = new ADLC.Authentication(tenant); Authentication.Authenticate(); this.SubscriptionId = "045c28ea-c686-462f-9081-33c34e871ba3"; this.ResourceGroup = "InsightsServices"; var adla_account = new AdlClient.AnalyticsAccount(this.SubscriptionId, this.ResourceGroup, "datainsightsadhoc"); var adls_account = new AdlClient.StoreAccount(this.SubscriptionId, this.ResourceGroup, "datainsightsadhoc"); this.AzureClient = new AdlClient.AzureClient(this.Authentication); this.StoreClient = new AdlClient.StoreClient(this.Authentication, adls_account); this.AnalyticsClient = new AdlClient.AnalyticsClient(this.Authentication, adla_account); this.init = true; } }
public bool AccountExsists(StoreAccount account) { var client = _get_account_mgmt_client(account.SubscriptionId); return(client.Account.Exists(account.ResourceGroup, account.Name)); }
public StoreRestClients(StoreAccount store, Authentication authSession) { this.Store = store; this.FileSystemRest = new StoreFileSystemRestWrapper(authSession.Credentials); this.StoreAccountMgmtRest = new StoreManagementRestWrapper(store.SubscriptionId, authSession.Credentials); }
public MSADLS.Models.DataLakeStoreAccount GetAccount(StoreAccount account) { return(this.GetAccount(account.SubscriptionId, account.ResourceGroup, account.Name)); }