diff --git a/azurerm/resource_arm_express_route_circuit_peering.go b/azurerm/resource_arm_express_route_circuit_peering.go index 5bb0f3bb2c7d..a08d1e5fbe5a 100644 --- a/azurerm/resource_arm_express_route_circuit_peering.go +++ b/azurerm/resource_arm_express_route_circuit_peering.go @@ -18,6 +18,7 @@ func resourceArmExpressRouteCircuitPeering() *schema.Resource { Read: resourceArmExpressRouteCircuitPeeringRead, Update: resourceArmExpressRouteCircuitPeeringCreateUpdate, Delete: resourceArmExpressRouteCircuitPeeringDelete, + Importer: &schema.ResourceImporter{ State: schema.ImportStatePassthrough, }, diff --git a/azurerm/resource_arm_express_route_circuit_peering_test.go b/azurerm/resource_arm_express_route_circuit_peering_test.go index b34887cff630..fa0237ed1661 100644 --- a/azurerm/resource_arm_express_route_circuit_peering_test.go +++ b/azurerm/resource_arm_express_route_circuit_peering_test.go @@ -30,9 +30,10 @@ func testAccAzureRMExpressRouteCircuitPeering_azurePrivatePeering(t *testing.T) ), }, { - ResourceName: resourceName, - ImportState: true, - ImportStateVerify: true, + ResourceName: resourceName, + ImportState: true, + ImportStateVerify: true, + ImportStateVerifyIgnore: []string{"shared_key"}, //is not returned by the API }, }, })