package azurerm import ( "fmt" "testing" "github.com/hashicorp/terraform/helper/acctest" "github.com/hashicorp/terraform/helper/resource" ) func TestAccAzureRMLoadBalancerNatPool_importBasic(t *testing.T) { resourceName := "azurerm_lb_nat_pool.test" ri := acctest.RandInt() natPoolName := fmt.Sprintf("NatPool-%d", ri) resource.Test(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testCheckAzureRMLoadBalancerDestroy, Steps: []resource.TestStep{ resource.TestStep{ Config: testAccAzureRMLoadBalancerNatPool_basic(ri, natPoolName), }, resource.TestStep{ ResourceName: resourceName, ImportState: true, ImportStateVerify: true, // location is deprecated and was never actually used ImportStateVerifyIgnore: []string{"location"}, }, }, }) }