You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
azure account + subscription, enough rights to create a resources and resource groups
azure devops enabled
have linux edge device (for now)
2.2 Setup resource group
Fill out all values in deploy/config.yml.
Anything that does not exist yet will be automatically created
Deploy resources
Linux Manually run deploy/deploy_resource_group.sh Windows Manually run powershell -ExecutionPolicy ByPass -File .\deploy_resource_group.ps1
This will install az iot extension locally, create a resource group and iot hub as specified in the config.
Clone the repo to your devops environment
Go to repos > <current repository> > import repository.
Enter git / <url to this repo> > <your repo name>.
Generate build pipeline pipelines > build > new > azure repos git > your repo > run
Create service principal
Go to project settings > service connections > new service connection > azure resource manager and select the
subscription and resource group that you specified in the config file
Manually create release pipeline
Go to pipelines > releases > new > new release pipeline > empty job.
Add your repo as artifact. Set trigger to continuous deployment on your desired branch. Create branch if needed
Select stage 1
add 2 tasks;
Use python 3.7
Azure CLI.
Set service principal (4) as subscription.
Browse to repo/deploy.sh.
Select Access service principal details in script
Save
2.5 Test run
Push something to the branch you selected in 2.4 (sub 5.1)
Verify build success on azure devops
Verify release success on azure devops
Verify the following responds Healthy on the IoT Edge device: curl localhost:5001; echo ""
3. Debugging
3.1 Azure DevOps
Check build status
Check build feedback
Check release status
check release loggings
3.2 Azure machine learning service
Check existence of AMLS in your resource group
Check existence of workspace, model and image in AMLS via portal
3.3 IoT Hub
Check hub exists in your resource group
Check device is registered in your hub
Check device is available in your hub
Check number of modules listed in the hub for your device
Verify 3 modules listed per sudo iotedge list on your edge device
Verify status of modules/containers per sudo iotedge list and docker ps