Skip to content

Commit

Permalink
docs: update README.md for prerequisite steps
Browse files Browse the repository at this point in the history
  • Loading branch information
anujsinha3 committed Feb 27, 2024
1 parent de29baf commit bc1768b
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion azureml/bicep/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,40 @@
### HOW TO DEPLOY TO AZURE USING BICEP SCRIPTS AND COMMAND LINES
## HOW TO DEPLOY TO AZURE USING BICEP SCRIPTS AND COMMAND LINES

### STEP 0: PREREQUISITES
Ignore pre-requisites if already done as part of the project setup instruction in the parent README.md
[Install Azure CLI](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli)

Add the ML extension:
```
az extension add --name ml
```

Configure the CLI:

```
az login
az account set --subscription "<your subscription name>"
az configure --defaults workspace=<aml workspace> group=<resource group> location=<location, e.g. westus3>
```

Execute the following commands on your terminal(mac)

#### STEP 1: SET THE REQUIRED VARIABLES
```
current_date=$(date +%m-%d-%Y)
```

#### STEP 2: SET THE DEPLOYMENT NAME
```
deployment_name="<name_as_per_specification>""$current_date"
```

example for reference: 'AutoRAML02-26-2024'

#### STEP 3: TRIGGER DEPLOYMENT
```
az deployment group create --name $deployment_name --resource-group <resource_group_name on azure> --template-file ./main.bicep --parameters ./azuredeploy.parameters.json --verbose --confirm-with-what-if
```

#### STEP 4: CONFIRM CHANGES (y/N)

Expand Down

0 comments on commit bc1768b

Please sign in to comment.