private static AzureHDInsightCluster DisableHttpAccessToCluster( IHDInsightCertificateCredential creds, AzureHDInsightCluster containerWithHttpAccessDisabled) { IManageAzureHDInsightHttpAccessCommand httpManagementClient = ServiceLocator.Instance.Locate <IAzureHDInsightCommandFactory>().CreateManageHttpAccess(); httpManagementClient.CurrentSubscription = GetCurrentSubscription(); httpManagementClient.Credential = GetAzurePsCredentials(); httpManagementClient.Name = containerWithHttpAccessDisabled.Name; httpManagementClient.Location = containerWithHttpAccessDisabled.Location; httpManagementClient.Enable = false; httpManagementClient.EndProcessing(); return(httpManagementClient.Output.First()); }
/// <summary> /// Initializes a new instance of the RevokeAzureHDInsightHttpServicesAccessCmdlet class. /// </summary> public RevokeAzureHDInsightHttpServicesAccessCmdlet() { this.command = ServiceLocator.Instance.Locate <IAzureHDInsightCommandFactory>().CreateManageHttpAccess(); }
/// <summary> /// Initializes a new instance of the GrantAzureHDInsightHttpServicesAccessCmdlet class. /// </summary> public GrantAzureHDInsightHttpServicesAccessCmdlet() { this.command = ServiceLocator.Instance.Locate<IAzureHDInsightCommandFactory>().CreateManageHttpAccess(); }