Partner-Center-PowerShell icon indicating copy to clipboard operation
Partner-Center-PowerShell copied to clipboard

Enable Secure Application Model Failure

Open andrewsavvy opened this issue 4 years ago • 1 comments

I am trying to enable the Secure Application Model per the following documentation:

https://docs.microsoft.com/en-us/powershell/partnercenter/secure-app-model?view=partnercenterps-1.5

When I attempt to perform consent it fails. The code I run is:

$credential = Get-Credential $token = New-PartnerAccessToken -Consent -Credential $credential -Resource https://api.partnercenter.microsoft.com -TenantId '<Your Tenant Id>'

I looked up the New-PartnerAccessToken command and most of the parameters in the documentation are no longer valid. I need to know how to perform the consent portion so I can create tokens for the GraphAPI. Is anyone able to assist with this? Thanks.

andrewsavvy avatar Feb 16 '21 22:02 andrewsavvy

Please see this page which refers to the 3.0 version of the module https://docs.microsoft.com/en-us/powershell/partnercenter/multi-factor-auth?view=partnercenterps-3.0

jannickoeben avatar Mar 03 '21 20:03 jannickoeben