Get-AzSecurityTask.RecommendationType has string with encoding issue
Description
When running a query with (Get-AzSecurityTask).RecommendationType that has a Recommendation that is "The rules for web applications on IaaS NSGs should be hardened" the string has a encoding error with the space used inbewteen IaaS and NSGs. This can be replicated by copy and pasting the string in a powershell window, exporting to a csv or simply running a like comparison.
The string decodes to
The rules for web applications on IaaSÂ NSGs should be hardened
Im not sure if this is an issue with the module itself or if this is a bug that needs to be fixed on the Azure side.
Steps to reproduce
Environment data
Name Value
---- -----
PSVersion 7.0.0-preview.4
PSEdition Core
GitCommitId 7.0.0-preview.4
OS Microsoft Windows 10.0.18362
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Module versions
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Script 2.7.0 Az Core,Desk
Script 1.6.2 Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzCont…
Script 1.0.1 Az.Advisor Core,Desk {Get-AzAdvisorRecommendation, Enable-AzAd…
Script 1.0.2 Az.Aks Core,Desk {Get-AzAks, New-AzAks, Remove-AzAks, Impo…
Script 1.1.1 Az.AnalysisServices Core,Desk {Resume-AzAnalysisServicesServer, Suspend…
Script 1.3.1 Az.ApiManagement Core,Desk {Add-AzApiManagementApiToProduct, Add-AzA…
Script 1.0.2 Az.ApplicationInsights Core,Desk {Get-AzApplicationInsights, New-AzApplica…
Script 1.3.3 Az.Automation Core,Desk {Get-AzAutomationHybridWorkerGroup, Remov…
Script 1.1.1 Az.Batch Core,Desk {Remove-AzBatchAccount, Get-AzBatchAccoun…
Script 1.0.1 Az.Billing Core,Desk {Get-AzBillingInvoice, Get-AzBillingPerio…
Script 1.3.1 Az.Cdn Core,Desk {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl…
Script 1.2.1 Az.CognitiveServices Core,Desk {Get-AzCognitiveServicesAccount, Get-AzCo…
Script 2.6.0 Az.Compute Core,Desk {Remove-AzAvailabilitySet, Get-AzAvailabi…
Script 1.0.1 Az.ContainerInstance Core,Desk {New-AzContainerGroup, Get-AzContainerGro…
Script 1.1.0 Az.ContainerRegistry Core,Desk {New-AzContainerRegistry, Get-AzContainer…
Script 1.3.0 Az.DataFactory Core,Desk {Set-AzDataFactoryV2, Update-AzDataFactor…
Script 1.0.1 Az.DataLakeAnalytics Core,Desk {Get-AzDataLakeAnalyticsDataSource, New-A…
Script 1.2.2 Az.DataLakeStore Core,Desk {Get-AzDataLakeStoreTrustedIdProvider, Re…
Script 1.0.1 Az.DeploymentManager Core,Desk {Get-AzDeploymentManagerArtifactSource, N…
Script 1.0.0 Az.DevTestLabs Core,Desk {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtl…
Script 1.1.1 Az.Dns Core,Desk {Get-AzDnsRecordSet, New-AzDnsRecordConfi…
Script 1.2.2 Az.EventGrid Core,Desk {New-AzEventGridTopic, Get-AzEventGridTop…
Script 1.4.0 Az.EventHub Core,Desk {New-AzEventHubNamespace, Get-AzEventHubN…
Script 1.1.1 Az.FrontDoor Core,Desk {New-AzFrontDoor, Get-AzFrontDoor, Set-Az…
Script 2.0.2 Az.HDInsight Core,Desk {Get-AzHDInsightJob, New-AzHDInsightSqoop…
Script 1.3.0 Az.IotHub Core,Desk {Add-AzIotHubKey, Get-AzIotHubEventHubCon…
Script 1.3.1 Az.KeyVault Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyV…
Script 1.3.1 Az.LogicApp Core,Desk {Get-AzIntegrationAccountAgreement, Get-A…
Script 1.1.1 Az.MachineLearning Core,Desk {Move-AzMlCommitmentAssociation, Get-AzMl…
Script 1.0.1 Az.ManagedServices Core,Desk {Get-AzManagedServicesAssignment, New-AzM…
Script 1.0.1 Az.MarketplaceOrdering Core,Desk {Get-AzMarketplaceTerms, Set-AzMarketplac…
Script 1.1.0 Az.Media Core,Desk {Sync-AzMediaServiceStorageKey, Set-AzMed…
Script 1.3.0 Az.Monitor Core,Desk {Get-AzMetricDefinition, Get-AzMetric, Re…
Script 1.14.0 Az.Network Core,Desk {Add-AzApplicationGatewayAuthenticationCe…
Script 1.1.0 Az.NotificationHubs Core,Desk {Get-AzNotificationHub, Get-AzNotificatio…
Script 1.3.3 Az.OperationalInsights Core,Desk {New-AzOperationalInsightsAzureActivityLo…
Script 1.1.3 Az.PolicyInsights Core,Desk {Get-AzPolicyEvent, Get-AzPolicyState, Ge…
Script 1.1.0 Az.PowerBIEmbedded Core,Desk {Remove-AzPowerBIWorkspaceCollection, Get…
Script 1.4.5 Az.RecoveryServices Core,Desk {Get-AzRecoveryServicesBackupProperty, Ge…
Script 1.1.0 Az.RedisCache Core,Desk {Remove-AzRedisCachePatchSchedule, New-Az…
Script 1.0.2 Az.Relay Core,Desk {New-AzRelayNamespace, Get-AzRelayNamespa…
Script 1.7.0 Az.Resources Core,Desk {Get-AzProviderOperation, Remove-AzRoleAs…
Script 0.7.6 Az.Security Core,Desk {Get-AzSecurityAlert, Set-AzSecurityAlert…
Script 1.4.0 Az.ServiceBus Core,Desk {New-AzServiceBusNamespace, Get-AzService…
Script 1.2.0 Az.ServiceFabric Core,Desk {Add-AzServiceFabricApplicationCertificat…
Script 1.1.0 Az.SignalR Core,Desk {New-AzSignalR, Get-AzSignalR, Get-AzSign…
Script 1.14.2 Az.Sql Core,Desk {Get-AzSqlDatabaseTransparentDataEncrypti…
Script 1.7.0 Az.Storage Core,Desk {Get-AzStorageAccount, Get-AzStorageAccou…
Script 1.2.0 Az.StorageSync Core,Desk {Invoke-AzStorageSyncCompatibilityCheck, …
Script 1.0.0 Az.StreamAnalytics Core,Desk {Get-AzStreamAnalyticsFunction, Get-AzStr…
Script 1.0.2 Az.TrafficManager Core,Desk {Add-AzTrafficManagerCustomHeaderToEndpoi…
Script 1.4.2 Az.Websites Core,Desk {Get-AzAppServicePlan, Set-AzAppServicePl…
Looking for the relevant contact person on the team.
Hello @faultoverload Apologies for the delayed response. I see that this issue is opened a long time ago and no further activity had taken place. So wanted to check if you are still looking for assistance on this query? Please let us know.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @chlahav.
Issue Details
Description
When running a query with (Get-AzSecurityTask).RecommendationType that has a Recommendation that is "The rules for web applications on IaaS NSGs should be hardened" the string has a encoding error with the space used inbewteen IaaS and NSGs. This can be replicated by copy and pasting the string in a powershell window, exporting to a csv or simply running a like comparison.
The string decodes to
The rules for web applications on IaaSÂ NSGs should be hardened
Im not sure if this is an issue with the module itself or if this is a bug that needs to be fixed on the Azure side.
Steps to reproduce
Environment data
Name Value
---- -----
PSVersion 7.0.0-preview.4
PSEdition Core
GitCommitId 7.0.0-preview.4
OS Microsoft Windows 10.0.18362
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Module versions
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Script 2.7.0 Az Core,Desk
Script 1.6.2 Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzCont…
Script 1.0.1 Az.Advisor Core,Desk {Get-AzAdvisorRecommendation, Enable-AzAd…
Script 1.0.2 Az.Aks Core,Desk {Get-AzAks, New-AzAks, Remove-AzAks, Impo…
Script 1.1.1 Az.AnalysisServices Core,Desk {Resume-AzAnalysisServicesServer, Suspend…
Script 1.3.1 Az.ApiManagement Core,Desk {Add-AzApiManagementApiToProduct, Add-AzA…
Script 1.0.2 Az.ApplicationInsights Core,Desk {Get-AzApplicationInsights, New-AzApplica…
Script 1.3.3 Az.Automation Core,Desk {Get-AzAutomationHybridWorkerGroup, Remov…
Script 1.1.1 Az.Batch Core,Desk {Remove-AzBatchAccount, Get-AzBatchAccoun…
Script 1.0.1 Az.Billing Core,Desk {Get-AzBillingInvoice, Get-AzBillingPerio…
Script 1.3.1 Az.Cdn Core,Desk {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl…
Script 1.2.1 Az.CognitiveServices Core,Desk {Get-AzCognitiveServicesAccount, Get-AzCo…
Script 2.6.0 Az.Compute Core,Desk {Remove-AzAvailabilitySet, Get-AzAvailabi…
Script 1.0.1 Az.ContainerInstance Core,Desk {New-AzContainerGroup, Get-AzContainerGro…
Script 1.1.0 Az.ContainerRegistry Core,Desk {New-AzContainerRegistry, Get-AzContainer…
Script 1.3.0 Az.DataFactory Core,Desk {Set-AzDataFactoryV2, Update-AzDataFactor…
Script 1.0.1 Az.DataLakeAnalytics Core,Desk {Get-AzDataLakeAnalyticsDataSource, New-A…
Script 1.2.2 Az.DataLakeStore Core,Desk {Get-AzDataLakeStoreTrustedIdProvider, Re…
Script 1.0.1 Az.DeploymentManager Core,Desk {Get-AzDeploymentManagerArtifactSource, N…
Script 1.0.0 Az.DevTestLabs Core,Desk {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtl…
Script 1.1.1 Az.Dns Core,Desk {Get-AzDnsRecordSet, New-AzDnsRecordConfi…
Script 1.2.2 Az.EventGrid Core,Desk {New-AzEventGridTopic, Get-AzEventGridTop…
Script 1.4.0 Az.EventHub Core,Desk {New-AzEventHubNamespace, Get-AzEventHubN…
Script 1.1.1 Az.FrontDoor Core,Desk {New-AzFrontDoor, Get-AzFrontDoor, Set-Az…
Script 2.0.2 Az.HDInsight Core,Desk {Get-AzHDInsightJob, New-AzHDInsightSqoop…
Script 1.3.0 Az.IotHub Core,Desk {Add-AzIotHubKey, Get-AzIotHubEventHubCon…
Script 1.3.1 Az.KeyVault Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyV…
Script 1.3.1 Az.LogicApp Core,Desk {Get-AzIntegrationAccountAgreement, Get-A…
Script 1.1.1 Az.MachineLearning Core,Desk {Move-AzMlCommitmentAssociation, Get-AzMl…
Script 1.0.1 Az.ManagedServices Core,Desk {Get-AzManagedServicesAssignment, New-AzM…
Script 1.0.1 Az.MarketplaceOrdering Core,Desk {Get-AzMarketplaceTerms, Set-AzMarketplac…
Script 1.1.0 Az.Media Core,Desk {Sync-AzMediaServiceStorageKey, Set-AzMed…
Script 1.3.0 Az.Monitor Core,Desk {Get-AzMetricDefinition, Get-AzMetric, Re…
Script 1.14.0 Az.Network Core,Desk {Add-AzApplicationGatewayAuthenticationCe…
Script 1.1.0 Az.NotificationHubs Core,Desk {Get-AzNotificationHub, Get-AzNotificatio…
Script 1.3.3 Az.OperationalInsights Core,Desk {New-AzOperationalInsightsAzureActivityLo…
Script 1.1.3 Az.PolicyInsights Core,Desk {Get-AzPolicyEvent, Get-AzPolicyState, Ge…
Script 1.1.0 Az.PowerBIEmbedded Core,Desk {Remove-AzPowerBIWorkspaceCollection, Get…
Script 1.4.5 Az.RecoveryServices Core,Desk {Get-AzRecoveryServicesBackupProperty, Ge…
Script 1.1.0 Az.RedisCache Core,Desk {Remove-AzRedisCachePatchSchedule, New-Az…
Script 1.0.2 Az.Relay Core,Desk {New-AzRelayNamespace, Get-AzRelayNamespa…
Script 1.7.0 Az.Resources Core,Desk {Get-AzProviderOperation, Remove-AzRoleAs…
Script 0.7.6 Az.Security Core,Desk {Get-AzSecurityAlert, Set-AzSecurityAlert…
Script 1.4.0 Az.ServiceBus Core,Desk {New-AzServiceBusNamespace, Get-AzService…
Script 1.2.0 Az.ServiceFabric Core,Desk {Add-AzServiceFabricApplicationCertificat…
Script 1.1.0 Az.SignalR Core,Desk {New-AzSignalR, Get-AzSignalR, Get-AzSign…
Script 1.14.2 Az.Sql Core,Desk {Get-AzSqlDatabaseTransparentDataEncrypti…
Script 1.7.0 Az.Storage Core,Desk {Get-AzStorageAccount, Get-AzStorageAccou…
Script 1.2.0 Az.StorageSync Core,Desk {Invoke-AzStorageSyncCompatibilityCheck, …
Script 1.0.0 Az.StreamAnalytics Core,Desk {Get-AzStreamAnalyticsFunction, Get-AzStr…
Script 1.0.2 Az.TrafficManager Core,Desk {Add-AzTrafficManagerCustomHeaderToEndpoi…
Script 1.4.2 Az.Websites Core,Desk {Get-AzAppServicePlan, Set-AzAppServicePl…
| Author: | faultoverload |
|---|---|
| Assignees: | - |
| Labels: |
|
| Milestone: | - |
Hello @chlahav, Could you please help us with this issue?
Hello @faultoverload Apologies for the delayed response. I see that this issue is opened a long time ago and no further activity had taken place. So wanted to check if you are still looking for assistance on this query? Please let us know.
Hey, I haven't used this module in a while but I assume the issue is still there and all the steps to replicate it are detailed in the OP.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @chlahav.
Issue Details
Description
When running a query with (Get-AzSecurityTask).RecommendationType that has a Recommendation that is "The rules for web applications on IaaS NSGs should be hardened" the string has a encoding error with the space used inbewteen IaaS and NSGs. This can be replicated by copy and pasting the string in a powershell window, exporting to a csv or simply running a like comparison.
The string decodes to
The rules for web applications on IaaSÂ NSGs should be hardened
Im not sure if this is an issue with the module itself or if this is a bug that needs to be fixed on the Azure side.
Steps to reproduce
Environment data
Name Value
---- -----
PSVersion 7.0.0-preview.4
PSEdition Core
GitCommitId 7.0.0-preview.4
OS Microsoft Windows 10.0.18362
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Module versions
ModuleType Version PreRelease Name PSEdition ExportedCommands
---------- ------- ---------- ---- --------- ----------------
Script 2.7.0 Az Core,Desk
Script 1.6.2 Az.Accounts Core,Desk {Disable-AzDataCollection, Disable-AzCont…
Script 1.0.1 Az.Advisor Core,Desk {Get-AzAdvisorRecommendation, Enable-AzAd…
Script 1.0.2 Az.Aks Core,Desk {Get-AzAks, New-AzAks, Remove-AzAks, Impo…
Script 1.1.1 Az.AnalysisServices Core,Desk {Resume-AzAnalysisServicesServer, Suspend…
Script 1.3.1 Az.ApiManagement Core,Desk {Add-AzApiManagementApiToProduct, Add-AzA…
Script 1.0.2 Az.ApplicationInsights Core,Desk {Get-AzApplicationInsights, New-AzApplica…
Script 1.3.3 Az.Automation Core,Desk {Get-AzAutomationHybridWorkerGroup, Remov…
Script 1.1.1 Az.Batch Core,Desk {Remove-AzBatchAccount, Get-AzBatchAccoun…
Script 1.0.1 Az.Billing Core,Desk {Get-AzBillingInvoice, Get-AzBillingPerio…
Script 1.3.1 Az.Cdn Core,Desk {Get-AzCdnProfile, Get-AzCdnProfileSsoUrl…
Script 1.2.1 Az.CognitiveServices Core,Desk {Get-AzCognitiveServicesAccount, Get-AzCo…
Script 2.6.0 Az.Compute Core,Desk {Remove-AzAvailabilitySet, Get-AzAvailabi…
Script 1.0.1 Az.ContainerInstance Core,Desk {New-AzContainerGroup, Get-AzContainerGro…
Script 1.1.0 Az.ContainerRegistry Core,Desk {New-AzContainerRegistry, Get-AzContainer…
Script 1.3.0 Az.DataFactory Core,Desk {Set-AzDataFactoryV2, Update-AzDataFactor…
Script 1.0.1 Az.DataLakeAnalytics Core,Desk {Get-AzDataLakeAnalyticsDataSource, New-A…
Script 1.2.2 Az.DataLakeStore Core,Desk {Get-AzDataLakeStoreTrustedIdProvider, Re…
Script 1.0.1 Az.DeploymentManager Core,Desk {Get-AzDeploymentManagerArtifactSource, N…
Script 1.0.0 Az.DevTestLabs Core,Desk {Get-AzDtlAllowedVMSizesPolicy, Get-AzDtl…
Script 1.1.1 Az.Dns Core,Desk {Get-AzDnsRecordSet, New-AzDnsRecordConfi…
Script 1.2.2 Az.EventGrid Core,Desk {New-AzEventGridTopic, Get-AzEventGridTop…
Script 1.4.0 Az.EventHub Core,Desk {New-AzEventHubNamespace, Get-AzEventHubN…
Script 1.1.1 Az.FrontDoor Core,Desk {New-AzFrontDoor, Get-AzFrontDoor, Set-Az…
Script 2.0.2 Az.HDInsight Core,Desk {Get-AzHDInsightJob, New-AzHDInsightSqoop…
Script 1.3.0 Az.IotHub Core,Desk {Add-AzIotHubKey, Get-AzIotHubEventHubCon…
Script 1.3.1 Az.KeyVault Core,Desk {Add-AzKeyVaultCertificate, Update-AzKeyV…
Script 1.3.1 Az.LogicApp Core,Desk {Get-AzIntegrationAccountAgreement, Get-A…
Script 1.1.1 Az.MachineLearning Core,Desk {Move-AzMlCommitmentAssociation, Get-AzMl…
Script 1.0.1 Az.ManagedServices Core,Desk {Get-AzManagedServicesAssignment, New-AzM…
Script 1.0.1 Az.MarketplaceOrdering Core,Desk {Get-AzMarketplaceTerms, Set-AzMarketplac…
Script 1.1.0 Az.Media Core,Desk {Sync-AzMediaServiceStorageKey, Set-AzMed…
Script 1.3.0 Az.Monitor Core,Desk {Get-AzMetricDefinition, Get-AzMetric, Re…
Script 1.14.0 Az.Network Core,Desk {Add-AzApplicationGatewayAuthenticationCe…
Script 1.1.0 Az.NotificationHubs Core,Desk {Get-AzNotificationHub, Get-AzNotificatio…
Script 1.3.3 Az.OperationalInsights Core,Desk {New-AzOperationalInsightsAzureActivityLo…
Script 1.1.3 Az.PolicyInsights Core,Desk {Get-AzPolicyEvent, Get-AzPolicyState, Ge…
Script 1.1.0 Az.PowerBIEmbedded Core,Desk {Remove-AzPowerBIWorkspaceCollection, Get…
Script 1.4.5 Az.RecoveryServices Core,Desk {Get-AzRecoveryServicesBackupProperty, Ge…
Script 1.1.0 Az.RedisCache Core,Desk {Remove-AzRedisCachePatchSchedule, New-Az…
Script 1.0.2 Az.Relay Core,Desk {New-AzRelayNamespace, Get-AzRelayNamespa…
Script 1.7.0 Az.Resources Core,Desk {Get-AzProviderOperation, Remove-AzRoleAs…
Script 0.7.6 Az.Security Core,Desk {Get-AzSecurityAlert, Set-AzSecurityAlert…
Script 1.4.0 Az.ServiceBus Core,Desk {New-AzServiceBusNamespace, Get-AzService…
Script 1.2.0 Az.ServiceFabric Core,Desk {Add-AzServiceFabricApplicationCertificat…
Script 1.1.0 Az.SignalR Core,Desk {New-AzSignalR, Get-AzSignalR, Get-AzSign…
Script 1.14.2 Az.Sql Core,Desk {Get-AzSqlDatabaseTransparentDataEncrypti…
Script 1.7.0 Az.Storage Core,Desk {Get-AzStorageAccount, Get-AzStorageAccou…
Script 1.2.0 Az.StorageSync Core,Desk {Invoke-AzStorageSyncCompatibilityCheck, …
Script 1.0.0 Az.StreamAnalytics Core,Desk {Get-AzStreamAnalyticsFunction, Get-AzStr…
Script 1.0.2 Az.TrafficManager Core,Desk {Add-AzTrafficManagerCustomHeaderToEndpoi…
Script 1.4.2 Az.Websites Core,Desk {Get-AzAppServicePlan, Set-AzAppServicePl…
| Author: | faultoverload |
|---|---|
| Assignees: | - |
| Labels: |
|
| Milestone: | - |
@faultoverload Apologies for the delay in getting back. I tried to run the same PS script but couldn't reproduce the issue. Could you please confirm if you are still facing the same issue with this PS command ? Awaiting your reply.
@faultoverload This thread is open for quite sometime, so wanted to follow-up again on this github thread to check if you are still facing this issue. If you don't need any assistance on this, we will proceed with the closure of the thread. You may feel free to get back to us. We would be happy to assist you further.
@faultoverload I hope you had a chance to look at my above comment. Please reopen this thread if you need any further assistance on this issue. We would be happy to help.