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 .bashrcClone 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.gitProvision 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
donecd iot-consumer-net
GROUP=iot-resources npm run aci- Analyze EPH
- Deploy Additional Consumers
Create Certificates
cd iot-resources
./device-cert.sh edge edgeProvision 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.shDeploy 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
doneDeploy Sample Device
cd iot-resources
./device-cert.sh device aci-device2 deploy- Analyze DPS
