Introduce CloudShell
Install DirEnv in CloudShell
git clone https://github.com/direnv/direnv.git
cd direnv
make
make install DESTDIR=~/.local
cd ..
## MODIFY .bashrc ##
code .bashrc
export PATH="$PATH:$HOME/.local/bin"
eval "$(direnv hook bash)"
source .bashrc
Clone Repositories
git clone https://github.com/danielscholl/iot-resources.git
git clone https://github.com/danielscholl/iot-consumer-net.git
git clone https://github.com/danielscholl/iot-device-edge.git
Provision IoT Resources
cd iot-resources
./provision.sh iot
- Analyze Resource Group
- Enable IoT Security Preview
Build PKI and Create Certificates
cd iot-resources
./init-ca.sh
- Analyze Key Vault
- Analyze Hub Certificate Authority
Deploy 10 Sample Devices
cd iot-resources
COUNT=1
until [ $COUNT -gt 10 ]; do
./device-cert.sh device device$COUNT deploy
let COUNT+=1
done
cd iot-consumer-net
GROUP=iot-resources npm run aci
- Analyze EPH
- Deploy Additional Consumers
Create Certificates
cd iot-resources
./device-cert.sh edge edge
Provision Edge Resources
cd iot-device-edge
## SETUP .envrc ##
DEVICE="edge" ./provision.sh
## AFTER reboot ##
ssh <ip>
./init.sh
- Setup DNS CName
Setup Edge Module Routes
cd iot-device-edge
./deploy.sh
Deploy Sample Device
cd iot-resources
COUNT=1
until [ $COUNT -gt 5 ]; do
EDGE_GATEWAY=edge.danielscholl.info ./device-cert.sh leaf leaf$COUNT deploy
let COUNT+=1
done
Deploy Sample Device
cd iot-resources
./device-cert.sh device aci-device2 deploy
- Analyze DPS