In addition, you need to obtain data on tenant usage of resources and services for capacity planning and billing purposes.
This solution pertains to provisioning VM clouds. You can also provision web sites using the portal. For more information, see Windows Azure Services for Windows Server Web Sites Cloud.
Service Provider Foundation makes it possible to configure client access to resources without making changes to the portal. You can use Service Provider Foundation independently of Service Management Portal and API. However, provisioning VM clouds in the Service Management Portal and API requires a connection to Service Provider Foundation.
You can use Service Provider Foundation independently of Service Management Portal and API. However, provisioning VM clouds in the Service Management Portal and API requires a connection to Service Provider Foundation.
Service Provider Foundation computes usage statistics on the resources that tenants consume. This solution provides this information currently only as an overview in the Usage metering in Service Provider foundation later in this topic.
This scenario provides the high-level steps for connecting the Service Management Portal and API to Service Provider Foundation. It then describes their integration.
This solution is intended to serve as a high-level example, not as comprehensive or detailed guidance. You can use the example solution as a guide to posting descriptions of your own solutions that are particular to your business or organization. Then, other members of the community can follow your description to get ideas for how to combine System Center components to meet their business requirements.
Now that you have tenants and resources created, you can begin to see how Service Provider Foundation and the Service Management Portal and API integrate with each other.
After you register the Service Provider Foundation endpoint, any clouds that you created in VMM (or by using Windows PowerShell) on the server that has Service Provider Foundation installed will appear as clouds in the Admin Portal of the Service Management Portal and API. However, in Service Provider Foundation you must have that server added to the Service Provider Foundation database for the integration to appear. You can add a server to the database with the NEW-SCSPFServer cmdlet. The following example shows adding a server named 'ADatumSPF', a fully qualified domain name (FQDN) is not required. ServerType 0 indicates a VMM server (the only currently supported type).
New-SCSPFServer -Name 'ADatumSPF' -ServerType 0
In addition, any stamps that you create in Service Provider Foundation will be listed as providers in the Admin Portal for VM Clouds. A stamp in Service Provider Foundation is a logical scale unit that is designed for scalability that provides an association between a server and its System Center 2012 SP1 components. As tenant demand increases, the hoster provides additional stamps to meet the demand. Currently, Service Provider Foundation supports only one type of stamp: a single server that has VMM installed.
Users that subscribe to plans at sign-up in the Tenant Portal are added to the Service Provider Foundation database as tenants. You can work with tenants to maintain their data, including account status (suspended or active), public keys, certificates, stamps, and offers (plans in the Admin Portal).
Plans that you create in the Admin Portal are added to the Service Provider Foundation database as offers. This makes it possible for you to configure the plans (offers) with stamps and tenants and thereby accommodate changes that you want to make to the plans and the tenants that you want to associated with them.
If you configure a plan in the Admin Portal to accommodate multiple signups per account, Service Provider Foundation will configure each user with a self-service user role to access the resources that the plan offers. If the plan is configured in the portal for a signup, that user will be configured with a tenant administrator role in Service Provider Foundation.
Tenants created in Service Management Portal and API are also reflected in the Virtual Machine Manager console, including information about resources assigned to the tenant.
To demonstrate the integration of clouds and servers between Service Provider Foundation and the Admin Portal of Service Management Portal and API, the fundamental requirement is to add the Service Provider Foundation server to the Service Provider Foundation database, as described previously in this section. (Note that you are not required to have the database and Service Provider Foundation on the same server.)
The following Windows PowerShell commands create a stamp in Service Provider Foundation, named 'ADatum Pro', that is associated with the server 'ADATUMSPF' that was previously added to the Service Provider Foundation database.
$svr = Get-SCSPFServer -Name 'ADATUMSPF' $ADPro = New-SCSPFStamp -Name 'ADatum Pro' Set-SCSPFStamp -Stamp $ADPro -Servers -$svr
The following illustration shows two clouds created in VMM. The 'MyTestCloud' cloud was created before the Service Provider Foundation endpoint was registered in the Admin Portal. Nevertheless, all clouds hosted on that server will appear in the Admin Portal.
The Admin Portal has two tabs for VM clouds: Clouds and Providers. Note that the Provider tab (lower right) shows the stamp that was created in Service Provider Foundation. The 'ADatum Cloud' (upper right) was created in the Admin Portal with the New feature (+) using the provider named 'ADatum Pro' - the same as the Service Provider Stamp.
If you were to delete the 'ADatum Pro' provider in the Admin Portal, it would cause the Service Provider Foundation 'ADatum Pro' stamp to be deleted as well.
Service Provider Foundation provides IaaS usage metering through REST queries using its VMM service.
The following image shows the high-level flow for usage metering:
See Using Metering in Service Provider Foundation for information on configuring usage metering, creating queries, and usage metering metrics.
For information on integrating usage metering using the Service Management Portal and API, see the Usage Extensibility.docx document that is available in the download of "Web Sites, Virtual Machines, Service Management Portal, and Service Management API Samples - Feb 2013" from the Microsoft Download Center.
nice article