Forum Discussion
Deploy an Azure Functions from Azure DevOps, when Shared Access Key is disabled
To troubleshoot the issue with your Azure DevOps pipeline using a Service Connection with a Managed Identity to deploy to an Azure Function that connects to a storage account, consider the following:
Verify Managed Identity Permissions: Ensure that the Managed Identity used by your Azure Function has the necessary permissions on the storage account. At minimum, the Managed Identity should have the Storage Blob Data Contributor role on the storage account.
Check Azure DevOps Service Connection: Confirm that your Azure DevOps Service Connection is configured to use the Managed Identity. In the Service Connection settings, select the "Use managed identity" option and choose the appropriate Managed Identity.
Review Azure Function Configuration: Double-check the configuration of your Azure Function to ensure that it is correctly using the Managed Identity to access the storage account. If you are using environment variables or configuration settings, make sure they are set correctly.
If the issue persists, you may also want to check the Azure Function logs for any errors or warnings that could indicate the cause of the deployment failure.