从 GitHub 下载 Azure Stack Hub 工具Download Azure Stack Hub tools from GitHub

AzureStack-Tools 是托管 PowerShell 模块的 GitHub 存储库,可用于管理资源并将其部署到 Azure Stack Hub。AzureStack-Tools is a GitHub repository that hosts PowerShell modules for managing and deploying resources to Azure Stack Hub. 如果你打算建立 VPN 连接,则可将这些 PowerShell 模块下载到 Azure Stack 开发工具包 (ASDK) 或基于 Windows 的外部客户端。If you're planning to establish VPN connectivity, you can download these PowerShell modules to the Azure Stack Development Kit (ASDK), or to a Windows-based external client.

获取适用于 Azure Stack Hub AzureRM 模块的工具Get tools for Azure Stack Hub AzureRM module

若要获取这些工具,请从 master 分支克隆 GitHub 存储库,或通过在提升的 PowerShell 提示符下运行以下脚本来下载 AzureStack-Tools 文件夹:To get these tools, clone the GitHub repository from the master branch or download the AzureStack-Tools folder by running the following script in an elevated PowerShell prompt:

# Change directory to the root directory.
cd \

# Download the tools archive.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
invoke-webrequest `
  https://github.com/Azure/AzureStack-Tools/archive/master.zip `
  -OutFile master.zip

# Expand the downloaded files.
expand-archive master.zip `
  -DestinationPath . `
  -Force

# Change to the tools directory.
cd AzureStack-Tools-master

若要详细了解如何使用适用于 Azure Stack Hub 的 AzureRM 模块,请参阅安装适用于 Azure Stack Hub 的 PowerShell AzureRM 模块For more information about using the AzureRM module for Azure Stack Hub, see Install PowerShell AzureRM module for Azure Stack Hub

获取适用于 Azure Stack Hub Az(预览版)模块的工具Get tools for Azure Stack Hub Az (preview) module

若要获取这些工具,请从 az 分支克隆 GitHub 存储库,或运行以下脚本来下载 AzureStack-Tools 文件夹:To get these tools, clone the GitHub repository from the az branch or download the AzureStack-Tools folder by running the following script:

# Change directory to the root directory.
cd \

# Download the tools archive.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 
invoke-webrequest `
  https://github.com/Azure/AzureStack-Tools/archive/az.zip `
  -OutFile az.zip

# Expand the downloaded files.
expand-archive az.zip `
  -DestinationPath . `
  -Force

# Change to the tools directory.
cd AzureStack-Tools-az

若要详细了解如何使用适用于 Azure Stack Hub 的 Az 模块,请参阅安装适用于 Azure Stack Hub 的 PowerShell Az 预览版模块For more information about using the Az module for Azure Stack Hub, see Install PowerShell Az preview module for Azure Stack Hub.

模块提供的功能Functionality provided by the modules

AzureStack-Tools 存储库包含支持以下 Azure Stack Hub 功能的 PowerShell 模块:The AzureStack-Tools repository has PowerShell modules that support the following functionalities for Azure Stack Hub:

功能Functionality 说明Description 谁可以使用此模块?Who can use this module?
云功能Cloud capabilities 使用此模块可获取云的云功能。Use this module to get the cloud capabilities of a cloud. 例如,可以获取 API 版本和 Azure 资源管理器资源等云功能。For example, you can get cloud capabilities like API version and Azure Resource Manager resources. 还可以获取 Azure Stack Hub 和 Azure 云的 VM 扩展。You can also get the VM extensions for Azure Stack Hub and Azure clouds. 云操作员和用户Cloud operators and users
Azure Stack Hub 的资源管理器策略Resource Manager policy for Azure Stack Hub 使用此模块可以配置版本和服务可用性与 Azure Stack Hub 相同的 Azure 订阅或 Azure 资源组。Use this module to configure an Azure subscription or an Azure resource group with the same versioning and service availability as Azure Stack Hub. 云操作员和用户Cloud operators and users
注册到 AzureRegister with Azure 使用此模块可将 ASDK 实例注册到 Azure。Use this module to register your ASDK instance with Azure. 注册后,可下载 Azure 市场项,并在 Azure Stack Hub 中使用它们。After registering, you can download Azure Marketplace items use them in Azure Stack Hub. 云操作员Cloud operators
Azure Stack Hub 部署Azure Stack Hub deployment 使用此模块可通过 Azure Stack Hub 虚拟硬盘 (VHD) 映像来准备用于部署和重新部署的 Azure Stack Hub 主计算机。Use this module to prepare the Azure Stack Hub host computer to deploy and redeploy by using the Azure Stack Hub virtual hard disk (VHD) image. 云操作员Cloud operators
连接到 Azure Stack HubConnecting to Azure Stack Hub 使用此模块配置与 Azure Stack Hub 的 VPN 连接。Use this module to configure VPN connectivity to Azure Stack Hub. 云操作员和用户Cloud operators and users
模板验证程序Template validator 使用此模块可以验证是否可将现有或新的模板部署到 Azure Stack Hub。Use this module to verify if an existing or a new template can be deployed to Azure Stack Hub. 云操作员和用户Cloud operators and users

后续步骤Next steps