Closed HighwayofLife closed 7 years ago
Further data, relevant code is from: https://github.com/hashicorp/terraform/blob/master/builtin/providers/azurerm/resource_arm_template_deployment.go
func resourceArmTemplateDeploymentRead
line 154:
var outputs map[string]string
if resp.Properties.Outputs != nil && len(*resp.Properties.Outputs) > 0 {
outputs = make(map[string]string)
for key, output := range *resp.Properties.Outputs {
outputMap := output.(map[string]interface{})
outputValue, ok := outputMap["value"]
if !ok {
// No value
continue
}
outputs[key] = outputValue.(string)
}
}
d.Set("outputs", outputs)
The ARM (JSON) template contains outputs in the following format:
"outputs": {
"clusterProperties": {
"value": "[reference(parameters('clusterName'))]",
"type": "object"
}
}
Pull request: #13670 addresses this issue, I believe.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Attempting to generate a simple Azure Service Fabric infrastructure in Terraform by using
azurerm_template_deployment
to load an ARM (Azure Resource Manager) template containing the Service Fabric infrastructure causes an error after about 20 minutes.However the deployment in Azure Portal shows as successful deployment and all resources are created.
Terraform Version
Terraform version: 0.9.2 6365269541c8e3150ebe638a5c555e1424071417+CHANGES
Affected Resource
Debug Output
Crash Log
https://gist.github.com/HighwayofLife/964dedbfb4561cabd718d379c24c990a
Expected Behavior
Deployment to Azure succeeded, Terraform would report success.
Actual Behavior
Terraform reported a long running process and closed unexpectedly with the error:
azurerm_template_deployment.sfcluster: unexpected EOF
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Use the template created through Azure and include in
main.tf
file:Important Factoids
Service Fabric is an unsupported native Terraform resource, which is why using the ARM template is necessary.