为 Azure Stack Hub 进行开发Develop for Azure Stack Hub

即使没有 Azure Stack Hub 环境的访问权限,也可以立即开始开发应用。You can get started developing apps today, even if you do not have access to an Azure Stack Hub environment. Azure Stack Hub 提供在数据中心运行的 Azure 服务,这意味着你可以使用相同的 Azure 工具和流程在 Azure Stack Hub 上进行开发。Azure Stack Hub delivers Azure services that run in your datacenter, which means you can use the same Azure tools and processes to develop on Azure Stack Hub.

开发注意事项Development considerations

通过一些准备工作并使用以下主题中的指导,可以使用 Azure 来模拟 Azure Stack Hub 环境。With some preparation, and using the guidance in the following topics, you can use Azure to emulate an Azure Stack Hub environment.

  • 在 Azure 中,可以创建可部署到 Azure Stack Hub 的 Azure 资源管理器模板。In Azure, you can create Azure Resource Manager templates that are deployable to Azure Stack Hub. 请参阅模板注意事项,获取有关开发模板的指导,以确保可移植性。See template considerations for guidance on developing templates to ensure portability.
  • Azure 与 Azure Stack Hub 之间的服务可用性和服务版本控制存在差异。There are differences in service availability and service versioning between Azure and Azure Stack Hub. 可以使用 Azure Stack Hub 策略模块来限制 Azure Stack Hub 可用的 Azure 服务可用性和资源类型。You can use the Azure Stack Hub policy module to restrict Azure service availability and resource types to what is available in Azure Stack Hub. 约束服务可确保应用依赖可用于 Azure Stack Hub 的服务。Constraining services ensures that your apps rely on services available to Azure Stack Hub.
  • Azure Stack Hub 快速启动模板是常见的方案示例,演示了如何开发可部署到 Azure 和 Azure Stack Hub 的模板。The Azure Stack Hub quickstart templates are common scenario examples that show how to develop templates deployable to both Azure and Azure Stack Hub.

后续步骤Next steps

有关 Azure Stack 开发的详细信息,请参阅以下文章:For more information about Azure Stack development, see the following articles: