42 writes to Sku
Aspire.Hosting.Azure.Tests (40)
AzureApiManagementTests.cs (40)
99
Sku
= sku,
115
Sku
= AzureApiManagementSku.Consumption,
488
Sku
= AzureApiManagementSku.StandardV2,
550
Sku
= AzureApiManagementSku.Consumption,
571
Sku
= AzureApiManagementSku.Developer,
594
Sku
= AzureApiManagementSku.PremiumV2,
614
Sku
= AzureApiManagementSku.StandardV2,
641
Sku
= AzureApiManagementSku.PremiumV2,
671
Sku
= sku,
700
Sku
= injection ? AzureApiManagementSku.PremiumV2 : AzureApiManagementSku.StandardV2,
733
Sku
= injection ? AzureApiManagementSku.PremiumV2 : AzureApiManagementSku.StandardV2,
763
Sku
= AzureApiManagementSku.StandardV2,
785
Sku
= AzureApiManagementSku.StandardV2,
803
Sku
= AzureApiManagementSku.StandardV2,
809
Sku
= AzureApiManagementSku.StandardV2,
832
Sku
= AzureApiManagementSku.StandardV2,
853
Sku
= AzureApiManagementSku.StandardV2,
1248
Sku
= AzureApiManagementSku.Premium,
1275
Sku
= AzureApiManagementSku.StandardV2,
1475
Sku
= AzureApiManagementSku.Consumption,
1503
Sku
= sku,
1532
Sku
= sku,
1554
Sku
= sku,
1577
Sku
= AzureApiManagementSku.Developer,
1633
Sku
= AzureApiManagementSku.Premium,
1678
Sku
= AzureApiManagementSku.Premium,
1702
Sku
= AzureApiManagementSku.StandardV2,
1731
Sku
= AzureApiManagementSku.Consumption,
1923
Sku
= AzureApiManagementSku.Developer,
2254
Sku
= AzureApiManagementSku.Consumption,
2303
Sku
= AzureApiManagementSku.Developer,
2361
Sku
= AzureApiManagementSku.Developer,
2396
Sku
= AzureApiManagementSku.Developer,
2457
Sku
= AzureApiManagementSku.Developer,
2517
Sku
= AzureApiManagementSku.Developer,
2627
Sku
= AzureApiManagementSku.Developer,
2650
Sku
= AzureApiManagementSku.Developer,
2679
Sku
= AzureApiManagementSku.Developer,
2708
Sku
= AzureApiManagementSku.Developer,
2737
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)
35
Assert.Equal(AzureApiManagementSku.Developer, apim.Resource.Options.
Sku
);