diff --git a/docs/reference/configuration.md b/docs/reference/configuration.md index ba2405d..0db225e 100644 --- a/docs/reference/configuration.md +++ b/docs/reference/configuration.md @@ -39,7 +39,7 @@ Available on all commands (`extract`, `publish`, `init`): | `--cloud ` | Azure cloud environment | `public` | | `--log-level ` | Log verbosity: `debug`, `info`, `warn`, `error` | `info` | | `--format ` | Output format | `text` | -| `--api-version ` | APIM REST API version | `2024-05-01` | +| `--api-version ` | APIM REST API version | `2025-09-01-preview` | ### `apiops extract` Flags @@ -86,7 +86,7 @@ Available on all commands (`extract`, `publish`, `init`): | `AZURE_CLIENT_ID` | all | Service principal client ID for authentication | | `AZURE_CLIENT_SECRET` | all | Service principal client secret for authentication | | `AZURE_TENANT_ID` | all | Microsoft Entra ID (Azure AD) tenant ID | -| `AZURE_API_VERSION` | extract, publish | APIM REST API version (default: `2024-05-01`) | +| `AZURE_API_VERSION` | extract, publish | APIM REST API version (default: `2025-09-01-preview`) | | `COMMIT_ID` | publish | Git commit SHA for incremental publish (alternative to `--commit-id`) | ### Authentication Environment Variables @@ -149,7 +149,7 @@ backends: | Azure cloud | `public` | `--cloud` | | Log level | `info` | `--log-level` | | Output format | `text` | `--format` | -| API version | `2024-05-01` | `--api-version` or `AZURE_API_VERSION` | +| API version | `2025-09-01-preview` | `--api-version` or `AZURE_API_VERSION` | | Transitive deps | enabled | `--no-transitive` | | Dry run | disabled | `--dry-run` | | Delete unmatched | disabled | `--delete-unmatched` | diff --git a/src/cli/extract-command.ts b/src/cli/extract-command.ts index 3c086e9..41576ba 100644 --- a/src/cli/extract-command.ts +++ b/src/cli/extract-command.ts @@ -77,9 +77,9 @@ async function executeExtract( } // Build service context - // Default to a recent preview API version so newer resource types (e.g. - // MCP-typed APIs) are returned by ARM list endpoints. Older versions - // (e.g. 2024-05-01) silently omit MCP APIs from /apis. + // Default to 2025-09-01-preview so newer resource types (e.g. MCP-typed + // APIs) are returned by ARM list endpoints. Older versions (e.g. 2024-05-01) + // can silently omit MCP APIs from /apis. const apiVersion = globalOpts.apiVersion ?? process.env.AZURE_API_VERSION ?? '2025-09-01-preview'; const cloudName = globalOpts.cloud ?? 'public'; const cloudConfig = getCloudConfig(cloudName); diff --git a/src/cli/publish-command.ts b/src/cli/publish-command.ts index 3f8431f..c650bf6 100644 --- a/src/cli/publish-command.ts +++ b/src/cli/publish-command.ts @@ -89,9 +89,9 @@ async function executePublish( } // Build service context - // Default to a recent preview API version so newer resource types (e.g. - // MCP-typed APIs) are accepted by ARM. Older versions (e.g. 2024-05-01) - // reject MCP API payloads. + // Default to 2025-09-01-preview so newer resource types (e.g. MCP-typed + // APIs) are accepted by ARM. Older versions (e.g. 2024-05-01) can reject + // MCP API payloads. const apiVersion = globalOpts.apiVersion ?? process.env.AZURE_API_VERSION ?? '2025-09-01-preview'; const cloudName = globalOpts.cloud ?? 'public';