refactor: Switch to Azure Management auth in Connect-SharePoint function
This commit is contained in:
parent
5e61686d51
commit
dc9ee3ccc1
@ -47,8 +47,8 @@ function Connect-SharePoint {
|
||||
# Ignore disconnection errors
|
||||
}
|
||||
|
||||
# Use modern authentication with device code flow
|
||||
Connect-PnPOnline -Url $siteUrl -Interactive `
|
||||
# Use Azure Management authentication
|
||||
Connect-PnPOnline -Url $siteUrl -UseWebLogin `
|
||||
-ErrorAction Stop `
|
||||
-WarningAction SilentlyContinue
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user