Goose
Goose

Reputation: 3279

Can I delete an on-premises gateway in Azure?

Can't find any information on this anywhere - I saved incorrect settings on this one on creation and can't change them now. I want to create a new gateway in Azure to associate with the on-premises gateway installation I created on my machine.

Upvotes: 0

Views: 2552

Answers (3)

Esther Fan - MSFT
Esther Fan - MSFT

Reputation: 8526

Yes, now that the on-premises data gateway became generally available in early May 2017, you can delete your gateway resource from the Azure portal. However, this capability applies only to the gateway resource, not the gateway installation.

From the main Azure menu, go to All Resources. Select your gateway resource. Go to On-premises Data Gateway, and on the toolbar, choose Delete. For example:

Delete on-premises data gateway resource in Azure portal

For more details, see:

Access data on premises from Azure Logic Apps

Install the on-premises data gateway for Azure Logic Apps

Upvotes: 0

Frank Boucher
Frank Boucher

Reputation: 1864

April 2017

  • Portal UI: Not possible
  • Azure CLI v1: Says it's deleted... But it's not.

    azure resource delete resourceName Mygateway resourceType "Microsoft.Web/connectionGateway"

  • Azure PowerShell: It works with the command

    Remove-AzureRmResource -ResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup11/providers/Microsoft.Web/sites/ContosoSite" -Force

Upvotes: 0

Szymon Wylezol
Szymon Wylezol

Reputation: 1466

Yes, you can delete an on-premise data gateway in Azure (this effectively just removes the association between you on-premise data gateway installation and the Azure resource, it does not uninstall the on-premise data gateway itself).

In order to delete the gateway you would need to use a REST client (such as Postman) or Azure Powershell. The Azure portal does not currently support management of on-premise data gateway resources.

The gateway resource URI is

https://management.azure.com/subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Web/connectionGateways/{gatewayName}?api-version=2016-06-01

You need to use your azure bearer token for authentication.

Upvotes: 3

Related Questions