# NOT RUN {
# without any arguments, this will create a client using your AAD credentials
az <- create_graph_login()
# retrieve the login in subsequent sessions
az <- get_graph_login()
# this will create an Microsoft Graph client for the tenant 'microsoft.onmicrosoft.com',
# using the client_credentials method
az <- create_graph_login("microsoft", app="{app_id}", password="{password}")
# you can also login using credentials in a json file
az <- create_graph_login(config_file="~/creds.json")
# }
Run the code above in your browser using DataLab