<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Filters on Azure API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Filters-on-Azure-API/m-p/2840103#M39243</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am developing a billing/costing report using powershell where i am calling by API. Here is the API that i am using (&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://management.azure.com//subscriptions/xxxxxxxxxxxxxxxx//providers/Microsoft.Consumption/usageDetails?$filter=properties/usageStart" target="_blank" rel="noopener"&gt;https://management.azure.com//subscriptions/xxxxxxxxxxxxxxxx//providers/Microsoft.Consumption/usageDetails?$filter=properties/usageStart&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;eq '+"'$yesterdayUtcTime'"+ '&amp;amp;api-version=2021-10-01)&lt;BR /&gt;For the $yesterdayUtcTime i am passing it by a variable ($yesterdayUtcTime=$time.ToUniversalTime().AddMonths(-1).ToString("yyyy-MM-ddT00:00:00.0000000Z").&lt;/P&gt;&lt;P&gt;1) Now, i want the API to be worked like, i need to pass the dates specifically, that means data i need is between 2 dates.&lt;BR /&gt;2) Also i need to call the API for last 30/60/90 days like that. means the data to be loaded for the last 30/60/90 days at a time.&lt;/P&gt;&lt;P&gt;Could any one please help on this.. I have tried few methods but none of them worked.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Sudharshan.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2022 15:32:54 GMT</pubDate>
    <dc:creator>Sudharshan1919</dc:creator>
    <dc:date>2022-10-13T15:32:54Z</dc:date>
    <item>
      <title>Filters on Azure API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filters-on-Azure-API/m-p/2840103#M39243</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am developing a billing/costing report using powershell where i am calling by API. Here is the API that i am using (&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://management.azure.com//subscriptions/xxxxxxxxxxxxxxxx//providers/Microsoft.Consumption/usageDetails?$filter=properties/usageStart" target="_blank" rel="noopener"&gt;https://management.azure.com//subscriptions/xxxxxxxxxxxxxxxx//providers/Microsoft.Consumption/usageDetails?$filter=properties/usageStart&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;eq '+"'$yesterdayUtcTime'"+ '&amp;amp;api-version=2021-10-01)&lt;BR /&gt;For the $yesterdayUtcTime i am passing it by a variable ($yesterdayUtcTime=$time.ToUniversalTime().AddMonths(-1).ToString("yyyy-MM-ddT00:00:00.0000000Z").&lt;/P&gt;&lt;P&gt;1) Now, i want the API to be worked like, i need to pass the dates specifically, that means data i need is between 2 dates.&lt;BR /&gt;2) Also i need to call the API for last 30/60/90 days like that. means the data to be loaded for the last 30/60/90 days at a time.&lt;/P&gt;&lt;P&gt;Could any one please help on this.. I have tried few methods but none of them worked.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Sudharshan.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 15:32:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filters-on-Azure-API/m-p/2840103#M39243</guid>
      <dc:creator>Sudharshan1919</dc:creator>
      <dc:date>2022-10-13T15:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filters on Azure API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filters-on-Azure-API/m-p/2842057#M39256</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/342195"&gt;@Sudharshan1919&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;STRONG&gt;$filter&lt;/STRONG&gt; may be used to filter usageDetails by properties/resourceGroup, properties/resourceName, properties/resourceId, properties/chargeType, properties/reservationId, properties/publisherType or tags. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:). PublisherType Filter accepts two values azure and marketplace and it is currently supported for Web Direct Offer Type.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here are some examples:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/rest/api/consumption/usage-details/list?tabs=HTTP#examples" target="_self"&gt;Examples&lt;/A&gt;&amp;nbsp;,&amp;nbsp;hope it would help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 09:34:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filters-on-Azure-API/m-p/2842057#M39256</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2022-10-14T09:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filters on Azure API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filters-on-Azure-API/m-p/2842304#M39260</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My scenario is like, if i want to get the data in between 2 dates like start date and end date.&lt;/P&gt;&lt;P&gt;Ex: date between 2022-09-01 to 2022-09-31 - 1 months&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 11:08:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filters-on-Azure-API/m-p/2842304#M39260</guid>
      <dc:creator>Sudharshan1919</dc:creator>
      <dc:date>2022-10-14T11:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filters on Azure API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Filters-on-Azure-API/m-p/2852829#M39344</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/342195"&gt;@Sudharshan1919&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems that you can achieve your goal by setting the URL Parameter scope:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The scope associated with usage details operations. This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, '/providers/Microsoft.Billing/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope and '/providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope. For subscription, billing account, department, enrollment account and management group, you can also add billing period to the scope using '/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'. For e.g. to specify billing period at department scope use '/providers/Microsoft.Billing/departments/{departmentId}/providers/Microsoft.Billing/billingPeriods/{billingPeriodName}'.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try something like:&amp;nbsp;&lt;SPAN&gt;billingPeriods/202209&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jianbo Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 07:03:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Filters-on-Azure-API/m-p/2852829#M39344</guid>
      <dc:creator>v-jianboli-msft</dc:creator>
      <dc:date>2022-10-20T07:03:12Z</dc:date>
    </item>
  </channel>
</rss>

