Feb 02 2023 10:44 PM - edited Feb 03 2023 05:10 AM
The scenario is as follows:
As a bank I subscribe to SaaS app offering metered billing.
A user is now redirected to the SaaS App via the bank.
How does SaaS app know the user is accessing it in the context of the bank’s subscription.
if there is sample SaaS app code for this scenario that be great help.
to be very specific, how does the SaaS app obtain the subscriptionId to populate the resourceId parameter in this metered billing single usage event API call to Marketplace ?
i have already read this - https://techcommunity.microsoft.com/t5/fasttrack-for-azure/azure-marketplace-metered-billing-picking...
The solution there assumes that buyer and user are the same. But in the case I describe above buyer and user are different. How will the user get the subscription Id obtained by buyer ?
Feb 05 2023 11:10 PM
@Premal Gandhi have you checked the SaaS Fulfillment APIs? They give the ISVs the GUID of the SaaS - https://learn.microsoft.com/en-us/azure/marketplace/partner-center-portal/pc-saas-fulfillment-life-c...
Feb 05 2023 11:11 PM
Feb 06 2023 03:02 AM
Feb 07 2023 02:39 AM
Feb 07 2023 08:26 AM
@kgola-cflt - So focus on #2 in your reply above. What prevents a user from selecting an incorrect subscription Id ?
Feb 13 2023 10:16 PM - edited Feb 13 2023 10:17 PM
In case you're using a Private Offers (tied to a Billing Account and indirectly to an underlying Az Subscription), it will show a hint that you've selected a subscription that's not covered by Private Offers. Other than that, I don't think there is a constraint that ISV can place to stop a user from clicking a particular subscription
Mar 07 2023 03:09 PM