Skip to content

Conversation

@alexwolfmsft
Copy link
Collaborator

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new quickstart guide for building Azure Developer CLI (azd) extensions. The document provides a comprehensive tutorial covering the extension development lifecycle from scaffolding to testing.

Changes:

  • Added a new tutorial document explaining how to create, build, and test azd extensions
  • Included step-by-step instructions for initializing an extension project using Go
  • Provided code examples demonstrating custom command implementation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

}
```

1. Update the import statment to include `github.com/spf13/cobra` and `fmt`.
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a spelling error in "statment". It should be "statement".

Suggested change
1. Update the import statment to include `github.com/spf13/cobra` and `fmt`.
1. Update the import statement to include `github.com/spf13/cobra` and `fmt`.

Copilot uses AI. Check for mistakes.
}
```

1. Update the import statment to include `github.com/spf13/cobra` and `fmt`.
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code example shows importing packages that aren't listed in the import update instruction. The instruction mentions adding "github.com/spf13/cobra" and "fmt", but the code also uses "github.com/fatih/color" (line 145), "context" (line 140), and "os" (line 146). The instruction should clarify that all necessary imports should be present, or the existing code may already have some of these imports.

Suggested change
1. Update the import statment to include `github.com/spf13/cobra` and `fmt`.
1. Update the import statement to ensure all required packages are included, such as `context`, `fmt`, `os`, `github.com/fatih/color`, and `github.com/spf13/cobra`, if they aren't already present.

Copilot uses AI. Check for mistakes.
```yaml
capabilities:
- custom-commands
description: My sample extension
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description field in the YAML example shows "My sample extension" but the earlier interactive prompt example (line 62) shows "This is a sample extension". These should be consistent for clarity, as readers following the tutorial may expect the values to match.

Suggested change
description: My sample extension
description: This is a sample extension

Copilot uses AI. Check for mistakes.
- `lifecycle-events`: Subscribe to `azd` project and service lifecycle events.
- `mcp-server`: Provide Model Context Protocol (MCP) tools for AI agents.
- `service-target-provider`: Provide custom service deployment targets.
- `framework-service-provider`: Provide custom language frameworks and build systems.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We just added a new metadata capability we could mention here (#6496, #6534)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants