azure-lab-services

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Azure Lab Services Skill

Azure Lab Services Skill

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

How to Use This Skill

如何使用本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
工具不可用,建议用户安装它:安装指南
本Skill需要网络访问权限来获取文档内容:
  • 首选方式:使用
    mcp_microsoftdocs:microsoft_docs_fetch
    ,并携带查询字符串
    from=learn-agent-skill
    ,返回Markdown格式内容。
  • 备选方式:使用
    fetch_webpage
    ,并携带查询字符串
    from=learn-agent-skill&accept=text/markdown
    ,返回Markdown格式内容。

Category Index

类别索引

CategoryLinesDescription
TroubleshootingL37-L44Diagnosing and fixing VM access, connectivity, deployment, and lab-creation issues in Azure Lab Services, including when to redeploy or reimage VMs.
Best PracticesL45-L53Governance and setup guidance for lab plans, custom images, nested virtualization, Linux graphical RDP, and preparing optimized Windows template VMs in Azure Lab Services
Decision MakingL54-L65Guidance on when and how to use Azure Lab Services: choosing lab types, planning migrations (physical or to other services), cost estimation, GPU sizing, and running training or hackathon scenarios.
Architecture & Design PatternsL66-L72Core Azure Lab Services architecture, supported networking topologies, and design patterns for building reliable, resilient lab environments and lab plans
Limits & QuotasL73-L80VM capacity and core quotas for labs, how to view usage, request quota increases, and timelines for automatic VM deletion and cleanup.
SecurityL81-L95RBAC roles, lab creator/owner assignment, Azure Policy for compliance and VM size limits, firewall and public IP setup, and educator/student VM password management.
ConfigurationL96-L126Configuring Azure Lab Services: lab plans, regions, images, networking, VM templates, schedules (start/stop/shutdown), capacity, GPU/nested virtualization, and user/educator access.
Integrations & Coding PatternsL127-L140Integrating Lab Services with Canvas and Teams, automating lab creation via Bicep/PowerShell/Python, connecting labs to VNets, and remote access to Linux VMs with X2Go.
DeploymentL141-L150Creating and importing Windows/Linux lab VM images (from Azure VMs, physical labs, or compute galleries), rapidly setting up/publishing labs, and migrating lab accounts to lab plans.
类别行范围描述
故障排除L37-L44诊断并修复Azure Lab Services中的VM访问、连接、部署和实验室创建问题,包括何时重新部署或重新映像VM。
最佳实践L45-L53Azure Lab Services中实验室计划、自定义映像、嵌套虚拟化、Linux图形化RDP以及优化Windows模板VM准备的治理和设置指南
决策制定L54-L65关于何时以及如何使用Azure Lab Services的指南:选择实验室类型、规划迁移(从物理环境或其他服务迁移)、成本估算、GPU规格选择,以及运行培训或黑客松场景。
架构与设计模式L66-L72Azure Lab Services的核心架构、支持的网络拓扑,以及构建可靠、弹性实验室环境和实验室计划的设计模式
限制与配额L73-L80实验室的VM容量和核心配额、查看使用情况的方法、申请配额增加的流程,以及VM自动删除和清理的时间线。
安全L81-L95RBAC角色、实验室创建者/所有者分配、用于合规性和VM大小限制的Azure Policy、防火墙和公网IP设置,以及教师/学生VM密码管理。
配置L96-L126配置Azure Lab Services:实验室计划、区域、映像、网络、VM模板、调度(启动/停止/关机)、容量、GPU/嵌套虚拟化,以及用户/教师访问权限。
集成与编码模式L127-L140将Lab Services与Canvas和Teams集成、通过Bicep/PowerShell/Python自动化创建实验室、将实验室连接到VNet,以及使用X2Go远程访问Linux VM。
部署L141-L150创建和导入Windows/Linux实验室VM映像(来自Azure VM、物理实验室或计算库)、快速设置/发布实验室,以及将实验室账户迁移到实验室计划。

Troubleshooting

故障排除

TopicURL
Troubleshoot Azure Lab Services VMs by redeploying or reimaginghttps://learn.microsoft.com/en-us/azure/lab-services/how-to-reset-and-redeploy-vm
Troubleshoot access problems for Azure Lab Services VMshttps://learn.microsoft.com/en-us/azure/lab-services/troubleshoot-access-lab-vm
Troubleshoot connectivity issues in Azure Lab Serviceshttps://learn.microsoft.com/en-us/azure/lab-services/troubleshoot-connect-lab-vm
Troubleshoot Azure Lab Services lab creation issueshttps://learn.microsoft.com/en-us/azure/lab-services/troubleshoot-lab-creation

Best Practices

最佳实践

Decision Making

决策制定

Architecture & Design Patterns

架构与设计模式

Limits & Quotas

限制与配额

Security

安全

TopicURL
Assign Lab Creator role in Azure Lab Serviceshttps://learn.microsoft.com/en-us/azure/lab-services/add-lab-creator
Enforce Azure Lab Services compliance with Azure Policyhttps://learn.microsoft.com/en-us/azure/lab-services/azure-polices-for-lab-services
Use Azure RBAC roles with Azure Lab Serviceshttps://learn.microsoft.com/en-us/azure/lab-services/concept-lab-services-role-based-access-control
Map role assignments from lab accounts to lab planshttps://learn.microsoft.com/en-us/azure/lab-services/concept-migrate-from-lab-accounts-roles
Assign Lab Creator role for Azure Lab Services accountshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-add-lab-creator
Add additional lab owners in Azure Lab Serviceshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-add-user-lab-owner
Determine lab VM public IPs for firewall configurationhttps://learn.microsoft.com/en-us/azure/lab-services/how-to-configure-firewall-settings
Configure firewall rules for Azure Lab Services lab VMshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-configure-firewall-settings-1
Set and reset lab VM passwords as an educatorhttps://learn.microsoft.com/en-us/azure/lab-services/how-to-set-virtual-machine-passwords
Students resetting passwords for Azure Lab Services VMshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-set-virtual-machine-passwords-student
Restrict Azure Lab VM sizes using Azure Policyhttps://learn.microsoft.com/en-us/azure/lab-services/how-to-use-restrict-allowed-virtual-machine-sku-sizes-policy
主题链接
在Azure Lab Services中分配实验室创建者角色https://learn.microsoft.com/en-us/azure/lab-services/add-lab-creator
使用Azure Policy强制Azure Lab Services合规性https://learn.microsoft.com/en-us/azure/lab-services/azure-polices-for-lab-services
在Azure Lab Services中使用Azure RBAC角色https://learn.microsoft.com/en-us/azure/lab-services/concept-lab-services-role-based-access-control
将实验室账户的角色分配映射到实验室计划https://learn.microsoft.com/en-us/azure/lab-services/concept-migrate-from-lab-accounts-roles
为Azure Lab Services账户分配实验室创建者角色https://learn.microsoft.com/en-us/azure/lab-services/how-to-add-lab-creator
在Azure Lab Services中添加额外的实验室所有者https://learn.microsoft.com/en-us/azure/lab-services/how-to-add-user-lab-owner
确定实验室VM的公网IP以配置防火墙https://learn.microsoft.com/en-us/azure/lab-services/how-to-configure-firewall-settings
为Azure Lab Services实验室VM配置防火墙规则https://learn.microsoft.com/en-us/azure/lab-services/how-to-configure-firewall-settings-1
以教师身份设置和重置实验室VM密码https://learn.microsoft.com/en-us/azure/lab-services/how-to-set-virtual-machine-passwords
学生重置Azure Lab Services VM密码https://learn.microsoft.com/en-us/azure/lab-services/how-to-set-virtual-machine-passwords-student
使用Azure Policy限制Azure Lab VM规格https://learn.microsoft.com/en-us/azure/lab-services/how-to-use-restrict-allowed-virtual-machine-sku-sizes-policy

Configuration

配置

TopicURL
Allow lab creators to choose lab locations in Azure Lab Serviceshttps://learn.microsoft.com/en-us/azure/lab-services/allow-lab-creator-pick-lab-location
Configure allowed regions for Azure Lab Services labshttps://learn.microsoft.com/en-us/azure/lab-services/create-and-configure-labs-admin
Attach or detach Azure compute galleries to lab planshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-attach-detach-shared-image-gallery
Attach or detach Shared Image Gallery to Azure Lab Services accountshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-attach-detach-shared-image-gallery-1
Configure auto-shutdown policies for Azure Lab planshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-configure-auto-shutdown-lab-plans
Configure automatic VM shutdown for Azure Lab Services accountshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-configure-lab-accounts
Connect lab plans to virtual networks with VNET injectionhttps://learn.microsoft.com/en-us/azure/lab-services/how-to-connect-vnet-injection
Create Azure Lab Services labs with shared resourceshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-create-a-lab-with-shared-resource-1
Define lab plans with Bicep or ARM templateshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-create-lab-plan-bicep
Create a lab plan using Azure PowerShellhttps://learn.microsoft.com/en-us/azure/lab-services/how-to-create-lab-plan-powershell
Programmatically create lab plans using Python SDKhttps://learn.microsoft.com/en-us/azure/lab-services/how-to-create-lab-plan-python
Create and manage Azure Lab Services VM templateshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-create-manage-template
Configure automatic start/stop schedules for lab VMshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-create-schedules
Enable nested virtualization in Azure Lab Services templateshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-enable-nested-virtualization-template-vm-using-script
Configure automatic shutdown on user disconnect for labshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-enable-shutdown-disconnect
Create, view, and delete Azure Lab Services lab planshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-manage-lab-plans
Configure and manage Azure Lab Services users and usage hourshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-manage-lab-users
Manage Azure Lab Services VM pool capacity and stateshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-manage-vm-pool
Set up GPU-based labs in Azure Lab Serviceshttps://learn.microsoft.com/en-us/azure/lab-services/how-to-setup-lab-gpu-1
Configure Windows lab VMs to prevent OS-level shutdownhttps://learn.microsoft.com/en-us/azure/lab-services/how-to-windows-shutdown
Allow educators to access student VMs in Azure labshttps://learn.microsoft.com/en-us/azure/lab-services/instructor-access-virtual-machines
Configure support contact information for Azure lab accountshttps://learn.microsoft.com/en-us/azure/lab-services/lab-account-owner-support-information
Quickly configure a lab plan for your schoolhttps://learn.microsoft.com/en-us/azure/lab-services/lab-plan-setup-guide
Azure Policy built-in definitions for Azure Lab Serviceshttps://learn.microsoft.com/en-us/azure/lab-services/policy-reference
Configure allowed Azure Marketplace images for labshttps://learn.microsoft.com/en-us/azure/lab-services/specify-marketplace-images
Specify allowed Marketplace images for Azure Lab Services labshttps://learn.microsoft.com/en-us/azure/lab-services/specify-marketplace-images-1
Configure advanced networking for Azure Lab Serviceshttps://learn.microsoft.com/en-us/azure/lab-services/tutorial-create-lab-with-advanced-networking
主题链接
允许实验室创建者选择Azure Lab Services的实验室位置https://learn.microsoft.com/en-us/azure/lab-services/allow-lab-creator-pick-lab-location
配置Azure Lab Services实验室的允许区域https://learn.microsoft.com/en-us/azure/lab-services/create-and-configure-labs-admin
将Azure计算库附加到或分离出实验室计划https://learn.microsoft.com/en-us/azure/lab-services/how-to-attach-detach-shared-image-gallery
将共享映像库附加到或分离出Azure Lab Services账户https://learn.microsoft.com/en-us/azure/lab-services/how-to-attach-detach-shared-image-gallery-1
配置Azure实验室计划的自动关机策略https://learn.microsoft.com/en-us/azure/lab-services/how-to-configure-auto-shutdown-lab-plans
配置Azure Lab Services账户的VM自动关机https://learn.microsoft.com/en-us/azure/lab-services/how-to-configure-lab-accounts
通过VNET注入将实验室计划连接到虚拟网络https://learn.microsoft.com/en-us/azure/lab-services/how-to-connect-vnet-injection
使用共享资源创建Azure Lab Services实验室https://learn.microsoft.com/en-us/azure/lab-services/how-to-create-a-lab-with-shared-resource-1
使用Bicep或ARM模板定义实验室计划https://learn.microsoft.com/en-us/azure/lab-services/how-to-create-lab-plan-bicep
使用Azure PowerShell创建实验室计划https://learn.microsoft.com/en-us/azure/lab-services/how-to-create-lab-plan-powershell
使用Python SDK以编程方式创建实验室计划https://learn.microsoft.com/en-us/azure/lab-services/how-to-create-lab-plan-python
创建和管理Azure Lab Services VM模板https://learn.microsoft.com/en-us/azure/lab-services/how-to-create-manage-template
为实验室VM配置自动启动/停止调度https://learn.microsoft.com/en-us/azure/lab-services/how-to-create-schedules
在Azure Lab Services模板中启用嵌套虚拟化https://learn.microsoft.com/en-us/azure/lab-services/how-to-enable-nested-virtualization-template-vm-using-script
配置实验室的用户断开连接时自动关机https://learn.microsoft.com/en-us/azure/lab-services/how-to-enable-shutdown-disconnect
创建、查看和删除Azure Lab Services实验室计划https://learn.microsoft.com/en-us/azure/lab-services/how-to-manage-lab-plans
配置和管理Azure Lab Services用户及使用时长https://learn.microsoft.com/en-us/azure/lab-services/how-to-manage-lab-users
管理Azure Lab Services VM池容量和状态https://learn.microsoft.com/en-us/azure/lab-services/how-to-manage-vm-pool
在Azure Lab Services中设置基于GPU的实验室https://learn.microsoft.com/en-us/azure/lab-services/how-to-setup-lab-gpu-1
配置Windows实验室VM以防止系统级关机https://learn.microsoft.com/en-us/azure/lab-services/how-to-windows-shutdown
允许教师访问Azure实验室中的学生VMhttps://learn.microsoft.com/en-us/azure/lab-services/instructor-access-virtual-machines
配置Azure实验室账户的支持联系信息https://learn.microsoft.com/en-us/azure/lab-services/lab-account-owner-support-information
为学校快速配置实验室计划https://learn.microsoft.com/en-us/azure/lab-services/lab-plan-setup-guide
Azure Lab Services的Azure Policy内置定义https://learn.microsoft.com/en-us/azure/lab-services/policy-reference
配置实验室允许使用的Azure Marketplace映像https://learn.microsoft.com/en-us/azure/lab-services/specify-marketplace-images
指定Azure Lab Services实验室允许使用的Marketplace映像https://learn.microsoft.com/en-us/azure/lab-services/specify-marketplace-images-1
为Azure Lab Services配置高级网络https://learn.microsoft.com/en-us/azure/lab-services/tutorial-create-lab-with-advanced-networking

Integrations & Coding Patterns

集成与编码模式

Deployment

部署