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());
        }