Azure Resource Provider Concept

I'm trying to write my own resource provider to create a new add-on on the Azure MarketPlace, but I have some vague concepts about the provider.

If the user wants information about a resource, Azure will perform a GET for that specific resource.

<provisioning_endpoint>/subscriptions/<subscription_id>/cloudservices/<cloud_service_name>/resources/<resource_type>/<resourceName>

I know that I can configure the resource type on the publisher portal in application services // Resource Provider. But what about the restoration? If I want to create a new service (for example, SendGrid), I do not want to create a virtual machine or add-in, I want to create an ex Subscription on my site. Azure will issue a GET request to my provider, and this request will contain the name of the resource. But where / how can I configure the resource name?

I think Resource is a string that a user can enter in Portal from Buying from Marketplace

I read that resources are nested under a named object called CloudService. Where can I set the name of CloudService? What could be the possible name of CloudService in my case? Or did I miss an understanding of the entire Resource Provider?

+4
source share
1 answer
<provisioning_endpoint>/subscriptions/<subscription_id>/cloudservices/<cloud_service_name>/resources/<resource_type>/<resourceName>

Azure will send you requests to your final URL. When you split the URL into pieces, you will get something like:

[1] => addon
[2] => azure
[3] => resources
[4] => subscriptions
[5] => 6163ffa8-4b05-4bc3-8c45-5656d279c87c
[6] => cloudservices
[7] => Azure-Stores-H4PFJULZHK3OKNFGJZTK5P3XGRVORLB7ZDAZVKEBLZLUVIGNJKGA-West-US
[8] => resources
[9] => marketing2-6460E175-C5B7-4571-9189-7A2630A4CE32
[10] => ContosoAPPSTAGED3

Thus, looking at the line above from the document and the resulting URLs, the resource name in this case is ContosoAPPSTAGED3

+1
source

All Articles