Beispiel #1
0
        public static void Run([TimerTrigger("0 */5 * * * *", RunOnStartup = true)] TimerInfo myTimer, ILogger log)
        {
            log.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");

            var service = new AzureCostService("62039fdb-ccaa-41fd-9766-7fa224b2268f");

            service.Connect();
            var data = service.GetDataAsString();

            log.LogInformation(data);
        }
Beispiel #2
0
        public void OnGet()
        {
            _service.Connect();

            AzureCosts = _service.GetData();
        }