Partner-Center-DotNet-Samples
Partner-Center-DotNet-Samples copied to clipboard
Rate card sample returns exception
Steps to reproduce
- Clone the
master
branch - Replace the appropriate configuration in the App.config
- Execute the sample program
- Type
16
to select Rate card samples and pressEnter
- Type
1
to run the get rate card scenario and pressEnter
- Sign in with the partner center user account
-
It is assumed you have setup the api access to partner center as per steps listed here:
https://docs.microsoft.com/en-us/partner-center/develop/set-up-api-access-in-partner-center
Expected behavior
- Get Azure Rate Card details for the CSP
Actual behavior
- Return an exception after successfully authenticating as shown in the screenshot below
Diagnostic logs
Partner Exception:
Error Category: Forbidden
Service Error Payload: null
Context: Request Id: 50bf925d-c80e-4bcc-bb3f-214dab9cb7a0, Correlation Id: 1c9dca8f-64a7-4928-ad22-716481212030, Locale: en-US
Base Description: Microsoft.Store.PartnerCenter.Exceptions.PartnerException: {"message":"The supplied role does not have the rights to perform the requested operation."}
Additional Info
- I have developer role for the partner center I am trying this on.
- Please advise if something else needs to be verified or checked.
- Please advise if there is an another alternative to fetch the CSP rate card.
- The goal is to do this via a REST API call, tried the SDK sample to validate how it works, please recommend if anything else should be done for the REST API rate card calls for the CSP.
Steps to reproduce
- Clone the
master
branch- Replace the appropriate configuration in the App.config
- Execute the sample program
- Type
16
to select Rate card samples and pressEnter
- Type
1
to run the get rate card scenario and pressEnter
- Sign in with the partner center user account
It is assumed you have setup the api access to partner center as per steps listed here:
https://docs.microsoft.com/en-us/partner-center/develop/set-up-api-access-in-partner-centerExpected behavior
- Get Azure Rate Card details for the CSP
Actual behavior
- Return an exception after successfully authenticating as shown in the screenshot below
![]()
Diagnostic logs
Partner Exception: Error Category: Forbidden Service Error Payload: null Context: Request Id: 50bf925d-c80e-4bcc-bb3f-214dab9cb7a0, Correlation Id: 1c9dca8f-64a7-4928-ad22-716481212030, Locale: en-US Base Description: Microsoft.Store.PartnerCenter.Exceptions.PartnerException: {"message":"The supplied role does not have the rights to perform the requested operation."}
Additional Info
- I have developer role for the partner center I am trying this on.
- Please advise if something else needs to be verified or checked.
- Please advise if there is an another alternative to fetch the CSP rate card.
- The goal is to do this via a REST API call, tried the SDK sample to validate how it works, please recommend if anything else should be done for the REST API rate card calls for the CSP.
Hello, have you fixed the forbidden error?