Skip to content

Commit b96b00c

Browse files
committed
2 parents 0708f05 + 737d3ed commit b96b00c

18 files changed

+145
-34
lines changed

Instructions/02-Explore-developer-tools.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To start, open the Azure Cloud Shell, install the Azure Machine Learning extensi
3030
1. Check that the correct subscription is specified and select **Create storage** if you are asked to create storage for your cloud shell. Wait for the storage to be created.
3131
1. Remove any ML CLI extensions (both version 1 and 2) to avoid any conflicts with previous versions with this command:
3232

33-
```
33+
```azurecli
3434
az extension remove -n azure-cli-ml
3535
az extension remove -n ml
3636
```
@@ -41,7 +41,7 @@ To start, open the Azure Cloud Shell, install the Azure Machine Learning extensi
4141
4242
1. Install the Azure Machine Learning (v2) extension with the following command:
4343
44-
```
44+
```azurecli
4545
az extension add -n ml -y
4646
```
4747

Instructions/03-Make-data-available.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ To create the Azure Machine Learning workspace and compute resources, you'll use
2828
1. Check that the correct subscription is specified and select **Create storage** if you are asked to create storage for your cloud shell. Wait for the storage to be created.
2929
1. Enter the following commands in the terminal to clone this repo:
3030

31-
```bash
31+
```azurecli
3232
rm -r azure-ml-labs -f
3333
git clone https://github.com/MicrosoftLearning/mslearn-azure-ml.git azure-ml-labs
3434
```
@@ -37,7 +37,7 @@ To create the Azure Machine Learning workspace and compute resources, you'll use
3737
3838
1. Enter the following commands after the repo has been cloned, to change to the folder for this lab and run the **setup.sh** script it contains:
3939
40-
```bash
40+
```azurecli
4141
cd azure-ml-labs/Labs/03
4242
./setup.sh
4343
```

Instructions/04-Work-with-compute.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To create the Azure Machine Learning workspace, you'll use the Azure CLI. All ne
2525
1. Check that the correct subscription is specified and select **Create storage** if you are asked to create storage for your cloud shell. Wait for the storage to be created.
2626
1. To avoid any conflicts with previous versions, remove any ML CLI extensions (both version 1 and 2) by running this command in the terminal:
2727

28-
```bash
28+
```azurecli
2929
az extension remove -n azure-cli-ml
3030
az extension remove -n ml
3131
```
@@ -36,7 +36,7 @@ To create the Azure Machine Learning workspace, you'll use the Azure CLI. All ne
3636
3737
1. Install the Azure Machine Learning (v2) extension with the following command:
3838
39-
```bash
39+
```azurecli
4040
az extension add -n ml -y
4141
```
4242
@@ -69,7 +69,7 @@ To run notebooks within the Azure Machine Learning workspace, you'll need a comp
6969
1. Change the file name to `compute-setup.sh`.
7070
1. Open the newly created **compute-setup.sh** file and paste the following to its content:
7171
72-
```bash
72+
```azurecli
7373
#!/bin/bash
7474
7575
# clone repository
@@ -86,8 +86,8 @@ To create the compute instance, you can use the studio, Python SDK, or Azure CLI
8686
1. In the **Compute instances** tab, select **New**.
8787
1. Configure (don't create yet) the compute instance with the following settings:
8888
- **Compute name**: *enter a unique name*
89-
- **Virtual machine type**: `CPU`
90-
- **Virtual machine size**: `Standard_DS11_v2`
89+
- **Virtual machine type**: *CPU*
90+
- **Virtual machine size**: *Standard_DS11_v2*
9191
1. Select **Next: Advanced settings**.
9292
1. Select **Add schedule** and configure the schedule to **stop** the compute instance every day at **18:00** or **6:00 PM**.
9393
1. Select the toggle for **Provision with setup script**.

Instructions/04-Work-with-environments.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To create the Azure Machine Learning workspace and compute resources, you'll use
2929
1. Check that the correct subscription is specified and select **Create storage** if you are asked to create storage for your cloud shell. Wait for the storage to be created.
3030
1. In the terminal, enter the following commands to clone this repo:
3131

32-
```bash
32+
```azurecli
3333
rm -r azure-ml-labs -f
3434
git clone https://github.com/MicrosoftLearning/mslearn-azure-ml.git azure-ml-labs
3535
```
@@ -38,7 +38,7 @@ To create the Azure Machine Learning workspace and compute resources, you'll use
3838
3939
1. After the repo has been cloned, enter the following commands to change to the folder for this lab and run the **setup.sh** script it contains:
4040
41-
```bash
41+
```azurecli
4242
cd azure-ml-labs/Labs/04
4343
./setup.sh
4444
```

Instructions/05-Designer-train-model.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To create the Azure Machine Learning workspace and a compute cluster, you'll use
2929
1. Check that the correct subscription is specified and select **Create storage** if you are asked to create storage for your cloud shell. Wait for the storage to be created.
3030
1. In the terminal, enter the following commands to clone this repo:
3131

32-
```bash
32+
```azurecli
3333
rm -r azure-ml-labs -f
3434
git clone https://github.com/MicrosoftLearning/mslearn-azure-ml.git azure-ml-labs
3535
```
@@ -38,7 +38,7 @@ To create the Azure Machine Learning workspace and a compute cluster, you'll use
3838
3939
1. After the repo has been cloned, enter the following commands to change to the folder for this lab and run the setup.sh script it contains:
4040
41-
```bash
41+
```azurecli
4242
cd azure-ml-labs/Labs/05
4343
./setup.sh
4444
```

Instructions/06-AutoML-classification-model.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
2929
1. Check that the correct subscription is specified and select **Create storage** if you are asked to create storage for your cloud shell. Wait for the storage to be created.
3030
1. In the terminal, enter the following commands to clone this repo:
3131

32-
```bash
32+
```azurecli
3333
rm -r azure-ml-labs -f
3434
git clone https://github.com/MicrosoftLearning/mslearn-azure-ml.git azure-ml-labs
3535
```
@@ -38,7 +38,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
3838
3939
1. After the repo has been cloned, enter the following commands to change to the folder for this lab and run the **setup.sh** script it contains:
4040
41-
```bash
41+
```azurecli
4242
cd azure-ml-labs/Labs/06
4343
./setup.sh
4444
```

Instructions/07-Notebooks-mlflow-tracking.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ To create the Azure Machine Learning workspace and a compute instance, you'll us
2828
1. Check that the correct subscription is specified and select **Create storage** if you are asked to create storage for your cloud shell. Wait for the storage to be created.
2929
1. In the terminal, enter the following commands to clone this repo:
3030

31-
```bash
31+
```azurecli
3232
rm -r azure-ml-labs -f
3333
git clone https://github.com/MicrosoftLearning/mslearn-azure-ml.git azure-ml-labs
3434
```
@@ -37,7 +37,7 @@ To create the Azure Machine Learning workspace and a compute instance, you'll us
3737
3838
1. After the repo has been cloned, enter the following commands to change to the folder for this lab and run the **setup.sh** script it contains:
3939
40-
```bash
40+
```azurecli
4141
cd azure-ml-labs/Labs/07
4242
./setup.sh
4343
```

Instructions/08-Script-command-job.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
2929
1. Check that the correct subscription is specified and select **Create storage** if you are asked to create storage for your cloud shell. Wait for the storage to be created.
3030
1. In the terminal, enter the following commands to clone this repo:
3131

32-
```bash
32+
```azurecli
3333
rm -r azure-ml-labs -f
3434
git clone https://github.com/MicrosoftLearning/mslearn-azure-ml.git azure-ml-labs
3535
```
@@ -38,7 +38,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
3838
3939
1. After the repo has been cloned, enter the following commands to change to the folder for this lab and run the **setup.sh** script it contains:
4040
41-
```bash
41+
```azurecli
4242
cd azure-ml-labs/Labs/08
4343
./setup.sh
4444
```
@@ -85,7 +85,7 @@ Using a notebook attached to a compute instance is ideal for experimentation and
8585
1. Run all cells to explore the code and train a model.
8686
1. Select the ☰ icon at the top of the notebook to view the **notebook menu**.
8787
1. Expand **Export as**, and select **Python (.py)** to convert the notebook to a Python script.
88-
1. Name the new file **train-classification-model.py**.
88+
1. Name the new file `train-classification-model.py`.
8989
1. Once the new file is created, the script should automatically be opened. Explore the file and note that it contains the same code as the notebook.
9090
1. Select the ▷▷ icon at the top of the notebook to **save and run the script in the terminal**.
9191
1. The script is initiated by the command **python train-classification-model.py** and the output should be shown below the command.

Instructions/08-Script-mlflow-tracking.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
2929
1. Check that the correct subscription is specified and select **Create storage** if you are asked to create storage for your cloud shell. Wait for the storage to be created.
3030
1. In the terminal, enter the following commands to clone this repo:
3131

32-
```bash
32+
```azurecli
3333
rm -r azure-ml-labs -f
3434
git clone https://github.com/MicrosoftLearning/mslearn-azure-ml.git azure-ml-labs
3535
```
@@ -38,7 +38,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
3838
3939
1. After the repo has been cloned, enter the following commands to change to the folder for this lab and run the **setup.sh** script it contains:
4040
41-
```bash
41+
```azurecli
4242
cd azure-ml-labs/Labs/08
4343
./setup.sh
4444
```

Instructions/09-Hyperparameter-tuning.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
2929
1. Check that the correct subscription is specified and select **Create storage** if you are asked to create storage for your cloud shell. Wait for the storage to be created.
3030
1. In the terminal, enter the following commands to clone this repo:
3131

32-
```bash
32+
```azurecli
3333
rm -r azure-ml-labs -f
3434
git clone https://github.com/MicrosoftLearning/mslearn-azure-ml.git azure-ml-labs
3535
```
@@ -38,7 +38,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
3838
3939
1. After the repo has been cloned, enter the following commands to change to the folder for this lab and run the **setup.sh** script it contains:
4040
41-
```bash
41+
```azurecli
4242
cd azure-ml-labs/Labs/09
4343
./setup.sh
4444
```

Instructions/09-Run-pipelines.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
2929
1. Check that the correct subscription is specified and select **Create storage** if you are asked to create storage for your cloud shell. Wait for the storage to be created.
3030
1. In the terminal, enter the following commands to clone this repo:
3131

32-
```bash
32+
```azurecli
3333
rm -r azure-ml-labs -f
3434
git clone https://github.com/MicrosoftLearning/mslearn-azure-ml.git azure-ml-labs
3535
```
@@ -38,7 +38,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
3838
3939
1. After the repo has been cloned, enter the following commands to change to the folder for this lab and run the **setup.sh** script it contains:
4040
41-
```bash
41+
```azurecli
4242
cd azure-ml-labs/Labs/09
4343
./setup.sh
4444
```

Instructions/10-Compare-models.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
2929
1. Check that the correct subscription is specified and select **Create storage** if you are asked to create storage for your cloud shell. Wait for the storage to be created.
3030
1. In the terminal, enter the following commands to clone this repo:
3131

32-
```bash
32+
```azurecli
3333
rm -r azure-ml-labs -f
3434
git clone https://github.com/MicrosoftLearning/mslearn-azure-ml.git azure-ml-labs
3535
```
@@ -38,7 +38,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
3838
3939
1. After the repo has been cloned, enter the following commands to change to the folder for this lab and run the **setup.sh** script it contains:
4040
41-
```bash
41+
```azurecli
4242
cd azure-ml-labs/Labs/10
4343
./setup.sh
4444
```

Instructions/10-Log-mlflow-models.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
2929
1. Check that the correct subscription is specified and select **Create storage** if you are asked to create storage for your cloud shell. Wait for the storage to be created.
3030
1. In the terminal, enter the following commands to clone this repo:
3131

32-
```bash
32+
```azurecli
3333
rm -r azure-ml-labs -f
3434
git clone https://github.com/MicrosoftLearning/mslearn-azure-ml.git azure-ml-labs
3535
```
@@ -38,7 +38,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
3838
3939
1. After the repo has been cloned, enter the following commands to change to the folder for this lab and run the **setup.sh** script it contains:
4040
41-
```bash
41+
```azurecli
4242
cd azure-ml-labs/Labs/10
4343
./setup.sh
4444
```

Instructions/11-Deploy-batch-endpoint.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
2929
1. Check that the correct subscription is specified and select **Create storage** if you are asked to create storage for your cloud shell. Wait for the storage to be created.
3030
1. In the terminal, enter the following commands to clone this repo:
3131

32-
```bash
32+
```azurecli
3333
rm -r azure-ml-labs -f
3434
git clone https://github.com/MicrosoftLearning/mslearn-azure-ml.git azure-ml-labs
3535
```
@@ -38,7 +38,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
3838
3939
1. After the repo has been cloned, enter the following commands to change to the folder for this lab and run the **setup.sh** script it contains:
4040
41-
```bash
41+
```azurecli
4242
cd azure-ml-labs/Labs/11
4343
./setup.sh
4444
```

Instructions/11-Deploy-online-endpoint.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
2929
1. Check that the correct subscription is specified and select **Create storage** if you are asked to create storage for your cloud shell. Wait for the storage to be created.
3030
1. In the terminal, enter the following commands to clone this repo:
3131

32-
```bash
32+
```azurecli
3333
rm -r azure-ml-labs -f
3434
git clone https://github.com/MicrosoftLearning/mslearn-azure-ml.git azure-ml-labs
3535
```
@@ -38,7 +38,7 @@ To create the Azure Machine Learning workspace, a compute instance, and a comput
3838
3939
1. After the repo has been cloned, enter the following commands to change to the folder for this lab and run the **setup.sh** script it contains:
4040
41-
```bash
41+
```azurecli
4242
cd azure-ml-labs/Labs/11
4343
./setup.sh
4444
```

Policies/DP-100 Base + LP11.json

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"if": {
3+
"not": {
4+
"anyOf": [
5+
{
6+
"field": "type",
7+
"contains": "Microsoft.Storage/storageAccounts"
8+
},
9+
{
10+
"field": "type",
11+
"contains": "Microsoft.insights/"
12+
},
13+
{
14+
"field": "type",
15+
"contains": "Microsoft.ContainerInstance/containerGroups"
16+
},
17+
{
18+
"field": "type",
19+
"contains": "Microsoft.ContainerRegistry/registries"
20+
},
21+
{
22+
"field": "type",
23+
"contains": "Microsoft.KeyVault/vaults"
24+
},
25+
{
26+
"field": "type",
27+
"contains": "Microsoft.AlertsManagement/smartDetectorAlertRules"
28+
},
29+
{
30+
"field": "type",
31+
"contains": "Microsoft.OperationalInsights/workspaces"
32+
},
33+
{
34+
"field":"type",
35+
"equals":"Microsoft.MachineLearningServices/workspaces"
36+
},
37+
{
38+
"field":"type",
39+
"contains":"Microsoft.MachineLearningServices/workspaces/onlineEndpoints"
40+
},
41+
{
42+
"field":"type",
43+
"contains":"Microsoft.MachineLearningServices/workspaces/batchEndpoints"
44+
}
45+
]
46+
47+
}
48+
},
49+
"then": {
50+
"effect": "Deny"
51+
}
52+
}

Policies/DP-100 Base.json

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"if": {
3+
"not": {
4+
"anyOf": [
5+
{
6+
"field": "type",
7+
"contains": "Microsoft.Storage/storageAccounts"
8+
},
9+
{
10+
"field": "type",
11+
"contains": "Microsoft.insights/"
12+
},
13+
{
14+
"field": "type",
15+
"contains": "Microsoft.ContainerInstance/containerGroups"
16+
},
17+
{
18+
"field": "type",
19+
"contains": "Microsoft.ContainerRegistry/registries"
20+
},
21+
{
22+
"field": "type",
23+
"contains": "Microsoft.KeyVault/vaults"
24+
},
25+
{
26+
"field": "type",
27+
"contains": "Microsoft.AlertsManagement/smartDetectorAlertRules"
28+
},
29+
{
30+
"field": "type",
31+
"contains": "Microsoft.OperationalInsights/workspaces"
32+
},
33+
{
34+
"field":"type",
35+
"equals":"Microsoft.MachineLearningServices/workspaces"
36+
}
37+
]
38+
39+
}
40+
},
41+
"then": {
42+
"effect": "Deny"
43+
}
44+
}

0 commit comments

Comments
 (0)