azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Get-AzNetworkingServiceTag , region is no longer available for DataFactory

Open JimmyHjelte opened this issue 5 years ago • 11 comments

Description

We been using Get-AzNetworkingServiceTag to filter out ip ranges for DataFactory.WestEurope but since last week there is only one service tag called "DataFactory" containing 280+ ipv4 ranges compared with the service tag "DataFactory.WestEurope" found in the list that only contains 7 ipv4 ranges.

This was working 2 weeks ago ,but not any longer.

Steps to reproduce

This should return 7 ip4 ranges , but returns 0 now ! #Fetch ipAddress ranges for AzureDataFactory $serviceTags = Get-AzNetworkServiceTag -Location westeurope $dataFactoryTags = $serviceTags.Values | Where-Object { $.Name -eq "DataFactory.WestEurope" } $ipv4CIDRs = $dataFactoryTags.Properties.AddressPrefixes | Where-Object { $ -like ".../*"}

Environment data

PS /home/jimmy> $PSVersionTable

Name Value


PSVersion 7.1.3 PSEdition Core GitCommitId 7.1.3 OS Linux 5.4.0-1056-azure #58~18.04.1-Ubuntu SMP Wed Jul 28 23:14:18 UTC 2021 Platform Unix PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0

PS /home/jimmy>


## Module versions

<!-- Please run (Get-Module  -ListAvailable) and paste the output in the below code block -->

```powershell

Debug output


Error output


JimmyHjelte avatar Sep 06 '21 09:09 JimmyHjelte

Yes, we are seeing the same issue since august, 30th: https://github.com/Azure/azure-powershell/issues/15789

Unfortunately no reaction yet...

gazpwc avatar Sep 06 '21 11:09 gazpwc

@gazpwc I got the following answer from support " The PS command you're referring to is maintained by Azure Networking team, and its ServiceTag Discovery API has been maintained under a "Public Preview" state: Azure service tags overview | Microsoft Docs

Unfortunately that means, from an internal discussion, that we may encounter from time to time differences while using the command to fetch the specific IPs and it is recommended that customers rely on the available list of public IPs downloadable from Download Azure IP Ranges and Service Tags – Public Cloud from Official Microsoft Download Center while this feature doesn't reach Global Availability. "

JimmyHjelte avatar Sep 06 '21 13:09 JimmyHjelte

@ JimmyHjelte That's a pity. But thanks a lot for posting this information.

gazpwc avatar Sep 07 '21 06:09 gazpwc

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @aznetsuppgithub.

Issue Details

Description

We been using Get-AzNetworkingServiceTag to filter out ip ranges for DataFactory.WestEurope but since last week there is only one service tag called "DataFactory" containing 280+ ipv4 ranges compared with the service tag "DataFactory.WestEurope" found in the list that only contains 7 ipv4 ranges.

This was working 2 weeks ago ,but not any longer.

Steps to reproduce

This should return 7 ip4 ranges , but returns 0 now ! #Fetch ipAddress ranges for AzureDataFactory $serviceTags = Get-AzNetworkServiceTag -Location westeurope $dataFactoryTags = $serviceTags.Values | Where-Object { $.Name -eq "DataFactory.WestEurope" } $ipv4CIDRs = $dataFactoryTags.Properties.AddressPrefixes | Where-Object { $ -like ".../*"}

Environment data

PS /home/jimmy> $PSVersionTable

Name Value


PSVersion 7.1.3 PSEdition Core GitCommitId 7.1.3 OS Linux 5.4.0-1056-azure #58~18.04.1-Ubuntu SMP Wed Jul 28 23:14:18 UTC 2021 Platform Unix PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0

PS /home/jimmy>


## Module versions

<!-- Please run (Get-Module  -ListAvailable) and paste the output in the below code block -->

```powershell

Debug output


Error output


Author: JimmyHjelte
Assignees: -
Labels:

Network, Service Attention

Milestone: -

ghost avatar Sep 08 '21 07:09 ghost

@JimmyHjelte we are working on adding these tags back to the API results, since we've received many requests. You should be able to see them again in 1-2 months.

allegradomel avatar Sep 08 '21 20:09 allegradomel

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

ghost avatar Sep 28 '21 20:09 ghost

For anyone else with similar issues. We ended up replacing the cmdlet and instead we download the official "Azure IP Ranges and Service Tags – Public Cloud" and parse out the service tags we need.

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

$response = Invoke-WebRequest -Uri $uri $jsonUri = ($response.Links | Where-Object {$.href -match 'ServiceTags_Public'}).href

$response = (Invoke-WebRequest -Uri $jsonUri | ConvertFrom-Json) $dataFactoryTags = ($response.values | Where-Object {$_.name -match 'DataFactory.WestEurope'})

#Filter out IPV4 Only $ipv4CIDRs = $dataFactoryTags.Properties.AddressPrefixes | Where-Object { $_ -like ".../*"} `

JimmyHjelte avatar Oct 01 '21 06:10 JimmyHjelte

Also, quick update on the timeline, you should see these tags added back to the results in the next 2-2.5 weeks. Thanks for your patience!

allegradomel avatar Oct 01 '21 21:10 allegradomel

Hi @JimmyHjelte - Thanks for feedback. I just tested it and looks like DataFactory regional tags have been added back.

image

Please do test it and let us know if this issue can be closed.

KranthiPakala-MSFT avatar Oct 29 '21 00:10 KranthiPakala-MSFT

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

ghost avatar Nov 05 '21 02:11 ghost

For anyone else with similar issues. We ended up replacing the cmdlet and instead we download the official "Azure IP Ranges and Service Tags – Public Cloud" and parse out the service tags we need.

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

$response = Invoke-WebRequest -Uri $uri jsonUri=(.href -match 'ServiceTags_Public'}).href

$response = (Invoke-WebRequest -Uri $jsonUri | ConvertFrom-Json) $dataFactoryTags = ($response.values | Where-Object {$_.name -match 'DataFactory.WestEurope'})

#Filter out IPV4 Only $ipv4CIDRs = $dataFactoryTags.Properties.AddressPrefixes | Where-Object { $_ -like ".../*"} `

Brilliant!!! Thank you for sharing this!

plzm avatar Apr 20 '23 21:04 plzm