Azure 资源模板参数地狱
Azure Resource Template Parameters Hell
我如何知道在 Azure 资源中提供哪些参数以及覆盖哪些参数?
我收到这些错误并且浪费了很多时间来弄清楚我需要哪些参数
我应该从参数文件中的参数开始吗?
在模板中粘贴默认值? (如果是这样,为什么他们不已经
做这个?)
有没有办法读取运行系统的实际参数。当我在 azure 中使用 Automation Script 部分时,值为 null
"$schema":
"https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"virtualMachineScaleSets_Services_name": {
"value": null
},
当我粘贴旧配置中的参数时出现错误
14:01:16 - InvalidTemplate: Deployment template validation failed:
'The template parameters 'loadBalancers_LB_xwxservices_MainNode_name,
loadBalancers_LB_xwxservices_MainNode_id,
loadBalancers_LB_xwxservices_MainNode_id_1, clusters_xwxservices_name,
loadBalancers_LB_xwxservices_MainNode_id_5,
loadBalancers_LB_xwxservices_MainNode_id_6,
loadBalancers_LB_xwxservices_MainNode_id_7,
virtualMachineScaleSets_MainNode_name,
loadBalancers_LB_xwxservices_MainNode_id_2,
loadBalancers_LB_xwxservices_MainNode_id_3,
loadBalancers_LB_xwxservices_MainNode_id_4' in the parameters file are
not valid;
New-AzureRmResourceGroupDeployment : 12:27:25 PM - Error:
Code=InvalidTemplate; Message=Deployment template validation failed:
'The template parameters 'nt1applicationStartPort,
nt2applicationEndPort, nt0ephemeralEndPort, clusterName,
nt2ephemeralEndPort, nt2InstanceCount, nt0applicationStartPort,
nt1fabricHttpGatewayPort, virtualNetworkName, certificateThumbprint,
nt0fabricHttpGatewayPort, nt1InstanceCount, adminUserName,
applicationDiagnosticsStorageAccountName, nt1ephemeralEndPort,
vmNodeType0Size, nt1applicationEndPort, dnsTAName, lbTAIPName,
nt0fabricTcpGatewayPort, lbName, dnsName, adminPassword, nicName,
nt2fabricTcpGatewayPort, nt1fabricTcpGatewayPort,
secondaryCertificateUrlValue, vmNodeType2Size, clusterLocation,
nt1ephemeralStartPort, supportLogStorageAccountName,
nt2applicationStartPort, sourceVaultValue, nt0ephemeralStartPort,
vmStorageAccountName, nt0applicationEndPort, publicIPAddressName,
computeLocation, nt2fabricHttpGatewayPort, nt2ephemeralStartPort,
vmNodeType1Size, secondaryCertificateThumbprint, certificateUrlValue,
nt0InstanceCount, lbIPName' in the parameters file are not valid;
they are not present in the original template and can therefore not
be provided at deployment time. The only supported parameters for this
template are 'virtualMachineScaleSets_Services_name,
virtualMachineScaleSets_Stateful_name,
你需要放松一下。
自动生成的手臂模板不适合生产,它们需要改进。这是预期的。 Azure 无法代替您推断任何单个参数值。通常大多数参数都会被填充,但有时不会。您无能为力,请手动填写。
我如何知道在 Azure 资源中提供哪些参数以及覆盖哪些参数?
我收到这些错误并且浪费了很多时间来弄清楚我需要哪些参数
我应该从参数文件中的参数开始吗? 在模板中粘贴默认值? (如果是这样,为什么他们不已经 做这个?)
有没有办法读取运行系统的实际参数。当我在 azure 中使用 Automation Script 部分时,值为 null
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#", "contentVersion": "1.0.0.0", "parameters": { "virtualMachineScaleSets_Services_name": { "value": null },
当我粘贴旧配置中的参数时出现错误
14:01:16 - InvalidTemplate: Deployment template validation failed: 'The template parameters 'loadBalancers_LB_xwxservices_MainNode_name, loadBalancers_LB_xwxservices_MainNode_id, loadBalancers_LB_xwxservices_MainNode_id_1, clusters_xwxservices_name, loadBalancers_LB_xwxservices_MainNode_id_5, loadBalancers_LB_xwxservices_MainNode_id_6, loadBalancers_LB_xwxservices_MainNode_id_7, virtualMachineScaleSets_MainNode_name, loadBalancers_LB_xwxservices_MainNode_id_2, loadBalancers_LB_xwxservices_MainNode_id_3, loadBalancers_LB_xwxservices_MainNode_id_4' in the parameters file are not valid;
New-AzureRmResourceGroupDeployment : 12:27:25 PM - Error: Code=InvalidTemplate; Message=Deployment template validation failed: 'The template parameters 'nt1applicationStartPort, nt2applicationEndPort, nt0ephemeralEndPort, clusterName, nt2ephemeralEndPort, nt2InstanceCount, nt0applicationStartPort, nt1fabricHttpGatewayPort, virtualNetworkName, certificateThumbprint, nt0fabricHttpGatewayPort, nt1InstanceCount, adminUserName, applicationDiagnosticsStorageAccountName, nt1ephemeralEndPort, vmNodeType0Size, nt1applicationEndPort, dnsTAName, lbTAIPName, nt0fabricTcpGatewayPort, lbName, dnsName, adminPassword, nicName, nt2fabricTcpGatewayPort, nt1fabricTcpGatewayPort, secondaryCertificateUrlValue, vmNodeType2Size, clusterLocation, nt1ephemeralStartPort, supportLogStorageAccountName, nt2applicationStartPort, sourceVaultValue, nt0ephemeralStartPort, vmStorageAccountName, nt0applicationEndPort, publicIPAddressName, computeLocation, nt2fabricHttpGatewayPort, nt2ephemeralStartPort, vmNodeType1Size, secondaryCertificateThumbprint, certificateUrlValue, nt0InstanceCount, lbIPName' in the parameters file are not valid; they are not present in the original template and can therefore not be provided at deployment time. The only supported parameters for this template are 'virtualMachineScaleSets_Services_name, virtualMachineScaleSets_Stateful_name,
你需要放松一下。
自动生成的手臂模板不适合生产,它们需要改进。这是预期的。 Azure 无法代替您推断任何单个参数值。通常大多数参数都会被填充,但有时不会。您无能为力,请手动填写。