https://prefect.io logo
#prefect-community
Title
# prefect-community
k

Khuyen Tran

08/10/2022, 6:49 PM
Hey all, we’re hosting @Christopher Boyd on PrefectLive today at 3p EST (starting in 15') where he’s going to show how to set up Microsoft Azure with Prefect on Twitch. Come join us if this is the topic you are interested in
cloud2 1
azure 4
prefect2 1
🎉 5
twitch 1
📺 1
🦜 4
c

Christopher Boyd

08/10/2022, 8:21 PM
For anyone that was watching and saw my mistake - the error was in my build command
There are two options that can be passed:
Copy code
--infra          -i       [kubernetes-job|process|docker-container]  The infrastructure type to use, prepopulated with defaults.       

--infra-block    -ib      The slug of the infrastructure block to use as a template
My command utilized the wrong infra block:
Copy code
prefect deployment build ./healthcheck.py:healthcheck -n live_demo  -t kubernetes -ib kubernetes-job -sb azure/boydblock
should have been
Copy code
prefect deployment build ./healthcheck.py:healthcheck -n live_demo  -t kubernetes -i kubernetes-job -sb azure/boydblock
The results of that second command were a successful build:
The results of fixing that, and re-applying:
4 Views