Skip to content

Commit d0e1344

Browse files
Peter HaugeCopilot
andcommitted
fix: remove StandardV2 from workspace-supported SKUs
StandardV2 does not support workspaces (Premium tier only). Reverts the StandardV2 portion of #128 that was missed in #129. Closes #135 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4806cd4 commit d0e1344

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/models/resource-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export enum ResourceType {
4141
GraphQLResolverPolicy = 'GraphQLResolverPolicy',
4242
/** MCP (Model Context Protocol) server configuration per API. Singleton per API. */
4343
McpServer = 'McpServer',
44-
/** Workspace container (Premium and all V2 SKUs). */
44+
/** Workspace container (Premium/PremiumV2 only). */
4545
Workspace = 'Workspace',
4646
}
4747

tests/integration/all-resource-types/Compare-ApimInstance.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ try {
758758
}
759759
}
760760
catch {
761-
Write-Host " ⚠️ Workspaces not available (requires Premium or V2 SKU): $_" -ForegroundColor Yellow
761+
Write-Host " ⚠️ Workspaces not available (requires Premium/PremiumV2): $_" -ForegroundColor Yellow
762762
}
763763

764764
# ── Summary ─────────────────────────────────────────────────────────────

tests/integration/all-resource-types/bicep/source-apim.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ param logAnalyticsName string = 'bvt-${uniqueString(resourceGroup().id)}-src-law
4949
var isClassicSku = skuName == 'Developer' || skuName == 'Premium' || skuName == 'Standard'
5050
var apimSkuCapacity = isClassicSku ? 1 : 1
5151
var supportsSelfHostedGateway = skuName == 'Developer' || skuName == 'Premium'
52-
var supportsWorkspaces = skuName == 'Premium' || skuName == 'StandardV2' || skuName == 'PremiumV2'
52+
var supportsWorkspaces = skuName == 'Premium' || skuName == 'PremiumV2'
5353

5454
// Minimal but valid OpenAPI 3.0 spec
5555
var openApiSpec = '''

tests/integration/all-resource-types/expected-structure.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "1.0.0",
55
"skuVariants": {
66
"note": "Some resources only exist on certain SKUs",
7-
"workspaces": ["Premium", "StandardV2", "PremiumV2"],
7+
"workspaces": ["Premium", "PremiumV2"],
88
"selfHostedGateways": ["Developer", "Premium"]
99
},
1010
"serviceLevelArtifacts": {
@@ -633,9 +633,9 @@
633633
}
634634
},
635635
"workspaces": {
636-
"note": "Workspaces exist on Premium and StandardV2/PremiumV2 (BasicV2 blocked by MethodNotAllowedInPricingTier as of June 2026)",
636+
"note": "Workspaces only available on Premium/PremiumV2 (StandardV2 and BasicV2 blocked by MethodNotAllowedInPricingTier as of June 2026)",
637637
"skuDependent": true,
638-
"skuFilter": ["Premium", "StandardV2", "PremiumV2"],
638+
"skuFilter": ["Premium", "PremiumV2"],
639639
"expected": [
640640
{
641641
"name": "src-workspace",

0 commit comments

Comments
 (0)