feat: add filtering for VM SKUs based on location and remove family field from VmSkuRow
This commit is contained in:
@@ -124,9 +124,10 @@ export class AzureImageService {
|
||||
}
|
||||
|
||||
const targetLocation = location.toLowerCase();
|
||||
const filter = `location eq '${location}'`;
|
||||
const vmSkus: VmSkuOption[] = [];
|
||||
|
||||
for await (const sku of this.computeClient.resourceSkus.list()) {
|
||||
for await (const sku of this.computeClient.resourceSkus.list({ filter })) {
|
||||
if ((sku.resourceType ?? "").toLowerCase() !== "virtualmachines") {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user