我正在尝试通过Terraform部署虚拟机规模集扩展,但一直遇到此错误。
我已经成功部署了Service Fabric和VM Scale Set,但是如果没有将扩展导入到Scale Set上,它们将无法连接。
请参阅我的代码
resource "azurerm_virtual_machine_scale_set_extension" "sfNodes-Extension" {
name = "ServiceFabricNodeVMscalesets"
virtual_machine_scale_set_id = azurerm_virtual_machine_scale_set.sf-nodes.id
publisher = "Microsoft.Azure.ServicFabric"
type = "Microsoft.Azure.ServiceFabric.ServiceFabricNode"
type_handler_version = "1.1"
settings = "{ \"certificate\": { \"thumbprint\": \"8BD****************63F\", \"x509StoreName\": \"My\" } , \"clusterEndpoint\": \"https://uksouth.servicefabric.azure.com/runtime/clusters/74a1a0ed-a66d-****-****-f8fd730e67e7\", \"nodeTypeRef\": \"sfNodes\", \"dataPath\": \"D:\\\\SvcFab\",\"durabilityLevel\": \"Bronze\",\"nicPrefixOverride\": \"10.0.0.0/24\"}"
}
我在Terraform Apply时遇到的错误
Extension with publisher 'Microsoft.Azure.ServiceFabric', type 'Microsoft.Azure.ServiceFabric.ServiceFabricNode', and type handler version '1.1' could not be found in the extension repository
此刻一切都迷失了,可能必须通过Azure门户进行部署。