Prefer Microsoft Learn MCP tools when they are available. Otherwise, use the Learn CLI instead of
relying on training data for questions about Microsoft technologies. The CLI retrieves official
Microsoft Learn documentation and code samples without requiring an MCP client.
npx @microsoft/learn-cli@latest search "<query>" --json
npx @microsoft/learn-cli@latest fetch "<url>"
npx @microsoft/learn-cli@latest code-search "<query>" --language <language> --json
Do not use this skill for unrelated programming concepts, business logic, or non-Microsoft products.
when relevant:
```sh
npx @microsoft/learn-cli@latest search "Azure Functions Python v2 timeout configuration" --json
```
is insufficient or the user needs a complete tutorial, configuration reference, or API page:
```sh
npx @microsoft/learn-cli@latest fetch "
```
```sh
npx @microsoft/learn-cli@latest fetch "
npx @microsoft/learn-cli@latest fetch "
```
Use code search before producing or fixing code that depends on a Microsoft SDK or API:
npx @microsoft/learn-cli@latest code-search "upload blob with managed identity" --language <language> --json
Use search for API signatures, package names, configuration, or troubleshooting guidance. Usefetch when the full reference page is needed. For complex coding tasks, combine documentation
search with code search rather than treating a snippet as the complete specification.
If a command fails, report the failure clearly. Do not claim that current Microsoft documentation
was checked when retrieval did not succeed.