forked from Azure/azureml-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create-registries.sh
33 lines (24 loc) · 887 Bytes
/
create-registries.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
# Create registry-storage-options
az ml registry create -f resources/registry/registry-storage-options.yml
if [[ $? -ne 0 ]]; then
echo_error "Failed to create registry: DemoRegistry2" >&2
exit 1
fi
# wait for registry to be ready
sleep 120
# Delete registry
az resource delete -g $RESOURCE_GROUP_NAME -n DemoRegistry2 --resource-type "Microsoft.MachineLearningServices/registries"
if [[ $? -ne 0 ]]; then
echo_error "Failed to delete registry: DemoRegistry2" >&2
fi
# Create demo-registry
az ml registry create -f resources/registry/registry.yml
if [[ $? -ne 0 ]]; then
echo_error "Failed to create registry: DemoRegistry " >&2
exit 1
fi
sleep 120
az resource delete -g $RESOURCE_GROUP_NAME -n DemoRegistry --resource-type "Microsoft.MachineLearningServices/registries"
if [[ $? -ne 0 ]]; then
echo_error "Failed to delete registry: DemoRegistry" >&2
fi