app function: authentication to get a workspace? RRS feed

  • Question

  • Hello,

    In an azure function app, when I do a ws = Workspace.get(name=..., subscription_id=..., resource_group=...), I have the message "Failed to load or parse file /home/.azure/azureProfile.json. It will be overridden by default settings.", followed by "Performing interactive authentication. Please follow the instructions on the terminal... and I have to enter a code in a new browser window. I also tried with this to force authentication:
    auth = InteractiveLoginAuthentication (tenant_id.")
    ws = Workspace.get(name=..., subscription_id=..., resource_group=..., auth = auth)
    but it's not better.
    Would anyone know how to handle authentication properly?

    Thanks for your help.

    • Edited by forest73 Thursday, August 20, 2020 7:37 PM
    Thursday, August 20, 2020 7:33 PM