Skip to content

Commit b07e1da

Browse files
committed
recreate 3 tabs for gateway creation
1 parent 453723f commit b07e1da

File tree

1 file changed

+39
-2
lines changed

1 file changed

+39
-2
lines changed

azure-local/deploy/deployment-azure-arc-gateway-overview.md

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,11 @@ Consider the following limitations of Arc gateway in this release:
135135

136136
## Create the Arc gateway resource in Azure
137137

138-
You can create an Arc gateway resource in Azure portal as follows:
138+
You can create an Arc gateway resource using the Azure portal, Azure CLI, or Azure PowerShell.
139139

140-
1. Sign in to Azure portal.
140+
# [Portal](#tab/portal)
141+
142+
1. Sign in to [Azure portal](https://ms.portal.azure.com/).
141143
1. Go to the **Azure Arc > Azure Arc gateway** page, then select **Create**.
142144
1. Select the subscription and resource group where you want the Arc gateway resource to be managed within Azure. An Arc gateway resource can be used by any Arc-enabled resource in the same Azure tenant.
143145
1. For **Name**, enter the name for the Arc gateway resource.
@@ -149,6 +151,41 @@ You can create an Arc gateway resource in Azure portal as follows:
149151

150152
The gateway creation process takes nine to ten minutes to complete.
151153

154+
You can create an Arc gateway resource using the Azure portal, Azure CLI, or Azure PowerShell.
155+
156+
157+
# [CLI](#tab/cli)
158+
159+
1. Add the arc gateway extension to your Azure CLI:
160+
161+
`az extension add -n arcgateway`
162+
163+
1. On a machine with access to Azure, run the following commands to create your Arc gateway resource:
164+
165+
```azurecli
166+
az arcgateway create --name [gateway name] --resource-group [resource group] --location [location]
167+
```
168+
169+
The gateway creation process takes 9-10 minutes to complete.
170+
171+
# [PowerShell](#tab/powershell)
172+
173+
On a machine with access to Azure, run the following PowerShell command to create your Arc gateway resource:
174+
175+
```azurepowershell
176+
New-AzArcgateway
177+
-name <gateway name>
178+
-resource-group <resource group>
179+
-location <region>
180+
-subscription <subscription name or id>
181+
-gateway-type public
182+
-allowed-features *
183+
```
184+
185+
The gateway creation process takes 9-10 minutes to complete.
186+
187+
---
188+
152189
## Detach or change the Arc gateway association from the machine
153190

154191
To detach the gateway resource from your Arc-enabled server, set the gateway resource ID to `null`. If you want to attach your Arc-enabled server to another Arc gateway resource just update the name and resource ID with the new Arc gateway information:

0 commit comments

Comments
 (0)