Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.24k stars 3.84k forks source link

Get-AzNetworkServiceTag does not return Values for service tags #12234

Closed dielenko closed 4 years ago

dielenko commented 4 years ago

Description

When using Get-AzNetworkServiceTag it does not return Values for service tags. I've tried to get results from different locations and the result is the same, the property called "Values" is empty.

Steps to reproduce

C:\> $allTags = Get-AzNetworkServiceTag -Location eastus2
C:\> $allTags

Name         : Public
Id           : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx/providers/Microsoft.Network/serviceTags/Public
Type         : Microsoft.Network/serviceTags
Cloud        : Public
ChangeNumber : 66    
Values       : {}

Environment data

C:\> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      5.1.18362.752
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.18362.752
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Module versions

C:\> Get-Module -Name Az.* -ListAvailable

    Directory: C:\Users\user\Documents\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     1.8.1      Az.Accounts                         {Disable-AzDataCollection, Disable-AzContextAutosave, Enable-AzDataCollection, Enable-AzContextAutosave...}
Script     1.1.1      Az.Advisor                          {Get-AzAdvisorRecommendation, Enable-AzAdvisorRecommendation, Disable-AzAdvisorRecommendation, Get-AzAdvisorConfiguration...}
Script     1.1.1      Az.Aks                              {Get-AzAks, New-AzAks, Remove-AzAks, Import-AzAksCredential...}
Script     1.1.3      Az.AnalysisServices                 {Resume-AzAnalysisServicesServer, Suspend-AzAnalysisServicesServer, Get-AzAnalysisServicesServer, Remove-AzAnalysisServicesServer...}
Script     2.0.1      Az.ApiManagement                    {Add-AzApiManagementApiToProduct, Add-AzApiManagementProductToGroup, Add-AzApiManagementRegion, Add-AzApiManagementUserToGroup...}
Script     1.1.0      Az.ApplicationInsights              {Get-AzApplicationInsights, New-AzApplicationInsights, Remove-AzApplicationInsights, Update-AzApplicationInsights...}
Script     1.3.6      Az.Automation                       {Get-AzAutomationHybridWorkerGroup, Remove-AzAutomationHybridWorkerGroup, Get-AzAutomationJobOutputRecord, Import-AzAutomationDscNodeConfiguration...}
Script     3.0.0      Az.Batch                            {Remove-AzBatchAccount, Get-AzBatchAccount, Get-AzBatchAccountKey, New-AzBatchAccount...}
Script     1.0.3      Az.Billing                          {Get-AzBillingInvoice, Get-AzBillingPeriod, Get-AzEnrollmentAccount, Get-AzConsumptionBudget...}
Script     1.4.3      Az.Cdn                              {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl, New-AzCdnProfile, Remove-AzCdnProfile...}
Script     1.4.0      Az.CognitiveServices                {Get-AzCognitiveServicesAccount, Get-AzCognitiveServicesAccountKey, Get-AzCognitiveServicesAccountSku, Get-AzCognitiveServicesAccountType...}
Script     4.1.0      Az.Compute                          {Remove-AzAvailabilitySet, Get-AzAvailabilitySet, New-AzAvailabilitySet, Update-AzAvailabilitySet...}
Script     1.0.3      Az.ContainerInstance                {New-AzContainerGroup, Get-AzContainerGroup, Remove-AzContainerGroup, Get-AzContainerInstanceLog}
Script     1.1.1      Az.ContainerRegistry                {New-AzContainerRegistry, Get-AzContainerRegistry, Update-AzContainerRegistry, Remove-AzContainerRegistry...}
Script     1.1.0      Az.DataBoxEdge                      {Get-AzDataBoxEdgeJob, Get-AzDataBoxEdgeDevice, Invoke-AzDataBoxEdgeDevice, New-AzDataBoxEdgeDevice...}
Script     1.8.1      Az.DataFactory                      {Set-AzDataFactoryV2, Update-AzDataFactoryV2, Get-AzDataFactoryV2, Remove-AzDataFactoryV2...}
Script     1.0.2      Az.DataLakeAnalytics                {Get-AzDataLakeAnalyticsDataSource, New-AzDataLakeAnalyticsCatalogCredential, Remove-AzDataLakeAnalyticsCatalogCredential, Set-AzDataLakeAnalyticsCatalogCredential...}
Script     1.2.8      Az.DataLakeStore                    {Get-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreTrustedIdProvider, Remove-AzDataLakeStoreFirewallRule, Set-AzDataLakeStoreTrustedIdProvider...}
Script     1.0.0      Az.DataShare                        {New-AzDataShareAccount, Get-AzDataShareAccount, Remove-AzDataShareAccount, New-AzDataShare...}
Script     1.1.0      Az.DeploymentManager                {Get-AzDeploymentManagerArtifactSource, New-AzDeploymentManagerArtifactSource, Set-AzDeploymentManagerArtifactSource, Remove-AzDeploymentManagerArtifactSource...}
Script     1.0.0      Az.DesktopVirtualization            {Disconnect-AzWvdUserSession, Get-AzWvdApplication, Get-AzWvdApplicationGroup, Get-AzWvdDesktop...}
Script     1.0.2      Az.DevTestLabs                      {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtlAutoShutdownPolicy, Get-AzDtlAutoStartPolicy, Get-AzDtlVMsPerLabPolicy...}
Script     1.1.2      Az.Dns                              {Get-AzDnsRecordSet, New-AzDnsRecordConfig, Remove-AzDnsRecordSet, Set-AzDnsRecordSet...}
Script     1.2.3      Az.EventGrid                        {New-AzEventGridTopic, Get-AzEventGridTopic, Set-AzEventGridTopic, New-AzEventGridTopicKey...}
Script     1.4.3      Az.EventHub                         {New-AzEventHubNamespace, Get-AzEventHubNamespace, Set-AzEventHubNamespace, Remove-AzEventHubNamespace...}
Script     1.5.0      Az.FrontDoor                        {New-AzFrontDoor, Get-AzFrontDoor, Set-AzFrontDoor, Remove-AzFrontDoor...}
Script     1.0.0      Az.Functions                        {Get-AzFunctionApp, Get-AzFunctionAppAvailableLocation, Get-AzFunctionAppPlan, Get-AzFunctionAppSetting...}
Script     3.2.0      Az.HDInsight                        {Get-AzHDInsightJob, New-AzHDInsightSqoopJobDefinition, Wait-AzHDInsightJob, New-AzHDInsightStreamingMapReduceJobDefinition...}
Script     1.0.2      Az.HealthcareApis                   {New-AzHealthcareApisService, Remove-AzHealthcareApisService, Set-AzHealthcareApisService, Get-AzHealthcareApisService}
Script     2.5.0      Az.IotHub                           {Add-AzIotHubKey, Get-AzIotHubEventHubConsumerGroup, Get-AzIotHubConnectionString, Get-AzIotHubJob...}
Script     2.0.0      Az.KeyVault                         {Add-AzKeyVaultCertificate, Update-AzKeyVaultCertificate, Stop-AzKeyVaultCertificateOperation, Get-AzKeyVaultCertificateOperation...}
Script     1.3.2      Az.LogicApp                         {Get-AzIntegrationAccountAgreement, Get-AzIntegrationAccountAssembly, Get-AzIntegrationAccountBatchConfiguration, Get-AzIntegrationAccountCallbackUrl...}
Script     1.1.3      Az.MachineLearning                  {Move-AzMlCommitmentAssociation, Get-AzMlCommitmentAssociation, Get-AzMlCommitmentPlanUsageHistory, Remove-AzMlCommitmentPlan...}
Script     1.0.0      Az.Maintenance                      {Get-AzApplyUpdate, Get-AzConfigurationAssignment, Get-AzMaintenanceConfiguration, Get-AzMaintenanceUpdate...}
Script     1.0.2      Az.ManagedServices                  {Get-AzManagedServicesAssignment, New-AzManagedServicesAssignment, Remove-AzManagedServicesAssignment, Get-AzManagedServicesDefinition...}
Script     1.0.2      Az.MarketplaceOrdering              {Get-AzMarketplaceTerms, Set-AzMarketplaceTerms}
Script     1.1.1      Az.Media                            {Sync-AzMediaServiceStorageKey, Set-AzMediaServiceKey, Get-AzMediaServiceKey, Get-AzMediaServiceNameAvailability...}
Script     2.0.0      Az.Monitor                          {Get-AzMetricDefinition, Get-AzMetric, Remove-AzLogProfile, Get-AzLogProfile...}
Script     3.0.0      Az.Network                          {Add-AzApplicationGatewayAuthenticationCertificate, Get-AzApplicationGatewayAuthenticationCertificate, New-AzApplicationGatewayAuthenticationCertificate, Remove-AzApplicati...
Script     1.1.1      Az.NotificationHubs                 {Get-AzNotificationHub, Get-AzNotificationHubAuthorizationRule, Get-AzNotificationHubListKey, Get-AzNotificationHubPNSCredential...}
Script     2.1.0      Az.OperationalInsights              {New-AzOperationalInsightsAzureActivityLogDataSource, New-AzOperationalInsightsCustomLogDataSource, Disable-AzOperationalInsightsLinuxCustomLogCollection, Disable-AzOperati...
Script     1.3.1      Az.PolicyInsights                   {Get-AzPolicyEvent, Get-AzPolicyState, Get-AzPolicyStateSummary, Get-AzPolicyRemediation...}
Script     1.1.2      Az.PowerBIEmbedded                  {Remove-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollection, Get-AzPowerBIWorkspaceCollectionAccessKey, Get-AzPowerBIWorkspace...}
Script     1.0.3      Az.PrivateDns                       {Get-AzPrivateDnsZone, Remove-AzPrivateDnsZone, Set-AzPrivateDnsZone, New-AzPrivateDnsZone...}
Script     2.9.1      Az.RecoveryServices                 {Get-AzRecoveryServicesBackupProperty, Get-AzRecoveryServicesVault, Get-AzRecoveryServicesVaultSettingsFile, New-AzRecoveryServicesVault...}
Script     1.2.1      Az.RedisCache                       {Remove-AzRedisCachePatchSchedule, New-AzRedisCacheScheduleEntry, Get-AzRedisCachePatchSchedule, New-AzRedisCachePatchSchedule...}
Script     1.0.3      Az.Relay                            {New-AzRelayNamespace, Get-AzRelayNamespace, Set-AzRelayNamespace, Remove-AzRelayNamespace...}
Script     2.1.0      Az.Resources                        {Get-AzProviderOperation, Remove-AzRoleAssignment, Get-AzRoleAssignment, New-AzRoleAssignment...}
Script     1.4.1      Az.ServiceBus                       {New-AzServiceBusNamespace, Get-AzServiceBusNamespace, Set-AzServiceBusNamespace, Remove-AzServiceBusNamespace...}
Script     2.1.0      Az.ServiceFabric                    {Add-AzServiceFabricClientCertificate, Add-AzServiceFabricClusterCertificate, Add-AzServiceFabricNode, Add-AzServiceFabricNodeType...}
Script     1.1.1      Az.SignalR                          {New-AzSignalR, Get-AzSignalR, Get-AzSignalRKey, New-AzSignalRKey...}
Script     2.7.0      Az.Sql                              {Get-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseTransparentDataEncryptionActivity, Set-AzSqlDatabaseTransparentDataEncryption, Get-AzSqlDatabaseUpgradeHint...}
Script     1.1.0      Az.SqlVirtualMachine                {New-AzSqlVM, Get-AzSqlVM, Update-AzSqlVM, Remove-AzSqlVM...}
Script     2.1.0      Az.Storage                          {Get-AzStorageAccount, Get-AzStorageAccountKey, New-AzStorageAccount, New-AzStorageAccountKey...}
Script     1.2.3      Az.StorageSync                      {Invoke-AzStorageSyncCompatibilityCheck, New-AzStorageSyncService, Get-AzStorageSyncService, Remove-AzStorageSyncService...}
Script     1.0.1      Az.StreamAnalytics                  {Get-AzStreamAnalyticsFunction, Get-AzStreamAnalyticsDefaultFunctionDefinition, New-AzStreamAnalyticsFunction, Remove-AzStreamAnalyticsFunction...}
Script     1.0.0      Az.Support                          {Get-AzSupportService, Get-AzSupportProblemClassification, Get-AzSupportTicket, Get-AzSupportTicketCommunication...}
Script     1.0.4      Az.TrafficManager                   {Add-AzTrafficManagerCustomHeaderToEndpoint, Remove-AzTrafficManagerCustomHeaderFromEndpoint, Add-AzTrafficManagerCustomHeaderToProfile, Remove-AzTrafficManagerCustomHeader...
Script     1.9.0      Az.Websites                         {Get-AzAppServicePlan, Set-AzAppServicePlan, New-AzAppServicePlan, Remove-AzAppServicePlan...}

Debug output

DEBUG: Sought all Az modules and got latest version 0.0.0
DEBUG: 7:01:22 AM - GetAzureNetworkServiceTagCommand begin processing with ParameterSet '__AllParameterSets'.
DEBUG: 7:01:22 AM - using account id 'xxxxxxx.xxxxxxxv@xxxxxxx.xxx'...
DEBUG: [Common.Authentication]: Authenticating using Account: 'xxxxxxx.xxxxxxxv@xxxxxxx.xxx', environment: 'AzureCloud', tenant: 'xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx'
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: 'xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx', Endpoint:
'https://login.microsoftonline.com/', ClientId: 'xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx', ClientRedirect: 'urn:ietf:wg:oauth:2.0:oob', ResourceClientUri:
'https://management.core.windows.net/', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using context with Authority 'https://login.microsoftonline.com/xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx/', CorrelationId:
'00000000-0000-0000-0000-000000000000', ValidateAuthority: 'True'
DEBUG: [Common.Authentication]: Acquiring token using AdalConfiguration with Domain: 'xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx', AdEndpoint:
'https://login.microsoftonline.com/', ClientId: 'xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx', ClientRedirectUri: urn:ietf:wg:oauth:2.0:oob
DEBUG: [ADAL]: Information: 2020-06-23T07:01:22.0590573Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005',
file version '3.19.50302.0130' and informational version 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' is running...
DEBUG: [ADAL]: Information: 2020-06-23T07:01:22.0590573Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: ADAL PCL.Desktop with assembly version '3.19.2.6005',
file version '3.19.50302.0130' and informational version 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' is running...
DEBUG: [ADAL]: Information: 2020-06-23T07:01:22.0600584Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: === Token Acquisition started:
 CacheType: null
 Authentication Target: User
 , Authority Host: login.microsoftonline.com
DEBUG: [ADAL]: Information: 2020-06-23T07:01:22.0600584Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: === Token Acquisition started:
 Authority: https://login.microsoftonline.com/xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx/
 Resource: https://management.core.windows.net/
 ClientId: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx
 CacheType: null
 Authentication Target: User

DEBUG: [ADAL]: Verbose: 2020-06-23T07:01:22.1690970Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: Loading from cache.
DEBUG: [ADAL]: Verbose: 2020-06-23T07:01:22.1690970Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: Loading from cache.
DEBUG: [ADAL]: Information: 2020-06-23T07:01:22.1700952Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Deserialized 3 items to token cache.
DEBUG: [ADAL]: Verbose: 2020-06-23T07:01:22.1780957Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: Looking up cache for a token...
DEBUG: [ADAL]: Verbose: 2020-06-23T07:01:22.1780957Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: Looking up cache for a token...
DEBUG: [ADAL]: Information: 2020-06-23T07:01:22.1820968Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: An item matching the requested resource was found in the
cache
DEBUG: [ADAL]: Information: 2020-06-23T07:01:22.1820968Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: An item matching the requested resource was found in the
cache
DEBUG: [ADAL]: Information: 2020-06-23T07:01:22.1840959Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: An expired or near expiry token was found in the cache
DEBUG: [ADAL]: Information: 2020-06-23T07:01:22.1840959Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: An expired or near expiry token was found in the cache
DEBUG: [ADAL]: Information: 2020-06-23T07:01:22.1840959Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: A matching item (access token or refresh token or both)
was found in the cache
DEBUG: [ADAL]: Information: 2020-06-23T07:01:22.1840959Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: A matching item (access token or refresh token or both)
was found in the cache
DEBUG: [ADAL]: Verbose: 2020-06-23T07:01:22.1860970Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: Refreshing access token...
DEBUG: [ADAL]: Verbose: 2020-06-23T07:01:22.1860970Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: Refreshing access token...
DEBUG: [ADAL]: Verbose: 2020-06-23T07:01:24.4178786Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: Storing token in the cache...
DEBUG: [ADAL]: Verbose: 2020-06-23T07:01:24.4178786Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: Storing token in the cache...
DEBUG: [ADAL]: Verbose: 2020-06-23T07:01:24.4188912Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: An item was stored in the cache
DEBUG: [ADAL]: Verbose: 2020-06-23T07:01:24.4188912Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: An item was stored in the cache
DEBUG: [ADAL]: Information: 2020-06-23T07:01:24.4218710Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: === Token Acquisition finished successfully. An access
token was returned: Expiration Time: 6/23/2020 8:01:22 AM +00:00
DEBUG: [ADAL]: Information: 2020-06-23T07:01:24.4218710Z: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx - LoggerBase.cs: === Token Acquisition finished successfully. An access
token was returned: Expiration Time: 6/23/2020 8:01:22 AM +00:00Access Token Hash: xxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  User id: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx
DEBUG: [ADAL]: Information: 2020-06-23T07:01:24.4238744Z: 00000000-0000-0000-0000-000000000000 - LoggerBase.cs: Serializing token cache with 3 items.
DEBUG: [Common.Authentication]: Renewing Token with Type: 'Bearer', Expiry: '06/23/2020 08:01:22 +00:00', MultipleResource? 'True', Tenant:
'xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx', UserId: 'xxxxxxx.xxxxxxxv@xxxxxxx.xxx'
DEBUG: [Common.Authentication]: User info for token DisplayId: 'xxxxxxx.xxxxxxxv@xxxxxxx.xxx', Name:  , IdProvider:
'https://sts.windows.net/xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx/', Uid: 'xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx'
DEBUG: [Common.Authentication]: Checking token expiration, token expires '06/23/2020 08:01:22 +00:00' Comparing to '06/23/2020 07:01:24 +00:00' With threshold
'00:05:00', calculated time until token expiry: '00:59:57.8785070'
DEBUG: ============================ HTTP REQUEST ============================

HTTP Method:
GET

Absolute Uri:
https://management.azure.com/subscriptions/xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx/providers/Microsoft.Network/locations/eastus2/serviceTags?api-version=2020-04-01

Headers:
x-ms-client-request-id        : xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx
accept-language               : en-US

Body:

DEBUG: ============================ HTTP RESPONSE ============================

Status Code:
OK

Headers:
Pragma                        : no-cache
x-ms-request-id               : xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx
x-ms-correlation-request-id   : xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx
x-ms-arm-service-request-id   : xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx
Strict-Transport-Security     : max-age=31536000; includeSubDomains
Cache-Control                 : no-cache
Server                        : Microsoft-HTTPAPI/2.0,Microsoft-HTTPAPI/2.0
x-ms-ratelimit-remaining-subscription-reads: 11999
x-ms-routing-request-id       : WESTEUROPE:20200623T070125Z:xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx
X-Content-Type-Options        : nosniff
Date                          : Tue, 23 Jun 2020 07:01:24 GMT

Body:
{
  "name": "Public",
  "id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx/providers/Microsoft.Network/serviceTags/Public",
  "type": "Microsoft.Network/serviceTags",
  "changeNumber": "66",
  "cloud": "Public",
  "values": []
}

DEBUG: AzureQoSEvent: CommandName - Get-AzNetworkServiceTag; IsSuccess - True; Duration - 00:00:04.6904562;
DEBUG: Finish sending metric.
DEBUG: 7:01:27 AM - GetAzureNetworkServiceTagCommand end processing.

Error output

dingmeng-xue commented 4 years ago

Please try to enable debug message via $DebugPreference="Continue" and share us the output. According to my test, the value from service response is empty.

ghost commented 4 years ago

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

dielenko commented 4 years ago

@dingmeng-xue, I have added Debug output in the issue described above. Just a kind note that all user-specific data, ids, and tokens were masked(example: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx)

ghost commented 4 years ago

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

FilBot3 commented 4 years ago

I also received the same value when attempting to perform this command using PowerShell Core 7.0.2 on Fedora Workstation 32.

PS /home/filbot/Work/Development/Kubernetes/ingress-nginx> Get-AzNetworkServiceTag -Location:centralus

Name         : Public
Id           : /subscriptions/<subscription id>/providers/Microsoft.Network/serviceTags/Public
Type         : Microsoft.Network/serviceTags
Cloud        : Public
ChangeNumber : 65
Values       : {}

PS /home/filbot/Work/Development/Kubernetes/ingress-nginx> $azReturn = Get-AzNetworkServiceTag -Location:centralus
PS /home/filbot/Work/Development/Kubernetes/ingress-nginx> $azReturn.Values
PS /home/filbot/Work/Development/Kubernetes/ingress-nginx>

This does not seem to return the expected results as documented here:

Also posted question on Reddit.

Seems this is also happening to the Azure CLI.

az network list-service-tags --location=centralus
{
  "changeNumber": "65",
  "cloud": "Public",
  "id": "/subscriptions/<subscription id>/providers/Microsoft.Network/serviceTags/Public",
  "name": "Public",
  "type": "Microsoft.Network/serviceTags",
  "values": []
}
ericcsinger commented 4 years ago

FWIW, I too am having the same issue. Windows + PS7, module v3.1

dielenko commented 4 years ago

Greetings, today I have made a new attempt and I can confirm that the issue is solved. Get-AzNetworkServiceTag returns Values for service tags.

Steps to reproduce

C:\> $allTags = Get-AzNetworkServiceTag -Location eastus2
C:\> $allTags

Name         : Public
Id           : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxxx/providers/Microsoft.Network/serviceTags/Public
Type         : Microsoft.Network/serviceTags
Cloud        : Public
ChangeNumber : 67    
Values       : {ActionGroup, ActionGroup.AustraliaSoutheast, ActionGroup.BrazilSouth, ActionGroup.CanadaCentral...}

Anyway, I am not able to find IP ranges for Microsoft-hosted agents per region. I am searching for AzureCloud.<region> service tag. In the weekly JSON file listing IP ranges for Azure datacenters, there is such scope (https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#networking). So I have expected to find the same behavior with a listing of service tags introduced with Get-AzNetworkServiceTag. Please may I ask you to give some details according to that option: is it possible to list the IP ranges for Microsoft-hosted agents or not with the above cmdlet.

dielenko commented 4 years ago

Hello Team, May I ask you if you can give some info about my question describe above in the previous comment. Just to add that the context of my needs is similar to the following topic opened months ago: https://github.com/MicrosoftDocs/azure-docs/issues/38914

GATver commented 4 years ago

Having the same issue here. Please advise.

ghost commented 4 years ago

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

dielenko commented 4 years ago

Hello, I made a new check and I found that AzureCloud.<region> service tag is available now. For example, if we need to find the region dedicated to West Europe the following code described below will do that:

Az PoSH Example:

C:\> (Get-AzNetworkServiceTag -Location westeurope).Values | Where-Object {$_.Name -like "AzureCloud.westeurope"}

Name             : AzureCloud.westeurope
System Service   :
Region           : westeurope
Address Prefixes : {13.69.0.0/17, 13.73.128.0/18, 13.73.224.0/21, 13.80.0.0/15...}
Change Number    : 1

I am going to close the issue. Thank you for your efforts.

palynche-nokia commented 3 years ago

Can someone confirm if this is broken again I'm unable to see any Azurecloud. via Get-AzNetworkServiceTag, all other service tag are responding.

PS /Users/palynche> (Get-AzNetworkServiceTag -Location westeurope).Values | Where-Object {$_.Name -like "AzureCloud*"} PS /Users/palynche>

alexandrelimait commented 3 years ago

Hi @timMSFT Same issue here again, last year it was working but now I can't see any entries to AzureEventGrid in the West Europe Region, Can you re-open the case?

MatsVivanco commented 3 years ago

This is not working anymore. Having issues finding datafactory westeurope. Only datafactory is showing.

MrDakCol commented 1 year ago

still broken.

arvindabes commented 1 year ago

Hi @timMSFT @justhchung @dingmeng-xue Get-AzNetworkServiceTag again broken , please help on this. This command is returning empty response now.

image

musoubi commented 3 months ago

Same problem here.