i try to connect my azure function to google cloud storage and I have some issues with the authentication.
I am able to connece everythin from my JupyterNotebook but in my azure function I am not able to provide the credentials as path. In my azure function I am not able to provide a path but have the credentials in a variable. It returns the error Exception: OSError: [Errno 63] File name too long
. I think the error occures because it treads the credentials as path.
I could not find a way to connect to google storage toll now.
Here is a super short version of what I did to get the client:
from google.cloud import storage
google_credentials = get_credentials()
client = storage.Client.from_service_account_json(google_credentials)
Any suggestions how I can connect with a service account to google within an azure function?
Best :-)