Skip to content

Use Fabric built-in Authentication #12

@gbrueckl

Description

@gbrueckl

instead of using an AAD Service Principal it would be much easier to simply use mssparkutils.credentials to retrieve a token for the currently logged in user
you can replace these lines https://github.com/microsoft/fabric-migration/blob/main/data-engineering/utils/util.py#L14-L27
with synapse_dev_token = mssparkutils.credentials.getToken("https://dev.azuresynapse.net/")

you could further derive the current workspace_id and lakehouse_id of the notebook limiting the necessary input from the user to only the synapse_workspace_name

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions