mistakenly ran import-azurepublishsettingsfile, now lost connection to azure from ipsec tunnel

Occasional Contributor

Hi There, we're working on a project to migrate from an IPSEC tunnel to an ExpressRoute circuit for our Azure connection. today, I mistakenly ran the import-azurepublishsettingsfile command and no longer have a connection to Azure from our IPSEC tunnel. how can I roll back or recreate our IPSEC tunnel?

1 Reply
Best Response confirmed by Pete Gibson (Occasional Contributor)

ok, to fix this:


logged onto Azure portal and deleted the previous IPSEC connection.

then recreated the connection and all is well.



note to self: do more research before running Powershell scripts without being 100% of the implications.