azure-artifacts

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Azure Artifacts Skill

Azure Artifacts 技能指南

This skill provides expert guidance for Azure Artifacts. Covers best practices, decision making, limits & quotas, security, configuration, integrations & coding patterns, and deployment. It combines local quick-reference content with remote documentation fetching capabilities.
本技能提供Azure Artifacts的专业指导,涵盖最佳实践、决策制定、限制与配额、安全性、配置、集成与编码模式以及部署。它结合了本地快速参考内容与远程文档获取能力。

How to Use This Skill

如何使用本技能

IMPORTANT for Agent: Use the Category Index below to locate relevant sections. For categories with line ranges (e.g.,
L35-L120
), use
read_file
with the specified lines. For categories with file links (e.g.,
[security.md](security.md)
), use
read_file
on the linked reference file
IMPORTANT for Agent: If
metadata.generated_at
is more than 3 months old, suggest the user pull the latest version from the repository. If
mcp_microsoftdocs
tools are not available, suggest the user install it: Installation Guide
This skill requires network access to fetch documentation content:
  • Preferred: Use
    mcp_microsoftdocs:microsoft_docs_fetch
    with query string
    from=learn-agent-skill
    . Returns Markdown.
  • Fallback: Use
    fetch_webpage
    with query string
    from=learn-agent-skill&accept=text/markdown
    . Returns Markdown.
Agent 注意事项:使用下方的分类索引定位相关章节。对于带有行号范围的分类(如
L35-L120
),使用
read_file
工具读取指定行内容。对于带有文件链接的分类(如
[security.md](security.md)
),使用
read_file
工具读取链接的参考文件
Agent 注意事项:如果
metadata.generated_at
的时间超过3个月,建议用户从仓库拉取最新版本。如果
mcp_microsoftdocs
工具不可用,建议用户安装该工具:安装指南
本技能需要网络访问权限以获取文档内容:
  • 首选方式:使用
    mcp_microsoftdocs:microsoft_docs_fetch
    工具,携带查询字符串
    from=learn-agent-skill
    ,返回Markdown格式内容。
  • 备选方式:使用
    fetch_webpage
    工具,携带查询字符串
    from=learn-agent-skill&accept=text/markdown
    ,返回Markdown格式内容。

Category Index

分类索引

CategoryLinesDescription
Best PracticesL35-L41Guidance on Azure Artifacts package management best practices, configuring and using upstream sources, and safely restoring packages from external feeds.
Decision MakingL42-L48Guidance on choosing feed scope and planning migrations of package storage, including moving from file shares or MyGet to Azure Artifacts feeds.
Limits & QuotasL49-L56Storage quotas, free allocation, and per-package size/count limits in Azure Artifacts, plus how to monitor, manage, and publish packages within those limits.
SecurityL57-L63Securing Azure Artifacts feeds: configuring permissions, protecting upstream sources from malicious packages, and using npm audit to find and fix vulnerabilities.
ConfigurationL64-L75Configuring Azure Artifacts feeds: views/promotion, retention/deletion, upstream sources, npm/.npmrc and scopes, and .artifactignore for optimizing pipeline artifacts.
Integrations & Coding PatternsL76-L118How to connect build tools and CLIs (Cargo, Maven, Gradle, npm, NuGet, Python, PowerShell, Universal) to Azure Artifacts feeds, publish/restore packages, and use upstream sources.
DeploymentL119-L122Using GitHub Actions to build and push packages (NuGet, npm, etc.) to Azure Artifacts feeds, including workflow setup, authentication, and CI/CD integration.
分类行号描述
最佳实践L35-L41Azure Artifacts包管理最佳实践、配置和使用上游源以及从外部源安全还原包的相关指导。
决策制定L42-L48关于选择源范围以及规划包存储迁移(包括从文件共享或MyGet迁移至Azure Artifacts源)的指导。
限制与配额L49-L56Azure Artifacts中的存储配额、免费分配额度、单包大小/数量限制,以及如何在这些限制内监控、管理和发布包。
安全性L57-L63保护Azure Artifacts源:配置权限、防护上游源免受恶意包侵害,以及使用npm audit查找并修复漏洞。
配置L64-L75配置Azure Artifacts源:视图/晋升、保留/删除、上游源、npm/.npmrc与作用域,以及使用.artifactignore优化流水线制品。
集成与编码模式L76-L118如何将构建工具和CLI(Cargo、Maven、Gradle、npm、NuGet、Python、PowerShell、Universal)连接到Azure Artifacts源,发布/还原包,以及使用上游源。
部署L119-L122使用GitHub Actions构建并推送包(NuGet、npm等)至Azure Artifacts源,包括工作流设置、身份验证和CI/CD集成。

Best Practices

最佳实践

Decision Making

决策制定

Limits & Quotas

限制与配额

Security

安全性

Configuration

配置

Integrations & Coding Patterns

集成与编码模式

TopicURL
Publish Cargo packages from CLI to Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/cargo/cargo-publish?view=azure-devops
Restore Cargo packages from Azure Artifacts feedshttps://learn.microsoft.com/en-us/azure/devops/artifacts/cargo/cargo-restore?view=azure-devops
Consume Cargo crates from Crates.io via Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/cargo/cargo-upstream-source?view=azure-devops
Connect Cargo projects to Azure Artifacts feedshttps://learn.microsoft.com/en-us/azure/devops/artifacts/cargo/project-setup-cargo?view=azure-devops
Publish and download Cargo packages with Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/get-started-cargo?view=azure-devops
Publish and restore Maven packages with Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/get-started-maven?view=azure-devops
Publish and consume npm packages using Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/get-started-npm?view=azure-devops
Publish and download NuGet packages with Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/get-started-nuget?view=azure-devops
Use Google Maven Repository as Azure Artifacts upstreamhttps://learn.microsoft.com/en-us/azure/devops/artifacts/maven/google-maven?view=azure-devops
Add Gradle Plugins repository as Azure Artifacts upstreamhttps://learn.microsoft.com/en-us/azure/devops/artifacts/maven/gradle-plugins?view=azure-devops
Configure Maven to restore packages from Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/maven/install?view=azure-devops
Configure JitPack as an Azure Artifacts upstream sourcehttps://learn.microsoft.com/en-us/azure/devops/artifacts/maven/jitpack-upstream?view=azure-devops
Connect Gradle builds to Azure Artifacts feedshttps://learn.microsoft.com/en-us/azure/devops/artifacts/maven/project-setup-gradle?view=azure-devops
Connect Maven projects to Azure Artifacts feedshttps://learn.microsoft.com/en-us/azure/devops/artifacts/maven/project-setup-maven?view=azure-devops
Publish Maven packages to Azure Artifacts feedshttps://learn.microsoft.com/en-us/azure/devops/artifacts/maven/publish-packages-maven?view=azure-devops
Publish packages with Gradle to Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/maven/publish-with-gradle?view=azure-devops
Consume Maven Central packages via Azure Artifacts upstreamhttps://learn.microsoft.com/en-us/azure/devops/artifacts/maven/upstream-sources?view=azure-devops
Publish npm packages from CLI to Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/npm/publish?view=azure-devops
Restore npm packages from Azure Artifacts via CLIhttps://learn.microsoft.com/en-us/azure/devops/artifacts/npm/restore-npm-packages?view=azure-devops
Use npm registry packages through Azure Artifacts upstreamhttps://learn.microsoft.com/en-us/azure/devops/artifacts/npm/upstream-sources?view=azure-devops
Publish NuGet packages with dotnet CLI to Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/dotnet-exe?view=azure-devops
Connect dotnet CLI projects to Azure Artifacts feedshttps://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/dotnet-setup?view=azure-devops
Install NuGet packages from Azure Artifacts in Visual Studiohttps://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/install-nuget-packages-with-visual-studio?view=azure-devops
Connect NuGet CLI to Azure Artifacts feeds securelyhttps://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/nuget-exe?view=azure-devops
Publish Azure Artifacts packages to NuGet.orghttps://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/publish-to-nuget-org?view=azure-devops
Publish NuGet packages to Azure Artifacts with NuGet CLIhttps://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/publish?view=azure-devops
Restore NuGet packages with dotnet CLI from Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/restore-nuget-packages-dotnet?view=azure-devops
Restore NuGet packages with NuGet CLI from Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/restore-nuget-packages-nuget-exe?view=azure-devops
Consume NuGet Gallery packages via Azure Artifacts upstreamhttps://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/upstream-sources?view=azure-devops
Connect Python projects to Azure Artifacts feedshttps://learn.microsoft.com/en-us/azure/devops/artifacts/python/project-setup-python?view=azure-devops
Download Universal Packages from Azure Artifacts feedshttps://learn.microsoft.com/en-us/azure/devops/artifacts/quickstarts/download-universal-packages?view=azure-devops
Install Python packages from Azure Artifacts via CLIhttps://learn.microsoft.com/en-us/azure/devops/artifacts/quickstarts/install-python-packages?view=azure-devops
Publish Python packages via CLI to Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/quickstarts/python-cli?view=azure-devops
Publish and download Python packages with Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/quickstarts/python-packages?view=azure-devops
Debug with Azure Artifacts symbols in Visual Studiohttps://learn.microsoft.com/en-us/azure/devops/artifacts/symbols/debug-with-symbols-visual-studio?view=azure-devops
Debug with Azure Artifacts symbols using WinDbghttps://learn.microsoft.com/en-us/azure/devops/artifacts/symbols/debug-with-symbols-windbg?view=azure-devops
Use PowerShell Gallery as an Azure Artifacts upstream sourcehttps://learn.microsoft.com/en-us/azure/devops/artifacts/tutorials/powershell-upstream-source?view=azure-devops
Use Azure Artifacts feed as a private PowerShell repositoryhttps://learn.microsoft.com/en-us/azure/devops/artifacts/tutorials/private-powershell-library?view=azure-devops
Connect and configure Universal Packages with Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/universal-packages/project-setup-universal-packages?view=azure-devops
主题URL
从CLI将Cargo包发布到Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/cargo/cargo-publish?view=azure-devops
从Azure Artifacts源还原Cargo包https://learn.microsoft.com/en-us/azure/devops/artifacts/cargo/cargo-restore?view=azure-devops
通过Azure Artifacts使用Crates.io的Cargo包https://learn.microsoft.com/en-us/azure/devops/artifacts/cargo/cargo-upstream-source?view=azure-devops
将Cargo项目连接到Azure Artifacts源https://learn.microsoft.com/en-us/azure/devops/artifacts/cargo/project-setup-cargo?view=azure-devops
使用Azure Artifacts发布和下载Cargo包https://learn.microsoft.com/en-us/azure/devops/artifacts/get-started-cargo?view=azure-devops
使用Azure Artifacts发布和还原Maven包https://learn.microsoft.com/en-us/azure/devops/artifacts/get-started-maven?view=azure-devops
使用Azure Artifacts发布和使用npm包https://learn.microsoft.com/en-us/azure/devops/artifacts/get-started-npm?view=azure-devops
使用Azure Artifacts发布和下载NuGet包https://learn.microsoft.com/en-us/azure/devops/artifacts/get-started-nuget?view=azure-devops
将Google Maven仓库用作Azure Artifacts上游源https://learn.microsoft.com/en-us/azure/devops/artifacts/maven/google-maven?view=azure-devops
添加Gradle插件仓库作为Azure Artifacts上游源https://learn.microsoft.com/en-us/azure/devops/artifacts/maven/gradle-plugins?view=azure-devops
配置Maven以从Azure Artifacts还原包https://learn.microsoft.com/en-us/azure/devops/artifacts/maven/install?view=azure-devops
将JitPack配置为Azure Artifacts上游源https://learn.microsoft.com/en-us/azure/devops/artifacts/maven/jitpack-upstream?view=azure-devops
将Gradle构建连接到Azure Artifacts源https://learn.microsoft.com/en-us/azure/devops/artifacts/maven/project-setup-gradle?view=azure-devops
将Maven项目连接到Azure Artifacts源https://learn.microsoft.com/en-us/azure/devops/artifacts/maven/project-setup-maven?view=azure-devops
将Maven包发布到Azure Artifacts源https://learn.microsoft.com/en-us/azure/devops/artifacts/maven/publish-packages-maven?view=azure-devops
使用Gradle将包发布到Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/maven/publish-with-gradle?view=azure-devops
通过Azure Artifacts上游源使用Maven Central包https://learn.microsoft.com/en-us/azure/devops/artifacts/maven/upstream-sources?view=azure-devops
从CLI将npm包发布到Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/npm/publish?view=azure-devops
通过CLI从Azure Artifacts还原npm包https://learn.microsoft.com/en-us/azure/devops/artifacts/npm/restore-npm-packages?view=azure-devops
通过Azure Artifacts上游源使用npm registry包https://learn.microsoft.com/en-us/azure/devops/artifacts/npm/upstream-sources?view=azure-devops
使用dotnet CLI将NuGet包发布到Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/dotnet-exe?view=azure-devops
将dotnet CLI项目连接到Azure Artifacts源https://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/dotnet-setup?view=azure-devops
在Visual Studio中从Azure Artifacts安装NuGet包https://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/install-nuget-packages-with-visual-studio?view=azure-devops
安全地将NuGet CLI连接到Azure Artifacts源https://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/nuget-exe?view=azure-devops
将Azure Artifacts包发布到NuGet.orghttps://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/publish-to-nuget-org?view=azure-devops
使用NuGet CLI将NuGet包发布到Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/publish?view=azure-devops
使用dotnet CLI从Azure Artifacts还原NuGet包https://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/restore-nuget-packages-dotnet?view=azure-devops
使用NuGet CLI从Azure Artifacts还原NuGet包https://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/restore-nuget-packages-nuget-exe?view=azure-devops
通过Azure Artifacts上游源使用NuGet Gallery包https://learn.microsoft.com/en-us/azure/devops/artifacts/nuget/upstream-sources?view=azure-devops
将Python项目连接到Azure Artifacts源https://learn.microsoft.com/en-us/azure/devops/artifacts/python/project-setup-python?view=azure-devops
从Azure Artifacts源下载Universal包https://learn.microsoft.com/en-us/azure/devops/artifacts/quickstarts/download-universal-packages?view=azure-devops
通过CLI从Azure Artifacts安装Python包https://learn.microsoft.com/en-us/azure/devops/artifacts/quickstarts/install-python-packages?view=azure-devops
通过CLI将Python包发布到Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/quickstarts/python-cli?view=azure-devops
使用Azure Artifacts发布和下载Python包https://learn.microsoft.com/en-us/azure/devops/artifacts/quickstarts/python-packages?view=azure-devops
在Visual Studio中使用Azure Artifacts符号进行调试https://learn.microsoft.com/en-us/azure/devops/artifacts/symbols/debug-with-symbols-visual-studio?view=azure-devops
使用WinDbg和Azure Artifacts符号进行调试https://learn.microsoft.com/en-us/azure/devops/artifacts/symbols/debug-with-symbols-windbg?view=azure-devops
将PowerShell Gallery用作Azure Artifacts上游源https://learn.microsoft.com/en-us/azure/devops/artifacts/tutorials/powershell-upstream-source?view=azure-devops
将Azure Artifacts源用作私有PowerShell仓库https://learn.microsoft.com/en-us/azure/devops/artifacts/tutorials/private-powershell-library?view=azure-devops
连接并配置Azure Artifacts的Universal包https://learn.microsoft.com/en-us/azure/devops/artifacts/universal-packages/project-setup-universal-packages?view=azure-devops

Deployment

部署

TopicURL
Use GitHub Actions workflows to push packages to Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/quickstarts/github-actions?view=azure-devops
主题URL
使用GitHub Actions工作流将包推送到Azure Artifactshttps://learn.microsoft.com/en-us/azure/devops/artifacts/quickstarts/github-actions?view=azure-devops