-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
52 lines (44 loc) · 1.49 KB
/
Makefile
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright (c) 2021 Microsoft
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
RESOURCE_GROUP=rg-test
NAME=amlworkspace
DEPLOYMENT_NAME=aml-deployment
LOCATION=southcentralus
CI_NAME=aml-ci
WS_NAME=$(shell az deployment group show -g ${RG_NAME} --name ${DEPLOYMENT_NAME} -o jsonc --query "properties.outputs.workspaceName.value" -o tsv)
create-group:
az group create -n ${RESOURCE_GROUP} -l ${LOCATION}
delete-group:
az group delete -n ${RESOURCE_GROUP}
deploy:
az deployment group create \
--name ${DEPLOYMENT_NAME} \
--mode Incremental \
--resource-group ${RESOURCE_GROUP} \
--template-file main.bicep \
--parameters [email protected] \
--parameters baseResourceName=${NAME}
validate:
az deployment group validate \
--name ${DEPLOYMENT_NAME} \
--resource-group ${RESOURCE_GROUP} \
--template-file main.bicep \
--parameters [email protected] \
--parameters baseResourceName=${NAME}
deploy-ci:
az deployment group create \
--name ${DEPLOYMENT_NAME} \
--mode Incremental \
--resource-group ${RESOURCE_GROUP} \
--template-file components/compute-instance.bicep \
--parameters [email protected] \
--parameters vnet=@vnet_details.json \
--parameters workspaceName=${WS_NAME} \
ciName=${CI_NAME} \
assignedUserId='$(shell az ad signed-in-user show --query objectId -o tsv)' \
vmSkuName=Standard_DS3_v2 \
sshPublicKey='$(shell cat ~/.ssh/id_nbvm_rsa.pub)'
list-deployments:
az deployment group list -g ${RESOURCE_GROUP}