Hello Abdulkareem Masha,
Thanks for your question.
It appears the issue is related to API version compatibility.
Try the steps below:
- Modify your Bastion creation command or template to use API version 2023-09-01 or later.
- If you don't need the 'PrivateOnly' feature, remove it from your configuration.
- Retry creating the Bastion host.
See: https://learn.microsoft.com/en-us/azure/bastion/troubleshoot?source=recommendations
You can mark it 'Accept Answer' and 'Upvote' if this helped you
Regards,
Abiola