@Armando Cordova I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.
Issue: You are trying to create users to log in from your Kubernetes service, but you are unable to find the create_principal
function/procedure in your flexible PostgreSQL instance. you have also tried logging in with your user and token via SSH with Azure CLI, but still unable to find the function/procedure.
Solution: As you mentioned you were able to resolve the issue by connecting to the correct database.as those functions only exist in the special db "postgres" .
I understand that the documentation could have been clearer about the special postgres
database and its role in creating users. Your feedback is valuable, and I will pass it along to the Azure documentation team to improve the documentation.
Please remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution.
Regards
Geetha