[BUG] Unable to use Managed Identity when calling Set-PnPAdaptiveScopeProperty #3808
Open
2 tasks done
Labels
bug
Something isn't working
Reporting an Issue or Missing Feature
I am trying to build an Azure Function using Managed Identity that will receive a set of Values for some Adaptive Scope Properties we are trying to set as part of our workflow, however when running the Script we are seeing the error
Unable to connect to the SharePoint Online Admin Center at 'https://{tenant}-admin.sharepoint.com' to run this cmdlet
Expected behavior
Set Adapative Scope Property to MyNewValue = Value1
Actual behavior
Unable to connect to the SharePoint Online Admin Center at 'https://{tenant}-admin.sharepoint.com' to run this cmdlet. If this URL is incorrect for your tenant, you can pass in the correct Admin Center URL using Connect-PnPOnline -TenantAdminUrl. If you are using Privileged Identity Management (PIM) on your tenant, please ensure you have activated at least the SharePoint Administrator role and allowed some time for it to activate. Error message: The remote server returned an error: (401) Unauthorized.
Steps to reproduce behavior
Connect-PnPOnline -Url $siteAddress -ManagedIdentity
Set-PnPAdaptiveScopeProperty -Key MyNewValue -Value Value1
What is the version of the Cmdlet module you are running?
'PnP.PowerShell' = '2.4.0'
Which operating system/environment are you running PnP PowerShell on?
The text was updated successfully, but these errors were encountered: