diff --git a/runbooks/recommendations/Ingest-RecommendationsToSQLServer.ps1 b/runbooks/recommendations/Ingest-RecommendationsToSQLServer.ps1 index d50633b..15b5dcb 100644 --- a/runbooks/recommendations/Ingest-RecommendationsToSQLServer.ps1 +++ b/runbooks/recommendations/Ingest-RecommendationsToSQLServer.ps1 @@ -190,7 +190,11 @@ foreach ($blob in $unprocessedBlobs) { for ($i = 0; $i -lt $jsonObjectSplitted[$j].Count; $i++) { $jsonObjectSplitted[$j][$i].RecommendationDescription = $jsonObjectSplitted[$j][$i].RecommendationDescription.Replace("'", "") - $jsonObjectSplitted[$j][$i].RecommendationAction = $jsonObjectSplitted[$j][$i].RecommendationAction.Replace("'", "") + $jsonObjectSplitted[$j][$i].RecommendationAction = $jsonObjectSplitted[$j][$i].RecommendationAction.Replace("'", "") + if ($null -ne $jsonObjectSplitted[$j][$i].InstanceName) + { + $jsonObjectSplitted[$j][$i].InstanceName = $jsonObjectSplitted[$j][$i].InstanceName.Replace("'", "") + } $additionalInfoString = $jsonObjectSplitted[$j][$i].AdditionalInfo | ConvertTo-Json -Compress $tagsString = $jsonObjectSplitted[$j][$i].Tags | ConvertTo-Json -Compress $subscriptionGuid = "NULL"