Setting how often Azure Usage Records and their Rates are Collected


For collecting in daily basis the Azure usage data, we have implemented the Azure Usage Update service. For getting Microsoft's rates we have implemented the Azure RateCard service.

Both services are deployed during installation in the following locations:


Cloud360 Azure Usage Update Service
It is responsible for collecting the Azure usage records

Default LocationC:\Program Files (x86)\Interworks\Cloud360.Setup.AzureUsagesUpdateController
Configuration FileCloud360.Services.AzureUsagesUpdate.exe.config
Cloud360 Azure RateCard Service
It is responsible for getting Microsoft rates for the Azure resouces 
Default LocationC:\Program Files (x86)\Interworks\Cloud360.Setup.AzureRateCard\
Configuration FileCloud360.Services.AzureRateCard.exe.config


Both configuration files have the appSettings section for setting how often the corrspondent service will run.

<appSettings>
<add key="StartHour" value="10" />
<add key="StartTime" value="00" />
<add key="Interval" value="12" />
<!--the Interval is in hours–>
......
</appSettings>

For example, how often the "Azure Usage Update" service will run for collecting the usage data depends on the Interval parameter and the start time as defined from the parameters StartHour and StartTime. 

In the above paradigm, the service will run twice the day at 10:00 and 22:00 o'clock. If we want the service to run more often, you need to decrease the interval. If for example, the Interval was every 6 hours, the service would run 10:00, 16:00, 22:00 and 04:00 o'clock.