问题
I am trying to automate the offer publishing process on Azure Cloud Partner Portal.
I would like to get notified when the offer reaches the preview stage. One way to do this would be to deploy a serverless function which polls the cloudpartner api to check the status of the offer.
I was wondering if there was a cleaner solution to this problem though. I have been reading about Event Grid at the following page: https://docs.microsoft.com/en-us/azure/event-grid/overview
It seems like there is a possibility to configure an event source if the event is within the subscription, but this event is not in the subscription but rather at the Cloud Partner Portal level.
Is it possible to achieve what I am looking for with a pub-sub model?
回答1:
The Azure Cloud Partner Portal (CPP) REST APIs allow only notification via the e-mail, there is no publishing to the weebhook endpoint.
The workaround for that notification is using a 3r party e-mail integrator, for instance: Zapier.
The following screen snippet shows how easy can be integrated the Azure CPP to the Azure Event Grid using the Zapier. The notification e-mail can be used also direct to zapiermail.com.
Note, that also can be used an Azure Logic App instead of Zapier as an integrator, see the following screen snippet:
来源:https://stackoverflow.com/questions/58842232/subscribe-to-azure-cloud-partner-portal