Enable Secure Application Model Failure
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.
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