42 writes to Sku
Aspire.Hosting.Azure.Tests (40)
AzureApiManagementTests.cs (40)
98Sku = sku, 114Sku = AzureApiManagementSku.Consumption, 487Sku = AzureApiManagementSku.StandardV2, 549Sku = AzureApiManagementSku.Consumption, 570Sku = AzureApiManagementSku.Developer, 593Sku = AzureApiManagementSku.PremiumV2, 613Sku = AzureApiManagementSku.StandardV2, 640Sku = AzureApiManagementSku.PremiumV2, 670Sku = sku, 699Sku = injection ? AzureApiManagementSku.PremiumV2 : AzureApiManagementSku.StandardV2, 732Sku = injection ? AzureApiManagementSku.PremiumV2 : AzureApiManagementSku.StandardV2, 762Sku = AzureApiManagementSku.StandardV2, 784Sku = AzureApiManagementSku.StandardV2, 802Sku = AzureApiManagementSku.StandardV2, 808Sku = AzureApiManagementSku.StandardV2, 831Sku = AzureApiManagementSku.StandardV2, 852Sku = AzureApiManagementSku.StandardV2, 1247Sku = AzureApiManagementSku.Premium, 1274Sku = AzureApiManagementSku.StandardV2, 1474Sku = AzureApiManagementSku.Consumption, 1502Sku = sku, 1531Sku = sku, 1553Sku = sku, 1576Sku = AzureApiManagementSku.Developer, 1632Sku = AzureApiManagementSku.Premium, 1677Sku = AzureApiManagementSku.Premium, 1701Sku = AzureApiManagementSku.StandardV2, 1730Sku = AzureApiManagementSku.Consumption, 1922Sku = AzureApiManagementSku.Developer, 2253Sku = AzureApiManagementSku.Consumption, 2302Sku = AzureApiManagementSku.Developer, 2360Sku = AzureApiManagementSku.Developer, 2395Sku = AzureApiManagementSku.Developer, 2456Sku = AzureApiManagementSku.Developer, 2516Sku = AzureApiManagementSku.Developer, 2626Sku = AzureApiManagementSku.Developer, 2649Sku = AzureApiManagementSku.Developer, 2678Sku = AzureApiManagementSku.Developer, 2707Sku = AzureApiManagementSku.Developer, 2736Sku = 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)
34Assert.Equal(AzureApiManagementSku.Developer, apim.Resource.Options.Sku);