Error testing SaaS webhook on private SaaS offer

Alex 41 Reputation points
2020-09-11T16:11:52.857+00:00

Hi, my team is developing an MS teams app, with the intent to publish it as a SaaS offer through Microsoft. We are implementing a landing page and webhook per the specifications here: https://learn.microsoft.com/en-us/azure/marketplace/partner-center-portal/pc-saas-fulfillment-api-v2. We have the landing page working as expected, and can activate a subscription end to end through MS Azure Portal and our landing page. The offer is currently in preview available to a private audience of my team members.

I am now trying to test out the SaaS webhook, by changing the seat count from MS Azure Portal SaaS subscriptions page. The seat count limits are 1-100000, and I am trying to change from 1 to 2. I get the following error inside the MS Azure Portal UI: This subscription change seats request has failed and current seats are still: 1. with no additional visible information.

My SaaS webhook API is very basic for testing, and just converts any JSON payload that is called with to a string and stores it in a table. I have successfully tested it using Postman using the sample payload from https://learn.microsoft.com/en-us/azure/marketplace/partner-center-portal/pc-saas-fulfillment-api-v2#implementing-a-webhook-on-the-saas-service

I'm not sure if I am configuring something wrong on the App/Azure side to be able to test this, or there is another issue specific to the underlying implementation of the webhook API. Thanks in advance.

UPDATE:

We have been updating the webhook with the requirements from this documentation: https://learn.microsoft.com/en-us/azure/marketplace/partner-center-portal/pc-saas-fulfillment-api-v2#implementing-a-webhook-on-the-saas-service. In particular - The SaaS service is required to call the get operation API to validate and authorize the webhook call and payload data before taking action based on the webhook notification.

We have added calls to both the get operation API and the patch operation API within the webhook.

However, we are still unable to change seats within Azure Portal SaaS details page. I also believe this is not just an issue with our underlying implementation of the webhook, since we are logging all inbound requests entering the webhook and there are no inbound calls to it (other than direct calls by us through postman to validate it accepts calls correctly).

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,281 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Raffaele Brivio 101 Reputation points
    2020-11-11T16:34:44.333+00:00

    Hi @Alex I saw you posted on microsoftpartnercommunity.com too but could not find a solution to this problem. I happen to be facing the exact situation so I'm unable to hit the saas offer webhook. Did you manage to find a solution?

    Thank you in advance

    0 comments No comments