Skip to content

Commit 13ec623

Browse files
authored
Merge pull request #16632 from CristianEdwards/ArcGwNoProxyUpdate
ArcGwUpdates 2411.1
2 parents 81a1569 + 7c02a1f commit 13ec623

File tree

3 files changed

+66
-42
lines changed

3 files changed

+66
-42
lines changed

azure-local/deploy/deployment-azure-arc-gateway-configure-manually.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.service: azure-stack-hci
1010

1111
# Configure Arc proxy manually for Azure gateway on Azure Local (preview)
1212

13-
Applies to: Azure Local, version 23H2, release 2408, 2408.1, 2408.2, and 2411
13+
Applies to: Azure Local, version 23H2, release 2408, 2408.1, 2408.2, 2411 and 2411.1
1414

1515
After creating the Arc gateway resource in your Azure subscription, you can enable the new Arc gateway preview features. This article details how to manually configure the Arc proxy before Arc registration.
1616

azure-local/deploy/deployment-azure-arc-gateway-configure-via-script.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.service: azure-stack-hci
1010

1111
# Configure Arc proxy via registration script for Azure gateway on Azure Local (preview)
1212

13-
Applies to: Azure Local, version 23H2, release 2408, 2408.1, 2408.2, and 2411
13+
Applies to: Azure Local, version 23H2, release 2408, 2408.1, 2408.2, 2411 and 2411.1
1414

1515
After creating the Arc gateway resource in your Azure subscription, you can enable the new Arc gateway preview features. This article details how to configure the Arc proxy before Arc registration using a registration script for the Arc gateway on Azure Local.
1616

@@ -28,7 +28,7 @@ Make sure the following prerequisites are met before proceeding:
2828

2929
## Step 1: Get the ArcGatewayID
3030

31-
You need the proxy and the ArcGatewayID from Azure to run the registration script on Azure Local machines. You can find the Arc gateway id on the Azure portal overview page of the resource.
31+
You need the proxy and the ArcGatewayID from Azure to run the registration script on Azure Local machines. You can find the Arc gateway ID on the Azure portal overview page of the resource.
3232

3333
## Step 2: Register new machines in Azure Arc
3434

azure-local/deploy/deployment-azure-arc-gateway-use-without-proxy.md

Lines changed: 63 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.service: azure-stack-hci
1010

1111
# Use Azure Arc gateway without a proxy on Azure Local (preview)
1212

13-
Applies to: Azure Local, version 23H2, release 2408, 2408.1, 2408.2, and 2411
13+
Applies to: Azure Local, version 23H2, release 2411.1 and later
1414

1515
After creating the Arc gateway resource in your Azure subscription, you can enable the new Arc gateway preview features on your Azure Local. This article details how to use Azure gateway for Azure Local instances without a proxy.
1616

@@ -20,77 +20,101 @@ After creating the Arc gateway resource in your Azure subscription, you can enab
2020

2121
Make sure the following prerequisites are met before proceeding:
2222

23-
- You’ve access to an Azure Local instance running version 23H2.
23+
- You’ve access to an Azure Local instance running version 23H2, release 2411.1. Prior versions do not support this scenario.
2424

2525
- An Arc gateway resource created in the same subscription as used to deploy Azure Local. For more information, see [Create the Arc gateway resource in Azure](deployment-azure-arc-gateway-overview.md#create-the-arc-gateway-resource-in-azure).
2626

27-
> [!Warning]
28-
> For Arc gateway deployments without proxy, the standard ISO OS image is required and is available at https://aka.ms/PVenEREWEEW. Do not use the ISO image available in Azure portal for this scenario.
27+
## Step 1: Get the ArcGatewayID
2928

30-
## Run the initialization script
29+
You need the Arc gateway ID (ArcGatewayID) from Azure to run the registration script on Azure Local machines. You can find the Arc gateway ID on the Azure portal overview page of the resource.
3130

32-
To use the Arc gateway feature for Azure Local systems without a proxy, use the `ProxyBypassList` parameter to specify traffic that shouldn't route through the Arc gateway. Create the bypass list according to this article.
31+
## Step 2: Register new machines in Azure Arc
3332

34-
Run the initialization script as follows. All other instructions remain the same as listed in [Configure the proxy using the Arc registration script](deployment-azure-arc-gateway-configure-via-script.md).
33+
To use the Arc gateway feature for Azure Local systems without a proxy, only use the `ArcGatewayID` parameter.
3534

36-
```azurecli
37-
#Install required PowerShell modules on your machine for registration.
38-
39-
Install-Module Az.Accounts -RequiredVersion 2.13.2
40-
41-
Install-Module Az.Resources -RequiredVersion 6.12.0
35+
Run the initialization script as follows.
4236

43-
Install-Module Az.ConnectedMachine -RequiredVersion 0.5.2
44-
45-
#Install Arc registration script from PSGallery
46-
47-
Install-Module AzsHCI.ARCinstaller
37+
```azurecli
4838
4939
#Define the subscription where you want to register your server as Arc device.
50-
5140
$Subscription = "yoursubscription"
5241
5342
#Define the resource group where you want to register your server as Arc device.
54-
5543
$RG = "yourresourcegroupname"
5644
5745
#Define the tenant you will use to register your server as Arc device.
58-
5946
$Tenant = "yourtenant"
6047
6148
#Define the Arc gateway resource ID from Azure
62-
6349
$ArcgwId = "/subscriptions/yourarcgatewayid/resourceGroups/yourresourcegroupname/providers/Microsoft.HybridCompute/gateways/yourarcgatewayname"
6450
65-
#Define the bypass list for the proxy. Use semicolon to separate each item from the list.
66-
67-
# Use "localhost" instead of <local>
68-
# Use specific IPs such as 127.0.0.1 without mask
69-
# Use * for subnets allowlisting. 192.168.1.* for /24 exclusions. Use 192.168.*.
70-
* for /16 exclusions.
71-
# Append * for domain names exclusions like *.contoso.com
72-
# DO NOT INCLUDE .svc on the list. The registration script takes care of Environment Variables configuration.
73-
74-
$ProxyBypassList = "localhost;127.0.0.1;*.contoso.com;machine1;machine2;machine3;machine4;machine5;192.168.*.*;AzureLocal-1"
75-
7651
#Connect to your Azure account and Subscription
77-
7852
Connect-AzAccount -SubscriptionId $Subscription -TenantId $Tenant -DeviceCode
7953
8054
#Get the Access Token and Account ID for the registration
81-
8255
$ARMtoken = (Get-AzAccessToken).Token
8356
8457
#Get the Account ID for the registration
85-
8658
$id = (Get-AzContext).Account.Id
8759
8860
#Invoke the registration script with Proxy and ArcgatewayID
89-
90-
Invoke-AzStackHciArcInitialization -SubscriptionID $Subscription -ResourceGroup
91-
$RG -TenantID $Tenant -Region australiaeast -Cloud "AzureCloud" -ArmAccessToken $ARMtoken -AccountID $id -ArcGatewayID $ArcgwId -ProxyBypass $ProxyBypassList
61+
Invoke-AzStackHciArcInitialization -SubscriptionID $Subscription -ResourceGroup $RG -TenantID $Tenant -Region australiaeast -Cloud "AzureCloud" -ArmAccessToken $ARMtoken -AccountID $id -ArcGatewayID $ArcgwId
9262
```
9363

64+
## Step 3: Start Azure Local cloud deployment
65+
66+
Once the Azure Local machines are registered in Azure Arc and all the extensions are installed, you can start deployment from Azure portal or using the ARM templates that are documented in these articles:
67+
68+
- [Deploy an Azure Local instance using the Azure portal](deploy-via-portal.md).
69+
70+
- [Azure Resource Manager template deployment for Azure Local, version 23H2](deployment-azure-resource-manager-template.md).
71+
72+
## Step 4: Verify that the setup succeeded
73+
74+
Once the deployment validation starts, you can connect to the first Azure Local machine from your system and open the Arc gateway log to monitor which endpoints are redirected to the Arc gateway and which ones continue using your firewall.
75+
76+
You can find the Arc gateway log at: *c:\programdata\AzureConnectedMAchineAgent\Log\arcproxy.log*.
77+
78+
:::image type="content" source="./media/deployment-connect-nodes-to-arc-gateway/arc-gateway-log.png" alt-text="Screenshot that shows the Arc gateway log using manual method." lightbox="./media/deployment-connect-nodes-to-arc-gateway/arc-gateway-log.png":::
79+
80+
To check the Arc agent configuration and verify that it is using the Arc gateway, run the following command: `c:\program files\AzureConnectedMachineAgent>.\azcmagent show`
81+
82+
The result should show the following values:
83+
84+
- **Agent version** is **1.45** or above.
85+
86+
- **Agent Status** is **Connected**.
87+
88+
- **Using HTTPS Proxy** is empty when Arc gateway isn't in use. It should show as `http://localhost:40343` when the Arc gateway is enabled.
89+
90+
- **Upstream Proxy** should be empty because you are not using any enterprise proxy.
91+
92+
- **Azure Arc Proxy** shows as **stopped** when Arc gateway isn't in use, and **running** when the Arc gateway is enabled.
93+
94+
The Arc agent without the Arc gateway:
95+
96+
:::image type="content" source="./media/deployment-connect-nodes-to-arc-gateway/arc-agent-without-gateway.png" alt-text="Screenshot that shows the Arc agent without gateway using manual method." lightbox="./media/deployment-connect-nodes-to-arc-gateway/arc-agent-without-gateway.png":::
97+
98+
The Arc agent using the Arc gateway:
99+
100+
:::image type="content" source="./media/deployment-connect-nodes-to-arc-gateway/arc-agent-with-gateway.png" alt-text="Screenshot that shows the Arc agent with gateway using manual method." lightbox="./media/deployment-connect-nodes-to-arc-gateway/arc-agent-with-gateway.png":::
101+
102+
Additionally, to verify that the setup successful, you can run the following command: `c:\program files\AzureConnectedMachineAgent>.\azcmagent check`.
103+
104+
The response should indicate that `connection.type` is set to `gateway`, and the **Reachable** column should indicate **true** for all URLs, as shown:
105+
106+
The Arc agent without the Arc gateway:
107+
108+
:::image type="content" source="./media/deployment-connect-nodes-to-arc-gateway/arc-agent-without-gateway-2.png" alt-text="Screenshot that shows the Arc agent without gateway 2 using manual method." lightbox="./media/deployment-connect-nodes-to-arc-gateway/arc-agent-without-gateway-2.png":::
109+
110+
The Arc agent with the Arc gateway enabled:
111+
112+
:::image type="content" source="./media/deployment-connect-nodes-to-arc-gateway/arc-agent-with-gateway-2.png" alt-text="Screenshot that shows the Arc agent with gateway 2 using manual method." lightbox="./media/deployment-connect-nodes-to-arc-gateway/arc-agent-without-gateway-2.png":::
113+
114+
You can also audit your gateway traffic by viewing the gateway router logs.
115+
116+
To view gateway router logs on Windows, run the `azcmagent logs` command in PowerShell. In the resulting .zip file, the logs are located in the *C:\ProgramData\Microsoft\ArcGatewayRouter* folder.
117+
94118
## Next steps
95119

96120
- [Get support for deployment issues](../manage/get-support-for-deployment-issues.md)

0 commit comments

Comments
 (0)