I have some code I want to automate with an Azure function app. The code is for cloud governance purposes and will only be used internally by the governance team. The purpose of the code is to retrieve information about public IP addresses and write it to a blob. It will do this automatically every day.
I would like to use a dedicated cloud governance service principal to carry out the actions instead of a user account. How can I authenticate the service principal for the function? Do I need to use Key Vault and authenticate within the code? If so, how can I give the function permissions to use Key Vault?