This is failing for us as well.
It looks like Microsoft has (silently?) changed the {billingPeriodName} . Previously it was the the format YYYYMMDD e.g. 20190301 but now it must be specified as YYYYMM-N e.g. 201903-1
Now I am not 100% sure if this is the correct fix as I am not an Azure person, but the following change worked for me and I can now retrieve data:
You can fix this by editing the modular input. A better option is to wait for Jason to update the Modular input properly, but in the meantime you could put this hack in place:
Edit TA-Azure-billing/bin/input_module_azure_billing.py
At about line 83 there should be a regular expression for calculating the billing period name
Change this from
billing_period_search = re.search('\/subscriptions\/([^\/]+)\/providers\/Microsoft\.Billing\/billingPeriods\/([^\/]+)$', billing_period_id, re.IGNORECASE)
to
billing_period_search = re.search('\/subscriptions\/([^\/]+)\/providers\/Microsoft\.Billing\/billingPeriods\/(\d{6})', billing_period_id, re.IGNORECASE)
then change line 86 from
billing_periods_returned.add(billing_period)
to
billing_periods_returned.add(billing_period + "-1")
The OOTB dashboards will also need a minor change becuase of this change to billingPeriodName.
I don't have time to investigate the root cause right now, but I think this change is OK for the short term.
Cheers,
... View more