Skip to content

Commit f755e00

Browse files
committed
edits
1 parent 0f43b1a commit f755e00

File tree

1 file changed

+31
-33
lines changed

1 file changed

+31
-33
lines changed

articles/machine-learning/tutorial-create-secure-workspace-template.md

Lines changed: 31 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -129,52 +129,48 @@ To deploy the Bicep template, run the following commands from the *machine-learn
129129

130130
1. To create a new Azure resource group, run the following example command, replacing `exampleRG` with the resource group name and `eastus` with the Azure region you want to use:
131131

132-
# [Azure CLI](#tab/cli)
132+
- **Azure CLI:**
133133

134-
```azurecli
135-
az group create --name exampleRG --location eastus
136-
```
137-
# [Azure PowerShell](#tab/ps1)
134+
```azurecli
135+
az group create --name exampleRG --location eastus
136+
```
138137
139-
```azurepowershell
140-
New-AzResourceGroup -Name exampleRG -Location eastus
141-
```
138+
- **Azure PowerShell:**
142139
143-
---
140+
```azurepowershell
141+
New-AzResourceGroup -Name exampleRG -Location eastus
142+
```
144143
145144
1. To deploy the template, use the following command, replacing `prefix` with a unique prefix to use when creating required Azure Machine Learning resources. Replace `dsvmpassword` with a secure password for the DSVM jump box sign-in account, `azureadmin` in the following examples.
146145
147146
> [!TIP]
148147
> The `prefix` must be five or fewer characters, and can't be entirely numeric or contain the characters `~`, `!`, `@`, `#`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `=`, `+`, `_`, `[`, `]`, `{`, `}`, `\`, `|`, `;`, `:`, `.`, `'`, `"`, `,`, `<`, `>`, `/`, or `?`.
149148
150-
# [Azure CLI](#tab/cli)
149+
- **Azure CLI**:
151150
152-
```azurecli
153-
az deployment group create \
154-
--resource-group exampleRG \
155-
--template-file main.bicep \
156-
--parameters \
157-
prefix=prefix \
158-
dsvmJumpboxUsername=azureadmin \
159-
dsvmJumpboxPassword=dsvmpassword
160-
```
161-
# [Azure PowerShell](#tab/ps1)
162-
163-
```azurepowershell
164-
$dsvmPassword = ConvertTo-SecureString "mysecurepassword" -AsPlainText -Force
165-
New-AzResourceGroupDeployment -ResourceGroupName exampleRG `
166-
-TemplateFile ./main.bicep `
167-
-prefix "prefix" `
168-
-dsvmJumpboxUsername "azureadmin" `
169-
-dsvmJumpboxPassword $dsvmPassword
170-
```
151+
```azurecli
152+
az deployment group create \
153+
--resource-group exampleRG \
154+
--template-file main.bicep \
155+
--parameters \
156+
prefix=prefix \
157+
dsvmJumpboxUsername=azureadmin \
158+
dsvmJumpboxPassword=dsvmpassword
159+
```
171160
172-
> [!WARNING]
173-
> You should avoid using plain text strings in scripts or from the command line. The plain text can show up in event logs and command history. For more information, see [ConvertTo-SecureString](/powershell/module/microsoft.powershell.security/convertto-securestring).
161+
- **Azure PowerShell**:
174162
175-
---
163+
```azurepowershell
164+
$dsvmPassword = ConvertTo-SecureString "mysecurepassword" -AsPlainText -Force
165+
New-AzResourceGroupDeployment -ResourceGroupName exampleRG `
166+
-TemplateFile ./main.bicep `
167+
-prefix "prefix" `
168+
-dsvmJumpboxUsername "azureadmin" `
169+
-dsvmJumpboxPassword $dsvmPassword
170+
```
176171
177-
---
172+
> [!WARNING]
173+
> You should avoid using plain text strings in scripts or from the command line. The plain text can show up in event logs and command history. For more information, see [ConvertTo-SecureString](/powershell/module/microsoft.powershell.security/convertto-securestring).
178174
179175
# [Terraform](#tab/terraform)
180176
@@ -250,6 +246,8 @@ The Bicep template generates the jump box name programmatically by using the pre
250246
251247
The Terraform template passes the jump box name by using the `dsvm_name` parameter. To avoid the error, use a name that's 15 characters or fewer and doesn't use the characters `~`, `!`, `@`, `#`, `$`, `%`, `^`, `&`, `*`, `(`, `)`, `=`, `+`, `_`, `[`, `]`, `{`, `}`, `\`, `|`, `;`, `:`, `.`, `'`, `"`, `,`, `<`, `>`, `/`, or `?`.
252248
249+
---
250+
253251
## Related content
254252
255253
To continue getting started with Azure Machine Learning, see [Quickstart: Get started with Azure Machine Learning](tutorial-azure-ml-in-a-day.md).

0 commit comments

Comments
 (0)