Skip to content

Commit 9c7b57b

Browse files
Merge pull request #18519 from alkohli/arcgw
Register with arc gateway
2 parents b33f313 + 1dabbe9 commit 9c7b57b

File tree

80 files changed

+1304
-861
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+1304
-861
lines changed

.openpublishing.redirection.azure-local.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1934,6 +1934,26 @@
19341934
"source_path": "azure-local/migrate/migrate-cluster-new-hardware.md",
19351935
"redirect_url": "/azure-local/migrate/migration-azure-migrate-overview",
19361936
"redirect_document_id": false
1937+
},
1938+
{
1939+
"source_path": "azure-local/deploy/deployment-azure-arc-gateway-configure-manually.md",
1940+
"redirect_url": "/azure/azure-local/deploy/deployment-with-azure-arc-gateway",
1941+
"redirect_document_id": false
1942+
},
1943+
{
1944+
"source_path": "azure-local/deploy/deployment-azure-arc-gateway-configure-via-script.md",
1945+
"redirect_url": "/azure/azure-local/deploy/deployment-with-azure-arc-gateway",
1946+
"redirect_document_id": false
1947+
},
1948+
{
1949+
"source_path": "azure-local/deploy/deployment-azure-arc-gateway-use-without-proxy.md",
1950+
"redirect_url": "/azure/azure-local/deploy/deployment-with-azure-arc-gateway",
1951+
"redirect_document_id": false
1952+
},
1953+
{
1954+
"source_path": "azure-local/deploy/deployment-arc-register-local-ui.md",
1955+
"redirect_url": "/azure/azure-local/deploy/deployment-without-azure-arc-gateway",
1956+
"redirect_document_id": false
19371957
}
19381958
]
19391959
}

azure-local/TOC.yml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ items:
9595
href: plan/network-patterns-sdn-considerations.md
9696
- name: Review cloud deployment network considerations
9797
href: plan/cloud-deployment-network-considerations.md
98+
- name: Review Azure Arc gateway
99+
href: deploy/deployment-azure-arc-gateway-overview.md
98100
- name: Review security
99101
items:
100102
- name: About security features
@@ -118,31 +120,22 @@ items:
118120
href: deploy/download-23h2-software.md
119121
- name: 3. Install the OS
120122
href: deploy/deployment-install-os.md
121-
- name: 4. Register with Arc and set up permissions
123+
- name: 4. Set up subscription permissions
124+
href: deploy/deployment-arc-register-server-permissions.md
125+
- name: 5. Choose a registration method
122126
items:
123-
- name: Via console
124-
href: deploy/deployment-arc-register-server-permissions.md
125-
- name: Via Configurator app
126-
href: deploy/deployment-arc-register-configurator-app.md
127-
- name: 5. Choose a deployment method
127+
- name: Without Arc gateway
128+
href: deploy/deployment-without-azure-arc-gateway.md
129+
- name: With Arc gateway
130+
href: deploy/deployment-with-azure-arc-gateway.md
131+
- name: 6. Choose a deployment method
128132
items:
129-
- name: 5A. Deploy via Azure portal
133+
- name: 6A. Deploy via Azure portal
130134
href: deploy/deploy-via-portal.md
131-
- name: 5B. Deploy via ARM template
135+
- name: 6B. Deploy via ARM template
132136
href: deploy/deployment-azure-resource-manager-template.md
133137

134-
- name: Deploy with Arc gateway
135-
items:
136-
- name: About Arc gateway
137-
href: deploy/deployment-azure-arc-gateway-overview.md
138-
- name: Choose a proxy option
139-
items:
140-
- name: Configure proxy manually
141-
href: deploy/deployment-azure-arc-gateway-configure-manually.md
142-
- name: Configure proxy via Arc script
143-
href: deploy/deployment-azure-arc-gateway-configure-via-script.md
144-
- name: Configure without a proxy
145-
href: deploy/deployment-azure-arc-gateway-use-without-proxy.md
138+
146139
- name: Deploy using local identity with Key Vault
147140
href: deploy/deployment-local-identity-with-key-vault.md
148141
- name: Deploy workloads
@@ -518,6 +511,8 @@ items:
518511
items:
519512
- name: Collect logs
520513
href: manage/collect-logs.md
514+
- name: Troubleshoot registration issues for Configurator app
515+
href: manage/troubleshoot-deployment-configurator-app.md
521516
- name: Troubleshoot deployment validation issues
522517
href: manage/troubleshoot-deployment.md
523518
- name: Use the Diagnostic Support tool

azure-local/concepts/system-requirements-23h2.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ Here are the Azure requirements for your Azure Local instance:
2828
- Subscription obtained through an Enterprise Agreement (EA).
2929
- Subscription obtained through the Cloud Solution Provider (CSP) program.
3030

31-
- **Azure permissions**: Make sure that you're assigned the required roles and permissions for registration and deployment. For information on how to assign permissions, see [Assign Azure permissions for registration](../deploy/deployment-arc-register-server-permissions.md#assign-required-permissions-for-deployment).
32-
31+
- **Azure permissions**: Make sure that you're assigned the required roles and permissions for registration and deployment. For information on how to assign permissions, see [Assign Azure permissions for registration](../deploy/deployment-arc-register-server-permissions.md).
3332
- **Azure regions**: Azure Local is supported for the following regions:
3433

3534
# [Azure public](#tab/azure-public)

azure-local/deploy/deployment-arc-register-local-ui.md

Lines changed: 0 additions & 239 deletions
This file was deleted.

azure-local/deploy/deployment-arc-register-server-permissions.md

Lines changed: 7 additions & 140 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@ ms.service: azure-local
99
ms.custom: devx-track-azurepowershell
1010
---
1111

12-
# Register your machines and assign permissions for Azure Local deployment
12+
# Assign required permissions for Azure Local deployment
1313

1414
[!INCLUDE [applies-to](../includes/hci-applies-to-23h2.md)]
1515

16-
This article describes how to register your Azure Local machines and then set up the required permissions to deploy Azure Local.
16+
This article describes how to set up the required permissions on your subscription to deploy Azure Local.
1717

1818
## Prerequisites
1919

20-
Before you begin, make sure you complete the following prerequisites:
21-
2220
### Azure Local machine prerequisites
2321

2422
[!INCLUDE [hci-registration-azure-local-machine-prerequisites](../includes/hci-registration-azure-local-machine-prerequisites.md)]
@@ -27,141 +25,9 @@ Before you begin, make sure you complete the following prerequisites:
2725

2826
[!INCLUDE [hci-registration-azure-prerequisites](../includes/hci-registration-azure-prerequisites.md)]
2927

30-
## Register machines with Azure Arc
31-
32-
> [!IMPORTANT]
33-
> - Run these steps as a local administrator on every Azure Local machine that you intend to cluster.
34-
> - Once an Azure Local machine is registered with Azure Arc, the only way to undo the registration is to install the operating system again on the machine.
35-
> - If you encounter error code 42 when registering a new Azure Local machine with Azure Arc, see the [Troubleshooting guide](https://github.com/Azure/AzureLocal-Supportability/blob/main/TSG/ArcRegistration/TSG-Arc-registration-failing-with-error-42.md).
36-
37-
1. Set the parameters. The script takes in the following parameters:
38-
39-
|Parameters |Description |
40-
|------------|-------------|
41-
|`SubscriptionID` |The ID of the subscription used to register your machines with Azure Arc. |
42-
|`TenantID` |The tenant ID used to register your machines with Azure Arc. Go to your Microsoft Entra ID and copy the tenant ID property. |
43-
|`ResourceGroup` |The resource group precreated for Arc registration of the machines. A resource group is created if one doesn't exist. |
44-
|`Region` |The Azure region used for registration. See the [Supported regions](../concepts/system-requirements-23h2.md#azure-requirements) that can be used. |
45-
|`AccountID` |The user who registers and deploys the instance. |
46-
|`ProxyServer` |Optional parameter. Proxy Server address when is required for outbound connectivity. |
47-
|`DeviceCode` |The device code displayed in the console at `https://microsoft.com/devicelogin` and is used to sign in to the device. |
48-
49-
50-
# [PowerShell](#tab/powershell)
51-
52-
```powershell
53-
#Define the subscription where you want to register your machine as Arc device
54-
$Subscription = "YourSubscriptionID"
55-
56-
#Define the resource group where you want to register your machine as Arc device
57-
$RG = "YourResourceGroupName"
58-
59-
#Define the region to use to register your server as Arc device
60-
#Do not use spaces or capital letters when defining region
61-
$Region = "eastus"
62-
63-
#Define the tenant you will use to register your machine as Arc device
64-
$Tenant = "YourTenantID"
65-
66-
#Define the proxy address if your Azure Local deployment accesses the internet via proxy
67-
$ProxyServer = "http://proxyaddress:port"
68-
```
69-
70-
# [Output](#tab/output)
71-
72-
Here's a sample output of the parameters:
73-
74-
```output
75-
PS C:\Users\SetupUser> $Subscription = "<Subscription ID>"
76-
PS C:\Users\SetupUser> $RG = "myashcirg"
77-
PS C:\Users\SetupUser> $Tenant = "<Tenant ID>"
78-
PS C:\Users\SetupUser> $Region = "eastus"
79-
PS C:\Users\SetupUser> $ProxyServer = "<http://proxyserver:tcpPort>"
80-
```
81-
82-
---
83-
2. Connect to your Azure account and set the subscription. Open a browser on the client that you're using to connect to the machine and open this page: `https://microsoft.com/devicelogin` and enter the provided code in the Azure CLI output to authenticate. Get the access token and account ID for the registration.
84-
85-
# [PowerShell](#tab/powershell)
86-
87-
```azurecli
88-
#Connect to your Azure account and Subscription
89-
Connect-AzAccount -SubscriptionId $Subscription -TenantId $Tenant -DeviceCode
90-
91-
#Get the Access Token for the registration
92-
$ARMtoken = (Get-AzAccessToken -WarningAction SilentlyContinue).Token
93-
94-
#Get the Account ID for the registration
95-
$id = (Get-AzContext).Account.Id
96-
```
97-
98-
# [Output](#tab/output)
99-
100-
Here's a sample output of setting the subscription and authentication:
101-
102-
```output
103-
PS C:\Users\SetupUser> Connect-AzAccount -SubscriptionId $Subscription -TenantId $Tenant -DeviceCode
104-
WARNING: To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code A44KHK5B5
105-
to authenticate.
106-
107-
Account SubscriptionName TenantId Environment
108-
------- ---------------- -------- -----------
109-
[email protected] AzureStackHCI_Content <Tenant ID> AzureCloud
110-
111-
PS C:\Users\SetupUser> $ARMtoken = (Get-AzAccessToken).Token
112-
PS C:\Users\SetupUser> $id = (Get-AzContext).Account.Id
113-
```
114-
115-
---
116-
117-
3. Finally run the Arc registration script. The script takes a few minutes to run.
118-
119-
# [PowerShell](#tab/powershell)
120-
121-
```powershell
122-
#Invoke the registration script. Use a supported region.
123-
Invoke-AzStackHciArcInitialization -SubscriptionID $Subscription -ResourceGroup $RG -TenantID $Tenant -Region $Region -Cloud "AzureCloud" -ArmAccessToken $ARMtoken -AccountID $id
124-
```
125-
126-
If you're accessing the internet using a proxy server, you need to add the `-Proxy` parameter and provide the proxy server in the format `http://<Proxy server FQDN or IP address>:Port` when running the script.
127-
128-
For a list of supported Azure regions, see [Azure requirements](../concepts/system-requirements-23h2.md#azure-requirements).
129-
130-
# [Output](#tab/output)
131-
132-
Here's a sample output of a successful registration of your machines:
133-
134-
```output
135-
PS C:\Users\Administrator> Invoke-AzStackHciArcInitialization -SubscriptionID $Subscription -ResourceGroup $RG -TenantID $Tenant -Region $Region -Cloud "AzureCloud" -ArmAccessToken $ARMtoken -AccountID $id
136-
>>
137-
Configuration saved to: C:\Users\ADMINI~1\AppData\Local\Temp\bootstrap.json
138-
Triggering bootstrap on the device...
139-
Waiting for bootstrap to complete... Current Status: InProgress
140-
=========SNIPPED=========SNIPPED=============
141-
Waiting for bootstrap to complete... Current Status: InProgress
142-
Waiting for bootstrap to complete... Current Status: Succeeded
143-
Bootstrap succeeded.
144-
145-
Triggering bootstrap log collection as a best effort.
146-
Version Response
147-
------- --------
148-
V1 Microsoft.Azure.Edge.Bootstrap.ServiceContract.Data.Response
149-
V1 Microsoft.Azure.Edge.Bootstrap.ServiceContract.Data.Response
150-
151-
152-
PS C:\Users\Administrator>
153-
```
154-
---
155-
156-
4. After the script completes successfully on all the machines, verify that:
157-
158-
1. Your machines are registered with Arc. Go to the Azure portal and then go to the resource group associated with the registration. The machines appear within the specified resource group as **Machine - Azure Arc** type resources.
159-
160-
:::image type="content" source="media/deployment-arc-register-server-permissions/arc-servers-registered-1.png" alt-text="Screenshot of the Azure Local machines in the resource group after the successful registration." lightbox="./media/deployment-arc-register-server-permissions/arc-servers-registered-1.png":::
161-
162-
## Assign required permissions for deployment
28+
## Assign Azure permissions for deployment
16329

164-
This section describes how to assign Azure permissions for deployment from the Azure portal.
30+
Follow these steps to assign Azure permissions for deployment from the Azure portal.
16531

16632
1. In [the Azure portal](https://portal.azure.com/), go to the subscription used to register the machines. In the left pane, select **Access control (IAM)**. In the right pane, select **+ Add** and from the dropdown list, select **Add role assignment**.
16733

@@ -194,6 +60,7 @@ This section describes how to assign Azure permissions for deployment from the A
19460
19561
## Next steps
19662

197-
After setting up the first machine in your instance, you're ready to deploy using Azure portal:
63+
After setting up the subscription permissions, you can register your Azure Local machines with Azure Arc.
19864

199-
- [Deploy using Azure portal](./deploy-via-portal.md).
65+
- [Register using Azure Arc gateway](./deployment-with-azure-arc-gateway.md).
66+
- [Register using Azure Arc](./deployment-without-azure-arc-gateway.md).

0 commit comments

Comments
 (0)