diff --git a/pages/articles/azureautomationrunbook.md b/pages/articles/azureautomationrunbook.md index a805704de..7f6d36567 100644 --- a/pages/articles/azureautomationrunbook.md +++ b/pages/articles/azureautomationrunbook.md @@ -152,9 +152,9 @@ We're now ready to create a Runbook in which your PnP PowerShell script will run 1. On the Edit PowerShell Runbook page, enter your PnP PowerShell code in the large white area, i.e.: ```powershell - Connect-PnPOnline tenant.sharepoint.com -ManagedIdentity + Connect-PnPOnline -ManagedIdentity - Get-PnPWeb + Get-PnPMicrosoft365Group ``` Once done, click on **Save** at the top of the screen and then on **Test pane** to test your Runbook. diff --git a/pages/articles/azurefunctions.md b/pages/articles/azurefunctions.md index 2c8ec525a..90466255e 100644 --- a/pages/articles/azurefunctions.md +++ b/pages/articles/azurefunctions.md @@ -151,7 +151,7 @@ using namespace System.Net param($Request, $TriggerMetadata) -Connect-PnPOnline tenant.sharepoint.com -ManagedIdentity +Connect-PnPOnline -ManagedIdentity Get-PnPMicrosoft365Group Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{