Hi poofit,
I'd recommend checking out this guide as this person had a similar issue:
https://www.willvelida.com/posts/azure-app-availability-tests-bicep/
If this is helpful please accept as answer or upvote.
Best regards,
Dillon Silzer | Cloudaen.com | Cloudaen Computing Solutions