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
|
# Ignore disconnection errors
|
||||||
}
|
}
|
||||||
|
|
||||||
# Use modern authentication with device code flow
|
# Use Azure Management authentication
|
||||||
Connect-PnPOnline -Url $siteUrl -Interactive `
|
Connect-PnPOnline -Url $siteUrl -UseWebLogin `
|
||||||
-ErrorAction Stop `
|
-ErrorAction Stop `
|
||||||
-WarningAction SilentlyContinue
|
-WarningAction SilentlyContinue
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user