Skip to content

Update-MgServicePrincipal fails with The value for the property "usage" in one of your credentials is invalid. Acceptable values are Sign, Verify. #3305

@PcChip

Description

@PcChip

Describe the bug

Trying to update the NPS certificate using the offical script no longer works with the latest version of the graph powershell module

See here for details and workaround(s)
https://www.reddit.com/r/sysadmin/comments/1ivqgl0/azure_nps_mfa_extension_problem/

Expected behavior

Update-MgServicePrincipal works with the offical microsoft AzureMfaNpsExtnConfigSetup.ps1 from this link: https://www.microsoft.com/en-us/download/details.aspx?id=54688

How to reproduce

execute AzureMfaNpsExtnConfigSetup.ps1 with the latest version of Microsoft.Graph

SDK Version

2.27.0

Latest version known to work for scenario above?

2.16.0

Known Workarounds

Downgrade Microsoft Graph powershell module to 2.16.0

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions