diff --git a/azurerm/resource_arm_api_management_test.go b/azurerm/resource_arm_api_management_test.go index 9bbabd3e739e..1e83b1615689 100644 --- a/azurerm/resource_arm_api_management_test.go +++ b/azurerm/resource_arm_api_management_test.go @@ -306,7 +306,7 @@ resource "azurerm_api_management" "test" { portal { host_name = "portal.terraform.io" - certificate = "${filebase64("testdata/api_management_portal_test.pfx"))}" + certificate = "${filebase64("testdata/api_management_portal_test.pfx")}" certificate_password = "terraform" } } diff --git a/azurerm/resource_arm_application_gateway_test.go b/azurerm/resource_arm_application_gateway_test.go index 60ede482b143..5f7c568db193 100644 --- a/azurerm/resource_arm_application_gateway_test.go +++ b/azurerm/resource_arm_application_gateway_test.go @@ -1313,7 +1313,7 @@ resource "azurerm_application_gateway" "test" { ssl_certificate { name = "${local.ssl_certificate_name}" - data = "${file("testdata/application_gateway_test.pfx")}" + data = "${filebase64("testdata/application_gateway_test.pfx")}" password = "terraform" } } @@ -1392,7 +1392,7 @@ resource "azurerm_application_gateway" "test" { ssl_certificate { name = "${local.ssl_certificate_name}" - data = "${file("testdata/application_gateway_test_2.pfx")}" + data = "${filebase64("testdata/application_gateway_test_2.pfx")}" password = "hello-world" } }