forked from Azure/azureml-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-datasets.sh
35 lines (16 loc) · 1.04 KB
/
update-datasets.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# setup datastore name
datastore="workspaceblobstore"
# query datastore
account=$(az ml datastore show -n $datastore --query account_name -o tsv)
account=$(echo $account|tr -d '\r')
container=$(az ml datastore show -n $datastore --query container_name -o tsv)
container=$(echo $container|tr -d '\r')
# replace storage account and container names in the YAML files
sed -i 's/account-name/'"$account"'/g' ../cli/assets/dataset/cloud-folder-https.yml
sed -i 's/container-name/'"$container"'/g' ../cli/assets/dataset/cloud-folder-https.yml
sed -i 's/account-name/'"$account"'/g' ../cli/assets/dataset/cloud-file-https.yml
sed -i 's/container-name/'"$container"'/g' ../cli/assets/dataset/cloud-file-https.yml
sed -i 's/account-name/'"$account"'/g' ../cli/assets/dataset/cloud-folder-wasbs.yml
sed -i 's/container-name/'"$container"'/g' ../cli/assets/dataset/cloud-folder-wasbs.yml
sed -i 's/account-name/'"$account"'/g' ../cli/assets/dataset/cloud-file-wasbs.yml
sed -i 's/container-name/'"$container"'/g' ../cli/assets/dataset/cloud-file-wasbs.yml