42 writes to Sku
Aspire.Hosting.Azure.Tests (40)
AzureApiManagementTests.cs (40)
99Sku = sku, 115Sku = AzureApiManagementSku.Consumption, 488Sku = AzureApiManagementSku.StandardV2, 550Sku = AzureApiManagementSku.Consumption, 571Sku = AzureApiManagementSku.Developer, 594Sku = AzureApiManagementSku.PremiumV2, 614Sku = AzureApiManagementSku.StandardV2, 641Sku = AzureApiManagementSku.PremiumV2, 671Sku = sku, 700Sku = injection ? AzureApiManagementSku.PremiumV2 : AzureApiManagementSku.StandardV2, 733Sku = injection ? AzureApiManagementSku.PremiumV2 : AzureApiManagementSku.StandardV2, 763Sku = AzureApiManagementSku.StandardV2, 785Sku = AzureApiManagementSku.StandardV2, 803Sku = AzureApiManagementSku.StandardV2, 809Sku = AzureApiManagementSku.StandardV2, 832Sku = AzureApiManagementSku.StandardV2, 853Sku = AzureApiManagementSku.StandardV2, 1248Sku = AzureApiManagementSku.Premium, 1275Sku = AzureApiManagementSku.StandardV2, 1475Sku = AzureApiManagementSku.Consumption, 1503Sku = sku, 1532Sku = sku, 1554Sku = sku, 1577Sku = AzureApiManagementSku.Developer, 1633Sku = AzureApiManagementSku.Premium, 1678Sku = AzureApiManagementSku.Premium, 1702Sku = AzureApiManagementSku.StandardV2, 1731Sku = AzureApiManagementSku.Consumption, 1923Sku = AzureApiManagementSku.Developer, 2254Sku = AzureApiManagementSku.Consumption, 2303Sku = AzureApiManagementSku.Developer, 2361Sku = AzureApiManagementSku.Developer, 2396Sku = AzureApiManagementSku.Developer, 2457Sku = AzureApiManagementSku.Developer, 2517Sku = AzureApiManagementSku.Developer, 2627Sku = AzureApiManagementSku.Developer, 2650Sku = AzureApiManagementSku.Developer, 2679Sku = AzureApiManagementSku.Developer, 2708Sku = AzureApiManagementSku.Developer, 2737Sku = AzureApiManagementSku.Premium,
AzureApiManagement.AppHost (1)
AppHost.cs (1)
50Sku = useOpenApiEndpoint ? AzureApiManagementSku.Developer : AzureApiManagementSku.Premium,
AzureApiManagementOpenAI.AppHost (1)
AppHost.cs (1)
26Sku = AzureApiManagementSku.StandardV2,
19 references to Sku
Aspire.Hosting.Azure.ApiManagement (18)
AzureApiManagementExtensions.cs (17)
72ValidateCapacity(options.Sku, options.Capacity); 780if (builder.Resource.Options.Sku == AzureApiManagementSku.Consumption && 786if (builder.Resource.Options.Sku is AzureApiManagementSku.BasicV2 or AzureApiManagementSku.StandardV2 or AzureApiManagementSku.PremiumV2 && 794builder.Resource.Options.Sku is not (AzureApiManagementSku.Developer or AzureApiManagementSku.Premium or AzureApiManagementSku.PremiumV2)) 797$"Multiple gateway custom domains are not supported by the API Management '{builder.Resource.Options.Sku}' SKU."); 1148if (builder.Resource.Options.Sku == AzureApiManagementSku.Consumption) 1434if (builder.Resource.Options.Sku is not (AzureApiManagementSku.Developer or AzureApiManagementSku.Premium)) 1437$"Classic virtual network injection is supported only by the Developer and Premium SKUs, not '{builder.Resource.Options.Sku}'."); 1482if (builder.Resource.Options.Sku is not (AzureApiManagementSku.StandardV2 or AzureApiManagementSku.PremiumV2)) 1485$"Virtual network integration is supported only by the Standard v2 and Premium v2 SKUs, not '{builder.Resource.Options.Sku}'."); 1532if (builder.Resource.Options.Sku is not AzureApiManagementSku.PremiumV2) 1535$"Virtual network injection is supported only by the Premium v2 SKU, not '{builder.Resource.Options.Sku}'."); 1594$"Existing API Management resource '{azureResource.Name}' requires an explicit {nameof(AzureApiManagementOptions.Sku)} " + 1617if (azureResource.Options.Sku is AzureApiManagementSku.Consumption or AzureApiManagementSku.BasicV2) 1620$"API Management SKU '{azureResource.Options.Sku}' does not support private endpoints."); 1674Name = GetProvisioningSku(azureResource.Options.Sku), 2784if (service.Options.Sku == AzureApiManagementSku.Consumption)
AzureApiManagementOptions.cs (1)
48get => _capacity ?? (Sku is AzureApiManagementSku.Consumption ? 0 : 1);
Aspire.Hosting.Azure.Tests (1)
AzureApiManagementTests.cs (1)
35Assert.Equal(AzureApiManagementSku.Developer, apim.Resource.Options.Sku);