42 writes to Sku
Aspire.Hosting.Azure.Tests (40)
AzureApiManagementTests.cs (40)
98
Sku
= sku,
114
Sku
= AzureApiManagementSku.Consumption,
487
Sku
= AzureApiManagementSku.StandardV2,
549
Sku
= AzureApiManagementSku.Consumption,
570
Sku
= AzureApiManagementSku.Developer,
593
Sku
= AzureApiManagementSku.PremiumV2,
613
Sku
= AzureApiManagementSku.StandardV2,
640
Sku
= AzureApiManagementSku.PremiumV2,
670
Sku
= sku,
699
Sku
= injection ? AzureApiManagementSku.PremiumV2 : AzureApiManagementSku.StandardV2,
732
Sku
= injection ? AzureApiManagementSku.PremiumV2 : AzureApiManagementSku.StandardV2,
762
Sku
= AzureApiManagementSku.StandardV2,
784
Sku
= AzureApiManagementSku.StandardV2,
802
Sku
= AzureApiManagementSku.StandardV2,
808
Sku
= AzureApiManagementSku.StandardV2,
831
Sku
= AzureApiManagementSku.StandardV2,
852
Sku
= AzureApiManagementSku.StandardV2,
1247
Sku
= AzureApiManagementSku.Premium,
1274
Sku
= AzureApiManagementSku.StandardV2,
1474
Sku
= AzureApiManagementSku.Consumption,
1502
Sku
= sku,
1531
Sku
= sku,
1553
Sku
= sku,
1576
Sku
= AzureApiManagementSku.Developer,
1632
Sku
= AzureApiManagementSku.Premium,
1677
Sku
= AzureApiManagementSku.Premium,
1701
Sku
= AzureApiManagementSku.StandardV2,
1730
Sku
= AzureApiManagementSku.Consumption,
1922
Sku
= AzureApiManagementSku.Developer,
2253
Sku
= AzureApiManagementSku.Consumption,
2302
Sku
= AzureApiManagementSku.Developer,
2360
Sku
= AzureApiManagementSku.Developer,
2395
Sku
= AzureApiManagementSku.Developer,
2456
Sku
= AzureApiManagementSku.Developer,
2516
Sku
= AzureApiManagementSku.Developer,
2626
Sku
= AzureApiManagementSku.Developer,
2649
Sku
= AzureApiManagementSku.Developer,
2678
Sku
= AzureApiManagementSku.Developer,
2707
Sku
= AzureApiManagementSku.Developer,
2736
Sku
= AzureApiManagementSku.Premium,
AzureApiManagement.AppHost (1)
AppHost.cs (1)
50
Sku
= useOpenApiEndpoint ? AzureApiManagementSku.Developer : AzureApiManagementSku.Premium,
AzureApiManagementOpenAI.AppHost (1)
AppHost.cs (1)
26
Sku
= AzureApiManagementSku.StandardV2,
19 references to Sku
Aspire.Hosting.Azure.ApiManagement (18)
AzureApiManagementExtensions.cs (17)
72
ValidateCapacity(options.
Sku
, options.Capacity);
780
if (builder.Resource.Options.
Sku
== AzureApiManagementSku.Consumption &&
786
if (builder.Resource.Options.
Sku
is AzureApiManagementSku.BasicV2 or AzureApiManagementSku.StandardV2 or AzureApiManagementSku.PremiumV2 &&
794
builder.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.");
1148
if (builder.Resource.Options.
Sku
== AzureApiManagementSku.Consumption)
1434
if (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
}'.");
1482
if (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
}'.");
1532
if (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
)} " +
1617
if (azureResource.Options.
Sku
is AzureApiManagementSku.Consumption or AzureApiManagementSku.BasicV2)
1620
$"API Management SKU '{azureResource.Options.
Sku
}' does not support private endpoints.");
1674
Name = GetProvisioningSku(azureResource.Options.
Sku
),
2784
if (service.Options.
Sku
== AzureApiManagementSku.Consumption)
AzureApiManagementOptions.cs (1)
48
get => _capacity ?? (
Sku
is AzureApiManagementSku.Consumption ? 0 : 1);
Aspire.Hosting.Azure.Tests (1)
AzureApiManagementTests.cs (1)
34
Assert.Equal(AzureApiManagementSku.Developer, apim.Resource.Options.
Sku
);