Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 17, 2025

Overview

This PR adds comprehensive SDK emitter configurations to the Compute TypeSpec project (specification/compute/Compute.Management) to enable SDK generation for JavaScript, .NET, Java, Python, and Go languages for API version 2025-04-01.

Changes Made

Modified Files

  • specification/compute/Compute.Management/tspconfig.yaml

Configuration Details

Added the following to tspconfig.yaml following the official ARM widget template pattern:

  1. Parameters Section

    • Added service-dir parameter with default value sdk/compute
  2. SDK Emitter Configurations for all 5 languages:

    • JavaScript (@azure-tools/typespec-ts): Package @azure/arm-compute
    • .NET (@azure-tools/typespec-csharp): Namespace Azure.ResourceManager.Compute
    • Java (@azure-tools/typespec-java): Package azure-resourcemanager-compute, namespace com.azure.resourcemanager.compute
    • Python (@azure-tools/typespec-python): Package azure-mgmt-compute, namespace azure.mgmt.compute
    • Go (@azure-tools/typespec-go): Package armcompute, module path in github.com/Azure/azure-sdk-for-go
  3. Autorest Enhancements

    • Added use-read-only-status-schema: true flag for improved schema generation

Each emitter is configured with:

  • Appropriate output directories using standard placeholder variables
  • Azure flavor for Azure-specific code generation patterns
  • Language-specific options (test generation, sample generation, extensible enums, etc.)
  • Proper namespacing following Azure SDK conventions

Context

This configuration enables the SDK generation pipeline to produce language-specific SDKs from the Compute TypeSpec project for the 2025-04-01 API version. The configuration follows the established patterns used in other Azure ARM services and ensures consistency across all SDK languages.

Related

Testing

Configuration validated against the official ARM widget template at specification/widget/resource-manager/Microsoft.Widget/Widget/tspconfig.yaml to ensure consistency with Azure SDK standards.

Original prompt

This section details on the original issue you should resolve

<issue_title>[TypeSpec] Generate SDK for TypeSpec project https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute</issue_title>
<issue_description>## SDK generate request for TypeSpec project https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute

Request to generate SDK by Copilot. Do not release SDK
SDK will be released later by service owner.

Release Plan: 1961
TypeSpec project path: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute
API spec pull request link: #37621
SDK release type: Stable
API spec version: 2025-04-01
Spec Type: TypeSpec
Language: JavaScript,.NET,Java,Python,Go
Release plan work item ID: 29105

Contacts:
haagha

Comments:
Generate SDK using Github copilot

Generate SDK for the TypeSpec project and update the generated SDK details in the release plan using release plan work item. Generate a summary and update it back in the linked GitHub issue once SDK pull requests are generated.
</issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #38248


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@github-actions
Copy link

github-actions bot commented Oct 17, 2025

Next Steps to Merge

⌛ Please wait. Next steps to merge this PR are being evaluated by automation. ⌛

Comment generated by summarize-checks workflow run.

Copilot AI changed the title [WIP] Generate SDK for TypeSpec project Add SDK emitter configurations to Compute TypeSpec project for multi-language SDK generation Oct 17, 2025
Copilot AI requested a review from azure-sdk October 17, 2025 17:02
Copilot finished work on behalf of azure-sdk October 17, 2025 17:02
@maririos maririos closed this Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TypeSpec] Generate SDK for TypeSpec project https://github.com/Azure/azure-rest-api-specs/tree/main/specification/compute

3 participants