Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure 如何获取创建HDInsight群集时可以使用的VM大小列表_Azure_Azure Virtual Machine_Azure Hdinsight - Fatal编程技术网

Azure 如何获取创建HDInsight群集时可以使用的VM大小列表

Azure 如何获取创建HDInsight群集时可以使用的VM大小列表,azure,azure-virtual-machine,azure-hdinsight,Azure,Azure Virtual Machine,Azure Hdinsight,给定c#.net 4.5.2,在创建HDInsight群集时,如何知道我所在区域中的头部/工作节点可以使用的大小 在门户中,我得到A3、A4、A6、A7、A10、A11、D3、D4、D12、D13和D14 在我的地狱里 北欧A10、A11、A5、A6、A7、A8、A9、Basic_A0、Basic_A1、Basic_A2、Basic_A3、Basic_A4、超大、超小、大、中、小、标准_D1、标准_D1、标准_v2、标准_D11、标准_v2、标准_D12、标准_v2、标准_D13、标准_v2、

给定c#.net 4.5.2,在创建HDInsight群集时,如何知道我所在区域中的头部/工作节点可以使用的大小

在门户中,我得到A3、A4、A6、A7、A10、A11、D3、D4、D12、D13和D14

在我的地狱里 北欧A10、A11、A5、A6、A7、A8、A9、Basic_A0、Basic_A1、Basic_A2、Basic_A3、Basic_A4、超大、超小、大、中、小、标准_D1、标准_D1、标准_v2、标准_D11、标准_v2、标准_D12、标准_v2、标准_D13、标准_v2、标准_D13、标准_D14、标准_D2、标准_v2、标准_、标准D2、标准_D2、,标准D3-v2、标准D4、标准D4-v2、标准D5-v2、标准DS1、标准DS11、标准DS12、标准DS13、标准DS14、标准DS2、标准DS3、标准DS4

我应该使用什么API调用来获取我可以创建的可用HDInsights

注;这使用的是Microsoft.WindowsAzure.Management.HDInsight,版本=1.5.12.0,因为最新的Microsoft.Azure.Management.HDInsight正在预览中

             var clusterInfo = new ClusterCreateParametersV2
             {
                Name = clusterConfig.ClusterName,
                Location = clusterConfig.Location,
                DefaultStorageAccountName = clusterConfig.StorageAccount.StorageAccountName,
                DefaultStorageAccountKey = clusterConfig.StorageAccount.StorageAccountKey,
                DefaultStorageContainer = _storageConfiguration.Containers.HDInsightInstance,
                UserName = clusterConfig.UserName,
                Password = clusterConfig.Password,
                ClusterSizeInNodes = clusterConfig.ClusterSize,
                Version = clusterConfig.Version,
                HeadNodeSize = clusterConfig.NodeSize,
                DataNodeSize = clusterConfig.NodeSize,
            };
```在c#中,使用“Microsoft.Azure.Management.HDInsight”version=“1.1.0”


iaas或paas

您是否正在使用Microsoft.Azure.Management.HDInsight SDK或Azure PowerShell寻找答案?C#SDK。出于兴趣,您知道如何在PowerShell中执行此操作吗?看起来,
$x=Get-AzureRmHDInsightProperties
可能会有帮助
var location = "North Europe";
using (var client = new HDInsightManagementClient(AzureActiveDirectory.GetTokenCloudCredentials(SubscriptionId)))
{
    var response = await client.Clusters.GetCapabilitiesAsync(location);
    var sizes = response.VmSizes["iaas"].AvailableVmSizes.ToArray()
};
    }