diff --git a/azurerm/resource_arm_api_management_logger_test.go b/azurerm/resource_arm_api_management_logger_test.go
index <HASH>..<HASH> 100644
--- a/azurerm/resource_arm_api_management_logger_test.go
+++ b/azurerm/resource_arm_api_management_logger_test.go
@@ -89,7 +89,7 @@ func TestAccAzureRMApiManagementLogger_basicEventHubAppInsightsUpdate(t *testing
 					resource.TestCheckResourceAttr(resourceName, "eventhub.#", "1"),
 					resource.TestCheckResourceAttrSet(resourceName, "eventhub.0.name"),
 					resource.TestCheckResourceAttrSet(resourceName, "eventhub.0.connection_string"),
-					resource.TestCheckNoResourceAttr(resourceName, "application_insights.#"),
+					resource.TestCheckResourceAttr(resourceName, "application_insights.#", "0"),
 				),
 			},
 			{
Update azurerm/resource_arm_api_management_logger_test.go