|
1 | 1 | ---
|
2 | 2 | type: docs
|
3 |
| -linkTitle: "Azure CLI Deployment" |
| 3 | +linkTitle: "Azure Bicep Deployment" |
4 | 4 | isGettingStarted: false
|
5 | 5 | weight: 4
|
6 | 6 | ---
|
7 | 7 |
|
8 |
| -# Deploy HCIBox infrastructure with Azure CLI |
| 8 | +# Deploy HCIBox infrastructure with Azure Bicep |
9 | 9 |
|
10 |
| -## Azure CLI |
| 10 | +## Azure Bicep |
11 | 11 |
|
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. |
13 | 13 |
|
14 | 14 | ### Prepare the environment
|
15 | 15 |
|
@@ -113,19 +113,41 @@ Azure CLI is used to deploy HCIBox into your Azure subscription. To deploy, you
|
113 | 113 |
|
114 | 114 | > **Note:** Please avoid using the $ symbol in the `windowsAdminPassword`. Using this symbol can cause the LogonScript to fail.
|
115 | 115 |
|
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 |
| -  |
| 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 | + |
129 | 151 |
|
130 | 152 | - 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:
|
131 | 153 |
|
|
0 commit comments