Skip to content

[BUG] The argument "AuditLogsQuery.Read.All" does not belong to the set "AgreementAcceptance. #4282

@petkir

Description

@petkir

Register-PnPEntraIDApp -ApplicationName "testapp" -Tenant $TenantURL -Interactive -GraphApplicationPermissions AuditLogsQuery.Read.All
Register-PnPEntraIDApp: Cannot validate argument on parameter .... The argument "AuditLogsQuery.Read.All" does not belong to the set. ......

Reporting an Issue or Missing Feature

Reporting an Issue or Missing Feature
issue with command Register-PnPAzureADApp / Register-PnPEntraIDApp

Expected behavior

I would expect the command to create a new azure app registration and add the permission to the azure app

Actual behavior

Register-PnPEntraIDApp: Cannot validate argument on parameter .... The argument "AuditLogsQuery.Read.All" does not belong to the set. ......

Steps to reproduce behavior

Register-PnPEntraIDApp -ApplicationName "testapp" -Tenant $TenantURL -Interactive -GraphApplicationPermissions AuditLogsQuery.Read.All

What is the version of the Cmdlet module you are running?

    Directory: C:\Mac\Home\Documents\PowerShell\Modules
ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Manifest   2.12.0                PnP.PowerShell                      Core      {Add-PnPAdaptiveScopeProperty, Add-PnPE…

Which operating system/environment are you running PnP PowerShell on?

  • Windows
  • [ X ] Linux
  • MacOS
  • Azure Cloud Shell
  • Azure Functions
  • Other : please specify

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions