From bc1768b95d709acbc8eb7971d405764bf721925b Mon Sep 17 00:00:00 2001 From: Anuj Sinha Date: Tue, 27 Feb 2024 01:30:13 -0800 Subject: [PATCH] docs: update README.md for prerequisite steps --- azureml/bicep/README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/azureml/bicep/README.md b/azureml/bicep/README.md index e1e060e..8d1a952 100644 --- a/azureml/bicep/README.md +++ b/azureml/bicep/README.md @@ -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 "" +az configure --defaults workspace= group= location= +``` 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="""$current_date" +``` example for reference: 'AutoRAML02-26-2024' #### STEP 3: TRIGGER DEPLOYMENT +``` az deployment group create --name $deployment_name --resource-group --template-file ./main.bicep --parameters ./azuredeploy.parameters.json --verbose --confirm-with-what-if +``` #### STEP 4: CONFIRM CHANGES (y/N)