[SQL Migration] Update assessment NuGet version + mark GAed VM SKUs as non-preview (#1510)

* Update assessment NuGet version and metadata

* Consider Eb VM SKUs without preview flag as they are now GAed

* Update assessment NuGet to 1.0.20220527.33
This commit is contained in:
Raymond Truong
2022-05-31 14:54:29 -07:00
committed by GitHub
parent 989137ddb7
commit 0c37dc50f9
8 changed files with 46 additions and 79 deletions

View File

@@ -625,18 +625,16 @@ namespace Microsoft.SqlTools.ServiceLayer.Migration
string jsonFile = File.ReadAllText(Path.Combine(assemblyPath, RecommendationConstants.DataFolder, RecommendationConstants.SqlVmCapability));
List<AzureSqlIaaSCapability> vmCapabilities = JsonConvert.DeserializeObject<List<AzureSqlIaaSCapability>>(jsonFile);
if (includePreviewSkus)
// Eb series capabilities stored separately
string computePreviewFilePath = Path.Combine(assemblyPath, RecommendationConstants.DataFolder, RecommendationConstants.SqlVmPreviewCapability);
if (File.Exists(computePreviewFilePath))
{
// Eb series (in preview) capabilities stored separately
string computePreviewFilePath = Path.Combine(assemblyPath, RecommendationConstants.DataFolder, RecommendationConstants.SqlVmPreviewCapability);
if (File.Exists(computePreviewFilePath))
{
jsonFile = File.ReadAllText(computePreviewFilePath);
List<AzureSqlIaaSCapability> vmPreviewCapabilities = JsonConvert.DeserializeObject<List<AzureSqlIaaSCapability>>(jsonFile);
jsonFile = File.ReadAllText(computePreviewFilePath);
List<AzureSqlIaaSCapability> vmPreviewCapabilities = JsonConvert.DeserializeObject<List<AzureSqlIaaSCapability>>(jsonFile);
vmCapabilities.AddRange(vmPreviewCapabilities);
}
vmCapabilities.AddRange(vmPreviewCapabilities);
}
foreach (VirtualMachineFamily family in AzureVirtualMachineFamilyGroup.FamilyGroups[VirtualMachineFamilyType.GeneralPurpose]
.Concat(AzureVirtualMachineFamilyGroup.FamilyGroups[VirtualMachineFamilyType.MemoryOptimized]))