Azure IP Ranges and Service Tags – Public Cloud from json

L0 Member

Azure IP Ranges and Service Tags – Public Cloud from json

 

 

What configuration to use to get these Azure Services in own output nodes?

 

https://www.microsoft.com/en-us/download/confirmation.aspx?id=56519

L5 Sessionator

Re: Azure IP Ranges and Service Tags – Public Cloud from json

Hi @TommiK,

 

the following SimpleJSON class based prototype is doing the job for me.

 

age_out:
    default: null
    interval: 257
    sudden_death: true
attributes:
    confidence: 100
    share_level: green
    type: IPv4
extractor: values[].properties.addressPrefixes[].{indicator:@}
prefix: azure
source_name: azure
url: https://download.microsoft.com/download/7/1/D/71D86715-5596-4529-9B13-DA13A5DE5B63/ServiceTags_Public_20181001.json

If you want to mine prefixes for specific system services then you'll have to adjust the JMESPath expression to suit your needs.

L0 Member

Re: Azure IP Ranges and Service Tags – Public Cloud from json

 

Ok, thanks for the info, with correct link it will work. Seems that the problem is with that link, it's not "static".

 

Current link: https://download.microsoft.com/download/7/1/D/71D86715-5596-4529-9B13-DA13A5DE5B63/ServiceTags_Publi...

 

File has date 20181001 included, so I assume that it will change.

L5 Sessionator

Re: Azure IP Ranges and Service Tags – Public Cloud from json

Hi @TommiK,

 

you're right. The backend file name will change overnight without previous notification. Time ago I build the MS Article for MineMeld that can dynamically extract references in MS Articles and download them. It currently wraps the CSVFT class so only works for CSV formated downloads.

 

Someone could be interested on contributing to the extension to create a SimpleJSON wrapper as well.

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the Live Community as a whole!

The Live Community thanks you for your participation!