It's hard to give any insights (at least for me) from just that code. Your debug log will contain some sensitive info like your Azure subscription info, otherwise you could share it here. Sanitizing it is a bit hard.
Having said that, the only pointers I can give is simplify your DB creation, i.e. remove private network etc. and just create the DB, destroy it and add features to it incrementally to see when the hangup starts. I assume this is a dev/test stack where you can destroy and recreate the DB temporarily till you figure out what's going on.
Also, how are you authenticating to Azure?
az
CLI?