@ericOnline Thanks for reaching out. It looks like you are experiencing an issue where your Azure Function with System Assigned Managed Identity cannot access your Azure Database for PostgreSQL resource.
could you please confirm if you have followed the below steps
- Go to your Azure Function in the Azure portal.
- Click on "Identity" and then select "System assigned".
- Click on "Save" to save the changes.
- Go to your Azure Database for PostgreSQL resource in the Azure portal.
- Click on "Access control (IAM)" and then click on "Add".
- In the "Add role assignment" blade, select "Contributor" as the role and then search for your Azure Function by name.
- Select your Azure Function and then click on "Save" to grant the Contributor role to your Azure Function.