-
Notifications
You must be signed in to change notification settings - Fork 1
/
run-playground.sh
executable file
·30 lines (23 loc) · 981 Bytes
/
run-playground.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
# *********************************************************
# Initialization of the Playground
# ---------------------------------------------------------
# make sure that you have created Service Principal and
# configured the environment variables.
# See credentials-template
# *********************************************************
# load environment variables to build the playground
source credentials-apply.sh
# create cloud resources
terraform apply --auto-approve --parallelism=1
# ! *********************************************************
# ! Azure ARM provider for Terraform doesn’t support managing
# ! DPS enrollment groups. For now, you’ll need to use the
# ! Azure CLI (Aug 2020)
# ! This is done in Terraform as well
# ! *********************************************************
vagrant up iot-edge-key1
vagrant up iot-edge-cert1
# or vagrant up for all devices
### Stop playground and remove all ressources
# vagrant destroy
# terraform destroy