Skip to content

Commit 2c98509

Browse files
authored
Merge pull request Azure#583 from Azure/canary
Add resourceTags parameter documentation for HCIBox
2 parents 37f884c + 49f21d7 commit 2c98509

File tree

11 files changed

+58
-31
lines changed

11 files changed

+58
-31
lines changed

docs/azure_jumpstart_hcibox/AKS/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Azure Local can provide host infrastructure for [Azure Kubernetes Service cluste
1212

1313
HCIBox is preconfigured with a network subnet dedicated to AKS deployment. Subnet details are as follows:
1414

15-
| Network details | |
15+
| Network detail | Value |
1616
| ---------- | --------------------- |
1717
| Subnet | 10.10.0.0/24 |
1818
| Gateway | 10.10.0.1 |

docs/azure_jumpstart_hcibox/RB/_index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Before you can create virtual machines on your Azure Local instance from Azure p
3333

3434
HCIBox networking includes a 192.168.200.0/24 subnet tagged to VLAN200. This network is designed for use with Arc-enabled VMs on HCIBox. To use this preconfigured network, you must create a logical network resource that maps to this subnet.
3535

36-
| Network details | |
36+
| Network detail | Value |
3737
| ---------- | --------------------- |
3838
| Subnet | 192.168.200.0/24 |
3939
| Gateway | 192.168.200.1 |

docs/azure_jumpstart_hcibox/cloud_deployment/_index.md

+12-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ weight: 5
88

99
## Start post-deployment automation
1010

11-
Once your bicep deployment is complete with Azure CLI or Azure Developer CLI, you can open the Azure portal to see the initial HCIBox resources inside your resource group. Now you must remote into the _HCIBox-Client_ VM to continue the next phase of the deployment.
11+
Once your Bicep deployment is complete, you can open the Azure portal to see the initial HCIBox resources inside your resource group. Now you must remote into the _HCIBox-Client_ VM to continue the next phase of the deployment.
1212

1313
![Screenshot showing all deployed resources in the resource group](./deployed_resources.png)
1414

@@ -70,27 +70,28 @@ If you already have [Microsoft Defender for Cloud](https://learn.microsoft.com/a
7070

7171
### The Logon scripts
7272

73-
- Once you log into the _HCIBox-Client_ VM, a PowerShell script will open and start running. This script will take anywhere between 2-3 hours to finish, and once completed, the script window will close automatically. If there are any HCI updates available, we need to add 1 additional hour to the estimated deployment time.
73+
- Once you log into the _HCIBox-Client_ VM, a PowerShell script will open and start running. This script will take anywhere between 2-3 hours to finish, and once completed, the script window will close automatically. If there are any HCI updates available, we need to add 1 additional hour to the estimated deployment time.
7474
At this point, the infrastructure deployment is complete.
7575

7676
![Screenshot showing _HCIBox-Client_](./automation.png)
7777

78-
- In Azure portal, validate that both Azure Local machines (AzSHOST1 and AzSHOST2) have been created as Arc-enabled servers.
78+
- In the Azure portal, validate that both Azure Local machines (AzSHOST1 and AzSHOST2) have been created as Arc-enabled servers.
7979

8080
- Verify that both of the Arc-enabled servers have successfully installed the three Azure Local extensions: AzureEdgeTelemetryAndDiagnostics, AzureEdgeLifecycleManager, and AzureEdgeDeviceManagement
8181

8282
![Screenshot showing extensions successfully installed](./extensions_installed.png)
8383

84-
- If everything looks good, and you did not choose to configure the `autoDeployClusterResource` parameter with the value `true` in your deployment, proceed to the next section to validate and deploy your instance. If you did enable this parameter, you may proceed to the section _Deployment complete_ at the end of this page.
85-
Visit [troubleshooting](../troubleshooting/) if needed for deployment issues.
86-
8784
## Azure portal Azure Local instance validation and deployment
8885

8986
Azure Local uses a two-step process to create and register instances in Azure using an ARM template.
9087

9188
1. **Validate** - an ARM template is deployed with a "validate" flag. This begins the final instance validation step and takes around 20 minutes.
9289
2. **Deploy** - the same ARM template is redeployed with the "deploy" flag. This deploys the instance and Arc infrastructure and registers the instance. This step takes around 2-3 hours.
9390

91+
If you chose to configure the `autoDeployClusterResource` parameter with the value `false` in your deployment, proceed to the next section to validate and deploy your instance. If you did not override this parameter, you may proceed to the section [_Deployment complete_](#deployment-complete) at the end of this page.
92+
93+
Visit [troubleshooting](../troubleshooting/) if needed for deployment issues.
94+
9495
### Validate instance in Azure portal
9596

9697
- Before submitting the ARM deployment, you need to add your user account as a Key Vault Administrator on the HCIBox resource group. Navigate to the resource group then click "Access Control (IAM)" and then "Add role assignment". Select the "Key Vault Administrator role" then click on to the next screen to select your user account and assign your user the role.
@@ -137,6 +138,10 @@ Azure Local uses a two-step process to create and register instances in Azure us
137138

138139
## Deployment complete
139140

140-
- Once the HCIBox instance is deployed it's time to start exploring various HCIBox features. Head on to the [Using HCIBox](../using_hcibox/) guide for the next steps.
141+
In your HCIBox resource group, open the cluster resource `hciboxcluster`, navigate to `Settings` -> `Deployments` and verify that all steps has completed successfully.
142+
143+
![Screenshot showing progress of deploying instance](./cluster_deployment_complete.png)
144+
145+
Once the HCIBox instance is deployed it's time to start exploring various HCIBox features. Head on to the [Using HCIBox](../using_hcibox/) guide for the next steps.
141146

142147
![screenshot showing deployed instance](./cluster_detail.png)
Loading

docs/azure_jumpstart_hcibox/deployment_az/_index.md

+39-17
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
22
type: docs
3-
linkTitle: "Azure CLI Deployment"
3+
linkTitle: "Azure Bicep Deployment"
44
isGettingStarted: false
55
weight: 4
66
---
77

8-
# Deploy HCIBox infrastructure with Azure CLI
8+
# Deploy HCIBox infrastructure with Azure Bicep
99

10-
## Azure CLI
10+
## Azure Bicep
1111

12-
Azure CLI is used to deploy HCIBox into your Azure subscription. To deploy, you require a service principal by your Azure administrator for use with HCIBox. Read on to learn how to deploy HCIBox with Azure CLI.
12+
Azure Bicep is used to deploy HCIBox into your Azure subscription. To deploy, you require a service principal by your Azure administrator for use with HCIBox. Read on to learn how to deploy HCIBox with Azure CLI.
1313

1414
### Prepare the environment
1515

@@ -113,19 +113,41 @@ Azure CLI is used to deploy HCIBox into your Azure subscription. To deploy, you
113113

114114
> **Note:** Please avoid using the $ symbol in the `windowsAdminPassword`. Using this symbol can cause the LogonScript to fail.
115115

116-
- Edit the [main.parameters.json](https://github.com/microsoft/azure_arc/blob/main/azure_jumpstart_hcibox/bicep/main.parameters.json) template parameters file and supply some values for your environment.
117-
- _`spnClientId`_ - Your Azure service principal id
118-
- _`spnClientSecret`_ - Your Azure service principal secret
119-
- _`spnTenantId`_ - Your Azure tenant id
120-
- _`spnProviderId`_ - Your Azure Local resource provider id, retrieved in an earlier step
121-
- _`windowsAdminUsername`_ - Client Windows VM Administrator username
122-
- _`windowsAdminPassword`_ - Client Windows VM Password. Password must have 3 of the following: 1 lower case character, 1 upper case character, 1 number, and 1 special character. The value must be between 12 and 123 characters long.
123-
- _`logAnalyticsWorkspaceName`_ - Unique name for the HCIBox Log Analytics workspace
124-
- _`deployBastion`_ - Option to deploy Azure Bastion which used to connect to the _HCIBox-Client_ VM instead of normal RDP.
125-
- _`autoDeployClusterResource`_ - Option to enable automatic deployment of the Azure Arc-enabled Azure Local instance after the client VM deployment and automation script execution is complete.
126-
- _`autoUpgradeClusterResource`_ - Option to enable automatic upgrade of the Azure Arc-enabled Azure Local instance after the instance deployment is complete (only applicable if autoDeployClusterResource is set to `true`).
127-
128-
![Screenshot showing example parameters](./parameters_bicep.png)
116+
- Edit the [main.parameters.json](https://github.com/microsoft/azure_arc/blob/main/azure_jumpstart_hcibox/bicep/main.bicepparam) template parameters file and supply values for your environment.
117+
118+
| Name | Type | Description | Default |
119+
| --- | --- | --- | --- |
120+
| `autoDeployClusterResource` | bool | Choice to enable automatic deployment of Azure Arc enabled HCI cluster resource after the client VM deployment is complete. | true |
121+
| `autoUpgradeClusterResource` | bool | Choice to enable automatic upgrade of Azure Arc enabled HCI cluster resource after the client VM deployment is complete. Only applicable when autoDeployClusterResource is true. | false |
122+
| `deployBastion` | bool | Choice to deploy Bastion to connect to the client VM | false |
123+
| `githubAccount` | string | Target GitHub account | "microsoft" |
124+
| `githubBranch` | string | Target GitHub branch | "main" |
125+
| `governResourceTags` | bool | Setting this parameter to `true` will add the `CostControl` and `SecurityControl` tags to the provisioned resources. These tags are applicable to ONLY Microsoft-internal Azure lab tenants and designed for managing automated governance processes related to cost optimization and security controls | true |
126+
| `location` | string | Location to deploy resources | Resource group`s location |
127+
| `logAnalyticsWorkspaceName` | string | Name for your log analytics workspace | |
128+
| `natDNS` | string | Public DNS to use for the domain | "8.8.8.8" |
129+
| `rdpPort` | string | Override default RDP port using this parameter. Default is 3389. No changes will be made to the client VM. | "3389" |
130+
| `spnClientId` | string | Azure service principal client id | |
131+
| `spnClientSecret` | securestring | Azure service principal client secret | |
132+
| `spnProviderId` | string | Azure AD object id for your Microsoft.AzureStackHCI resource provider | |
133+
| `spnTenantId` | string | Azure AD tenant id for your service principal | |
134+
| `tags` | object | Tags to be added to all resources | {"Project": "jumpstart_HCIBox"} |
135+
| `vmAutologon` | bool | Enable automatic logon into HCIBox Virtual Machine | true |
136+
| `windowsAdminPassword` | securestring | Password for Windows account. Password must have 3 of the following: 1 lower case character, 1 upper case character, 1 number, and 1 special character. The value must be between 12 and 123 characters long | |
137+
| `windowsAdminUsername` | string | Username for Windows account | |
138+
139+
> **Disclaimer:** The `governResourceTags` parameter is optional and set to true by default. If not specified, the following tag values will be added:
140+
141+
```
142+
CostControl: 'Ignore'
143+
SecurityControl: 'Ignore'
144+
```
145+
146+
> Both the `CostControl` and `SecurityControl` tags are applicable to **ONLY Microsoft-internal Azure lab tenants** and designed for managing automated governance processes related to cost optimization and security controls. As mentioned, it will get added to the deployment **only** if the `governResourceTags` parameter was set to true. If you are deploying HCIBox from a Microsoft-internal tenant and Azure subscription, this parameter is required to be set to 'true'. Failure to do so will cause your deployment to have issues and most likely to fail.
147+
148+
Example parameter-file:
149+
150+
![Screenshot showing example parameters](./parameters_bicep.png)
129151
130152
- Create a new resource group and then deploy the Bicep file. Navigate to the local cloned [deployment folder](https://github.com/microsoft/azure_arc/tree/main/azure_jumpstart_hcibox/bicep) and run the following command:
131153
Loading

docs/azure_jumpstart_hcibox/getting_started/_index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ HCIBox resources generate Azure Consumption charges from the underlying Azure re
4343

4444
## Deployment Options and Flow
4545

46-
HCIBox supports [Bicep](https://learn.microsoft.com/azure/azure-resource-manager/bicep/overview?tabs=bicep) templates for both Azure CLI and [Azure Developer CLI](https://learn.microsoft.com/azure/developer/azure-developer-cli/overview) to deploy and configure necessary Azure resources.
46+
HCIBox supports [Bicep](https://learn.microsoft.com/azure/azure-resource-manager/bicep/overview?tabs=bicep) templates to deploy and configure necessary Azure resources.
4747

4848
Deploying HCIBox is a multi-step process that includes:
4949

@@ -56,7 +56,7 @@ Deploying HCIBox is a multi-step process that includes:
5656

5757
## Deploy HCIBox
5858

59-
- [Deploy HCIBox with Azure CLI](../deployment_az/) : Requires pre-configured service principle.
59+
- [Deploy HCIBox with Azure Bicep](../deployment_az/) : Requires pre-configured service principal.
6060

6161
Looking for something else related to HCIBox?
6262

Loading
Loading
Loading

docs/azure_jumpstart_hcibox/using_hcibox/_index.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ HCIBox simulates a 2-node physical deployment of Azure Local by using [nested vi
1818

1919
| Computer Name | Role | Domain Joined | Parent Host | OS |
2020
| ---------------- | ----------------------------------- | ------------- | --------------- | ------------------- |
21-
| _HCIBox-Client_ | Primary host | No | Azure | Windows Server 2022 |
22-
| _AzSHOST1_ | HCI node | Yes | _HCIBox-Client_ | Azure Local |
23-
| _AzSHOST2_ | HCI node | Yes | _HCIBox-Client_ | Azure Local |
21+
| _HCIBox-Client_ | Primary host | No | Azure | Windows Server 2025 |
22+
| _AzSHOST1_ | Azure Local machine | Yes | _HCIBox-Client_ | Azure Local |
23+
| _AzSHOST2_ | Azure Local machine | Yes | _HCIBox-Client_ | Azure Local |
2424
| _AzSMGMT_ | Nested hypervisor | No | _HCIBox-Client_ | Windows Server 2022 |
2525
| _JumpstartDC_ | Domain controller | Yes (DC) | _AzSMGMT_ | Windows Server 2022 |
2626
| _Vm-Router_ | Remote Access Server | No | _AzSMGMT_ | Windows Server 2022 |

0 commit comments

Comments
 (0)