安装 ASDKInstall the ASDK

准备 Azure Stack 开发工具包 (ASDK) 主机后,可以使用本文中的以下步骤将 ASDK 部署到 CloudBuilder.vhdx 映像中。After preparing the ASDK host computer, the Azure Stack Development Kit (ASDK) can be deployed into the CloudBuilder.vhdx image using the following steps in this article.

安装 ASDKInstall the ASDK

本文中的步骤说明如何使用图形用户界面 (GUI)(可通过下载并运行 asdk-installer.ps1 PowerShell 脚本来获取)部署 ASDK。The steps in this article show you how to deploy the ASDK using a graphical user interface (GUI) provided by downloading and running the asdk-installer.ps1 PowerShell script.

备注

ASDK 的安装程序用户界面是一种基于 WCF 和 PowerShell 的开源脚本。The installer user interface for the ASDK is an open-sourced script based on WCF and PowerShell.

  1. 在主计算机成功启动到 CloudBuilder.vhdx 映像之后,使用准备用于 ASDK 安装的 ASDK 主计算机时指定的管理员凭据登录。After the host computer successfully boots into the CloudBuilder.vhdx image, sign in using the admin credentials specified when you prepared the ASDK host computer for ASDK installation. 此凭据应与 ASDK 主机本地管理员凭据相同。This should be the same as the ASDK host local admin credentials.

  2. 打开权限提升的 PowerShell 控制台并运行 <驱动器号>\AzureStack_Installer\asdk-installer.ps1 PowerShell 脚本。Open an elevated PowerShell console and run the <drive letter>\AzureStack_Installer\asdk-installer.ps1 PowerShell script. 请注意,该脚本现在可能位于与 CloudBuilder.vhdx 映像中的 C:\ 不同的驱动器上。Be aware that the script might now be on a different drive than C:\ in the CloudBuilder.vhdx image. 单击“安装”。Click Install.

    安装 ASDK

  3. 在标识提供者的“类型”下拉框中,选择“Azure 中国云”或“AD FS”。 In the Identity Provider Type drop-down box, select Azure China Cloud or AD FS. 在“本地管理员密码”下的“密码”框中,键入本地管理员密码(必须与当前配置的本地管理员密码相符),然后单击“下一步”。 Under Local Administrator Password type the local admin password (which must match the current configured local admin password) in the Password box, and then click Next.

    ASDK 中的标识提供者类型下拉列表

    如果选择 Azure 订阅标识提供者,则需要建立 Internet 连接、获取 domainname.partner.onmschina.cn 格式的 Azure AD 目录租户的完整名称,或 Azure AD 验证的自定义域名。If you choose an Azure subscription identity provider, you need an internet connection, the full name of an Azure AD directory tenant in the form of domainname.partner.onmschina.cn, or an Azure AD verified custom domain name. 此外,需要获取指定目录的全局管理员凭据。You also need global admin credentials for the specified directory.

    部署后,不需要 Azure Active Directory (Azure AD) 全局管理员权限。After deployment, Azure Active Directory (Azure AD) global admin permission isn't required. 但是,某些操作可能需要全局管理员凭据。However, some operations may require the global admin credential. 例如,资源提供程序安装程序脚本或需要授予权限的新功能。For example, a resource provider installer script or a new feature requiring a permission to be granted. 可以临时复原帐户的全局管理员权限,也可以使用单独的全局管理员帐户(该帐户应是默认提供程序订阅的所有者)。You can either temporarily reinstate the account's global admin permissions or use a separate global admin account that's an owner of the default provider subscription.

    使用 AD FS 作为标识提供者时,将使用默认标记目录服务。When using AD FS as the identity provider, the default stamp directory service is used. 登录时使用的默认帐户是 azurestackadmin@azurestack.local,要使用的密码是在设置过程中提供的。The default account to sign in with is azurestackadmin@azurestack.local, and the password to use is the one you provided as part of setup.

    备注

    为获得最佳结果,即使你要使用离线 Azure Stack 环境并使用 AD FS 作为标识提供者,也最好是在连接到 Internet 的情况下安装 ASDK。For best results, even if you want to use a disconnected Azure Stack environment using AD FS as the identity provider, it's best to install the ASDK while connected to the internet. 这样就可以在部署时激活 ASDK 安装版随附的 Windows Server 2016 评估版。That way, the Windows Server 2016 evaluation version included with the ASDK installation can be activated at deployment time.

  4. 选择用于 ASDK 的网络适配器,然后单击“下一步”。Select a network adapter to use for the ASDK and then click Next.

    选择 ASDK 的网络适配器

  5. 在“网络配置”页上,提供有效的时间服务器 IP 地址。On the Network Configuration page, provide a valid Time server IP address. 此必填字段设置可供 ASDK 使用的时间服务器。This required field sets the time server to be used by the ASDK. 必须以有效的时间服务器 IP 地址的形式提供此参数。This parameter must be provided as a valid time server IP address. 不支持服务器名称。Server names aren't supported.

    提示

    若要查找时间服务器 IP 地址,请访问 ntppool.org 或 ping time.windows.com。To find a time server IP address, visit ntppool.org or ping time.windows.com.

    (可选) 可以提供 DNS 转发器 IP 地址。Optionally, you can provide a DNS forwarder IP address. 在 Azure Stack 部署过程中会创建 DNS 服务器。A DNS server is created as part of the Azure Stack deployment. 若要允许解决方案中的计算机解析标记外部的名称,请提供现有的基础结构 DNS 服务器。To allow computers inside the solution to resolve names outside of the stamp, provide your existing infrastructure DNS server. 标记内 DNS 服务器将未知的名称解析请求转发至此服务器。The in-stamp DNS server forwards unknown name resolution requests to this server.

    ASDK 中的 DNS 转发器和网络配置

  6. 在“验证网络接口卡属性”页上会看到一个进度栏。On the Verifying network interface card properties page, you'll see a progress bar. 完成验证后,单击“下一步”。When verification is complete, click Next.

    验证 ASDK 中的网络接口卡属性

  7. 在“摘要”页上单击“部署”,开始在 ASDK 主机上安装 ASDK。 On Summary page, click Deploy to start ASDK installation on the ASDK host computer.

    在 ASDK 中部署之前的脚本摘要

    提示

    也可在这里复制将要用来安装 ASDK 的 PowerShell 安装程序命令。Here you can also copy the PowerShell setup commands that'll be used to install the ASDK. 如果需要使用 PowerShell 在主机上重新部署 ASDK,此操作会有所帮助。This is helpful if you ever need to redeploy the ASDK on the host computer using PowerShell.

  8. 如果执行 Azure AD 部署,系统会在安装开始后数分钟提示输入 Azure AD 全局管理员帐户凭据。If you're doing an Azure AD deployment, you'll be prompted to enter your Azure AD global admin account credentials a few minutes after setup starts.

  9. 部署程序需要花费数小时,在此期间,主机会自动重新启动一次。The deployment process will take a few hours, during which time the host computer will automatically reboot once. 若要监视部署进度,请在 ASDK 主机重启后,以 azurestack\AzureStackAdmin 身份登录。If you want to monitor the deployment progress, sign in as azurestack\AzureStackAdmin after the ASDK host restarts. 如果部署成功,PowerShell 控制台会显示“COMPLETE: Action 'Deployment'”。When the deployment succeeds, the PowerShell console displays: COMPLETE: Action 'Deployment'.

    重要

    如果在计算机加入 azurestack 域后以本地管理员身份登录,则看不到部署进度。If you sign in as a local admin after the machine is joined to the azurestack domain, you won't see the deployment progress. 请勿重新运行部署,而应以 azurestack\AzureStackAdmin 身份登录,验证其是否正在运行。Don't rerun deployment, instead sign in as azurestack\AzureStackAdmin to validate that it's running.

    ASDK 部署成功

祝贺你,现已成功安装 ASDK!Congratulations, you've successfully installed the ASDK!

如果部署出于某种原因失败,可以从头重新部署,也可以使用以下 PowerShell 命令,从最后一个成功步骤重新开始部署。If the deployment fails for some reason, you can redeploy from scratch or use the following PowerShell commands to restart the deployment from the last successful step. 可在同一个权限提升的 PowerShell 窗口中使用这些命令。The commands can be used from the same elevated Powershell window:

cd C:\CloudDeployment\Setup
.\InstallAzureStackPOC.ps1 -Rerun

后续步骤Next steps

部署后的配置Post deployment configuration