<?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 Azure : troubles with the azure-public-cloudIPsWithServiceTags Miner, same prefix in multiple Azure Regions in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/azure-troubles-with-the-azure-public-cloudipswithservicetags/m-p/383754#M95411</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using Miner "azure-public-cloudIPsWithServiceTags", I'm trying to get all the subnets from the Azure Region "switzerlandn".&lt;/P&gt;
&lt;P&gt;I am using a filter I found in this forum :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;-   actions:
    - accept
    conditions:
    - azure_region == 'switzerlandn'
    - share_level == 'green'
    name: accept azure IP for region switzerlandn&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it doesn't work... I have only a few prefixes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at the .json file, I found the missing prefixes in 2 sections, the first is my "switzerlandn" section, the other has no label :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"name": "AzureCloud",&lt;BR /&gt;"id": "AzureCloud",&lt;BR /&gt;"properties": {&lt;BR /&gt;"changeNumber": 61,&lt;BR /&gt;"region": "",&lt;BR /&gt;"regionId": 0,&lt;BR /&gt;"platform": "Azure",&lt;BR /&gt;"systemService": "",&lt;BR /&gt;"addressPrefixes": [&lt;BR /&gt;"13.64.0.0/16",&lt;BR /&gt;"13.65.0.0/16",&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at Minemeld's logs, I see the following for a missing prefix (ouput of&amp;nbsp;azure-public-cloudIPsWithServiceTags Miner) :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"_age_out": 4294967295000,&lt;BR /&gt;"confidence": 100,&lt;BR /&gt;"azure_system_service_list": [&lt;BR /&gt;""&lt;BR /&gt;],&lt;BR /&gt;"azure_platform_list": [&lt;BR /&gt;"azure"&lt;BR /&gt;],&lt;BR /&gt;"azure_region": "",&lt;BR /&gt;"share_level": "green",&lt;BR /&gt;"azure_platform": "Azure",&lt;BR /&gt;"_last_run": 1612367795560,&lt;BR /&gt;"sources": [&lt;BR /&gt;"azure-public-cloudIPsWithServiceTags"&lt;BR /&gt;],&lt;BR /&gt;"azure_name": "AzureCloud",&lt;BR /&gt;"azure_name_list": [&lt;BR /&gt;"azurecloud",&lt;BR /&gt;"azurecloud.switzerlandn"&lt;BR /&gt;],&lt;BR /&gt;"azure_id_list": [&lt;BR /&gt;"azurecloud",&lt;BR /&gt;"azurecloud.switzerlandn"&lt;BR /&gt;],&lt;BR /&gt;"azure_region_list": [&lt;BR /&gt;"",&lt;BR /&gt;"switzerlandn"&lt;BR /&gt;],&lt;BR /&gt;"azure_system_service": "",&lt;BR /&gt;"first_seen": 1611921383932,&lt;BR /&gt;"azure_id": "AzureCloud",&lt;BR /&gt;"type": "IPv4",&lt;BR /&gt;"last_seen": 1611921383932&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you see the value of azure_region and the azure_region_list ? This explains why my filter (azure_region == "switzerlandn") doesn't work. The Miner puts in the "azure_region" field the last value it read from the .json file... And in my case the last value is ""...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now my questions :&lt;/P&gt;
&lt;P&gt;- I'm looking for a filter that will test if "switzerlandn" is contained in the azure_region_list. Any idea ?&lt;/P&gt;
&lt;P&gt;- Or a way to modify the Miner, to avoid the "concatenation" of the prefixes that appear twice in the .json file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Christophe&lt;/P&gt;</description>
    <pubDate>Thu, 04 Feb 2021 07:00:27 GMT</pubDate>
    <dc:creator>CSavoy</dc:creator>
    <dc:date>2021-02-04T07:00:27Z</dc:date>
    <item>
      <title>Azure : troubles with the azure-public-cloudIPsWithServiceTags Miner, same prefix in multiple Azure Regions</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/azure-troubles-with-the-azure-public-cloudipswithservicetags/m-p/383754#M95411</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using Miner "azure-public-cloudIPsWithServiceTags", I'm trying to get all the subnets from the Azure Region "switzerlandn".&lt;/P&gt;
&lt;P&gt;I am using a filter I found in this forum :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;-   actions:
    - accept
    conditions:
    - azure_region == 'switzerlandn'
    - share_level == 'green'
    name: accept azure IP for region switzerlandn&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it doesn't work... I have only a few prefixes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at the .json file, I found the missing prefixes in 2 sections, the first is my "switzerlandn" section, the other has no label :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"name": "AzureCloud",&lt;BR /&gt;"id": "AzureCloud",&lt;BR /&gt;"properties": {&lt;BR /&gt;"changeNumber": 61,&lt;BR /&gt;"region": "",&lt;BR /&gt;"regionId": 0,&lt;BR /&gt;"platform": "Azure",&lt;BR /&gt;"systemService": "",&lt;BR /&gt;"addressPrefixes": [&lt;BR /&gt;"13.64.0.0/16",&lt;BR /&gt;"13.65.0.0/16",&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at Minemeld's logs, I see the following for a missing prefix (ouput of&amp;nbsp;azure-public-cloudIPsWithServiceTags Miner) :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"_age_out": 4294967295000,&lt;BR /&gt;"confidence": 100,&lt;BR /&gt;"azure_system_service_list": [&lt;BR /&gt;""&lt;BR /&gt;],&lt;BR /&gt;"azure_platform_list": [&lt;BR /&gt;"azure"&lt;BR /&gt;],&lt;BR /&gt;"azure_region": "",&lt;BR /&gt;"share_level": "green",&lt;BR /&gt;"azure_platform": "Azure",&lt;BR /&gt;"_last_run": 1612367795560,&lt;BR /&gt;"sources": [&lt;BR /&gt;"azure-public-cloudIPsWithServiceTags"&lt;BR /&gt;],&lt;BR /&gt;"azure_name": "AzureCloud",&lt;BR /&gt;"azure_name_list": [&lt;BR /&gt;"azurecloud",&lt;BR /&gt;"azurecloud.switzerlandn"&lt;BR /&gt;],&lt;BR /&gt;"azure_id_list": [&lt;BR /&gt;"azurecloud",&lt;BR /&gt;"azurecloud.switzerlandn"&lt;BR /&gt;],&lt;BR /&gt;"azure_region_list": [&lt;BR /&gt;"",&lt;BR /&gt;"switzerlandn"&lt;BR /&gt;],&lt;BR /&gt;"azure_system_service": "",&lt;BR /&gt;"first_seen": 1611921383932,&lt;BR /&gt;"azure_id": "AzureCloud",&lt;BR /&gt;"type": "IPv4",&lt;BR /&gt;"last_seen": 1611921383932&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you see the value of azure_region and the azure_region_list ? This explains why my filter (azure_region == "switzerlandn") doesn't work. The Miner puts in the "azure_region" field the last value it read from the .json file... And in my case the last value is ""...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now my questions :&lt;/P&gt;
&lt;P&gt;- I'm looking for a filter that will test if "switzerlandn" is contained in the azure_region_list. Any idea ?&lt;/P&gt;
&lt;P&gt;- Or a way to modify the Miner, to avoid the "concatenation" of the prefixes that appear twice in the .json file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Christophe&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 07:00:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/azure-troubles-with-the-azure-public-cloudipswithservicetags/m-p/383754#M95411</guid>
      <dc:creator>CSavoy</dc:creator>
      <dc:date>2021-02-04T07:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Azure : troubles with the azure-public-cloudIPsWithServiceTags Miner, same prefix in multiple Azure Regions</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/azure-troubles-with-the-azure-public-cloudipswithservicetags/m-p/383778#M95412</link>
      <description>&lt;P&gt;I found the answer here, thank you Dpurton&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/minemeld-discussions/azure-active-directory-ip-ranges/m-p/310699#M3569" target="_blank"&gt;https://live.paloaltonetworks.com/t5/minemeld-discussions/azure-active-directory-ip-ranges/m-p/310699#M3569&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my final filter :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="c-mrkdwn__pre" data-stringify-type="pre"&gt;infilters:&lt;BR /&gt;-   actions:&lt;BR /&gt;    - accept&lt;BR /&gt;    conditions:&lt;BR /&gt;    - __method == 'withdraw'&lt;BR /&gt;    name: accept withdraws&lt;BR /&gt;-   actions:&lt;BR /&gt;    - accept&lt;BR /&gt;    conditions:&lt;BR /&gt;    - contains(azure_region_list, 'switzerlandn') == true&lt;BR /&gt;    name: accept switzerlandn&lt;BR /&gt;-   actions:&lt;BR /&gt;    - drop&lt;BR /&gt;    name: drop all&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apply this filter into an aggregator of type "&lt;SPAN&gt;stdlib.aggregatorIPv4Generic" and you will get all the prefixes for the desired region. If you need many regions, just add many actions, like this :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="c-mrkdwn__pre" data-stringify-type="pre"&gt;- actions:&lt;BR /&gt;  - accept&lt;BR /&gt;  conditions:&lt;BR /&gt;  - contains(azure_region_list, 'switzerlandn') == true&lt;BR /&gt;  name: accept switzerlandn&lt;BR /&gt;- actions:&lt;BR /&gt;  - accept&lt;BR /&gt;  conditions:&lt;BR /&gt;  - contains(azure_region_list, 'northeurope') == true&lt;BR /&gt;  name: accept northeurope&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Feb 2021 10:00:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/azure-troubles-with-the-azure-public-cloudipswithservicetags/m-p/383778#M95412</guid>
      <dc:creator>CSavoy</dc:creator>
      <dc:date>2021-02-04T10:00:07Z</dc:date>
    </item>
  </channel>
</rss>

