This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from azure.mgmt.datafactory import DataFactoryManagementClient | |
from azure.common.credentials import UserPassCredentials #To login with user and pass, use this. | |
from azure.common.credentials import ServicePrincipalCredentials #To login with service principal (appid and client secret) use this | |
subscription_id = "subsID" | |
#Use only one of these, depending on how you want to login. | |
credentials = UserPassCredentials(username="user@yourdomain.com", password="yourpass") #To login with user and pass | |
credentials = ServicePrincipalCredentials(client_id='appid', secret='client secret', tenant='tenantid') #To login with serv ppal |