how can I get, update and delete Quota of Plan Service of Custom resource provider for Windows Azure Pack

412 views Asked by At

I am working on creating new custom resource provider in windows azure pack and I followed below (link) blog and its related blogs-

http://blogs.technet.com/b/privatecloud/archive/2014/04/23/custom-resource-providers-in-windows-azure-pack-moving-from-hello-world-to-your-own-resource-provider.aspx

My question is - how to write code for Plan Quota in my custom resource provider like Retrieving Plan Quota, Updating Plan Quota and deleting Plan Quota.

Attached is the sql custom resource provider Quota UI which comes by-default with Windows Azure pack installation.

I want to get same UI and functionality for my custom resource provider as in SQL.

SQL Plan Quota Screen in Windows azure pack

1

There are 1 answers

0
mrc On

As far as I know it is not possible to copy the interface of the SQL provider UI extension, and you must implement your own UI extension. You do this similarly to a normal ASP.NET website project, but it needs to be deployed in the WAP application pool.

A good example of this is given in the Hello World Custom Resource Provider, featured as a Sample in the Windows Azure Pack Developers Kit. It includes both the tenant and admin portal extensions and other layers of a custom RP.

MSDN gives a reference on WAP UI extension components here.

Working with plans in WAP can be done using the Service Management REST API, that is both admin and tenant plan interfaces. You can make calls to this API from your custom reosource provider.