Home > Cloud Cruiser 3 > Setting Up Collection > Native collectors > Microsoft Azure Services for Windows Server > Setting up ongoing event notifications

Setting up ongoing event notifications

You must configure the Azure Services for Windows Server Service Management Portal computer to notify Cloud Cruiser of subscription and offer events as they occur.

To set up ongoing event notifications

On the Service Management Portal computer, edit c:\inetpub\MgmtSvc-AdminAPI\web.config to add the following notificationSubscriber element for Cloud Cruiser:

<notificationSubscriber name="cloudcruiser" enabled="true" notificationEndpoint="http://<ccServerURL>/rest/v1/usage/asfws/" notificationAuthenticationMode="Basic" notificationUsername="<username>" notificationPassword="<password>"/>

The username and password you provide must be for a Cloud Cruiser user who has the Post Usage Data role.

For example, your web.config file might look like the following:

<configuration>
  <configSections>
    <section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection, Microsoft.Practices.Unity.Configuration"/>
    <section name="notificationStore" type="Microsoft.WindowsAzure.Server.Management.Core.Configuration.NotificationStoreConfigurationSection, Microsoft.WindowsAzure.Server.Management.Core"/>
  </configSections>
  <unity xmlns="http://schemas.microsoft.com/practices/2010/unity">
    <container>
      <register type="Microsoft.WindowsAzure.Server.Management.Core.IDependencyInjectionFactory, Microsoft.WindowsAzure.Server.Management.Core" mapTo="Microsoft.WindowsAzure.Server.Management.Core.ServerDependencyInjectionFactory, Microsoft.WindowsAzure.Server.Management.Core"/>
    </container>
  </unity>
  <notificationStore>
    <notificationSubscribers>
      <notificationSubscriber name="cloudcruiser" enabled="true" notificationEndpoint="http://financeserver:8080/rest/v1/usage/asfws/" notificationAuthenticationMode="Basic" notificationUsername="RESTuser" notificationPassword="eh4T6k$p"/>
    </notificationSubscribers>
  </notificationStore>
  ...
</configuration>

For more information on the Cloud Cruiser REST API method used here, see JSON data using POST.

Last modified

Tags

This page has no custom tags.

Classifications

This page has no classifications.
© Copyright 2018 Hewlett Packard Enterprise Development LP