您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

管理 Azure Data Box Gateway 的访问、电源和连接模式Manage access, power, and connectivity mode for your Azure Data Box Gateway

本文介绍如何管理 Azure Data Box Gateway 的访问、电源和连接模式。This article describes how to manage the access, power, and connectivity mode for your Azure Data Box Gateway. 这些操作是通过本地 Web UI 或 Azure 门户执行的。These operations are performed via the local web UI or the Azure portal.

在本文中,学习如何:In this article, you learn how to:

  • 管理对设备的访问Manage device access
  • 管理连接模式Manage connectivity mode
  • 管理电源Manage power

管理对设备的访问Manage device access

对 Data Box Gateway 设备的访问通过使用设备密码进行控制。The access to your Data Box Gateway device is controlled by the use of a device password. 可以通过本地 web UI 更改密码。You can change the password via the local web UI. 你还可以在 Azure 门户中重置设备密码。You can also reset the device password in the Azure portal.

更改设备密码Change device password

请在本地 UI 中执行以下步骤,以更改设备密码。Follow these steps in the local UI to change the device password.

  1. 在本地 Web UI 中,转到“维护”>“密码更改”。In the local web UI, go to Maintenance > Password change.

  2. 依次输入当前密码和新密码。Enter the current password and then the new password. 提供的密码必须是 8 到 16 个字符。The supplied password must be between 8 and 16 characters. 该密码必须包含以下字符中的 3 项:大写字母、小写字母、数字和特殊字符。The password must have 3 of the following characters: uppercase, lowercase, numeric, and special characters. 确认新密码。Confirm the new password.

    更改密码

  3. 单击“更改密码”。Click Change password.

重置设备密码Reset device password

重置工作流不需要用户回忆旧密码,在密码丢失时非常有用。The reset workflow does not require the user to recall the old password and is useful when the password is lost. 在 Azure 门户中执行此工作流。This workflow is performed in the Azure portal.

  1. 在 Azure 门户中,转到“概述”>“重置管理员密码”。In the Azure portal, go to Overview > Reset admin password.

    重置密码

  2. 输入新密码并确认。Enter the new password and then confirm it. 提供的密码必须是 8 到 16 个字符。The supplied password must be between 8 and 16 characters. 该密码必须包含以下字符中的 3 项:大写字母、小写字母、数字和特殊字符。The password must have 3 of the following characters: uppercase, lowercase, numeric, and special characters. 单击“重置”。Click Reset.

    重置密码2

管理资源访问Manage resource access

若要创建 Azure Data Box Gateway、IoT 中心和 Azure 存储资源,需要具有资源组级别的参与者或更高级别的权限。To create your Azure Data Box Gateway, IoT Hub, and Azure Storage resource, you need permissions as a contributor or higher at a resource group level. 还需要注册相应的资源提供程序。You also need the corresponding resource providers to be registered. 对于涉及激活密钥和凭据的任何操作,还需要 Azure Active Directory 图形 API 的权限。For any operations that involve activation key and credentials, permissions to Azure Active Directory Graph API are also required. 以下部分介绍了这些内容。These are described in the following sections.

管理 Microsoft Graph API 权限Manage Microsoft Graph API permissions

为设备生成激活密钥,或执行需要凭据的任何操作时,需要 Microsoft Graph API 的权限。When generating the activation key for the device, or performing any operations that require credentials, you need permissions to Microsoft Graph API. 需要凭据的操作可以是:The operations that need credentials could be:

  • 使用关联的存储帐户创建共享。Creating a share with an associated storage account.
  • 创建可访问设备上的共享的用户。Creating a user who can access the shares on the device.

你应具有 User Active Directory 租户的访问权限,以便可以 Read all directory objectsYou should have User access on the Active Directory tenant so you can Read all directory objects. 来宾用户无权访问 Read all directory objectsA Guest user doesn't have permissions to Read all directory objects. 如果你是来宾,则生成激活密钥、在设备上创建共享以及创建用户的操作将失败。If you're a guest, operations like generating an activation key, creating a share on your device, and creating a user will fail.

有关如何向用户提供 Microsoft Graph API 访问权限的详细信息,请参阅 Microsoft Graph 权限参考For more information on how to provide access to users to Microsoft Graph API, see Microsoft Graph permissions reference.

注册资源提供程序Register resource providers

若要在 azure 资源管理器模型) 的 Azure 中预配资源,需要一个支持创建该资源的资源提供程序 (。To provision a resource in Azure (in the Azure Resource Manager model), you need a resource provider that supports the creation of that resource. 例如,要设置虚拟机,订阅中应提供 "Microsoft. 计算" 资源提供程序。For example, to provision a virtual machine, you should have a 'Microsoft.Compute' resource provider available in the subscription.

资源提供程序在订阅级别注册。Resource providers are registered on the level of the subscription. 默认情况下,任何新的 Azure 订阅都预注册到一组常用的资源提供程序中。By default, any new Azure subscription is pre-registered with a list of commonly used resource providers. "DataBoxEdge" 的资源提供程序未包含在此列表中。The resource provider for 'Microsoft.DataBoxEdge' is not included in this list.

您无需在订阅级别授予访问权限,用户能够在其拥有所有者权限的资源组中创建诸如 "DataBoxEdge" 之类的资源,前提是这些资源的资源提供程序已注册。You don't need to grant access permissions at the subscription level for users to be able to create resources like 'Microsoft.DataBoxEdge' within resource groups that they have owner rights on, as long as the resource providers for these resources are already registered.

尝试创建任何资源之前,请确保在订阅中注册了资源提供程序。Before you try to create any resource, make sure the resource provider is registered in the subscription. 如果未注册资源提供程序,则需要确保创建新资源的用户具有足够的权限在订阅级别注册所需的资源提供程序。If the resource provider is not registered, you'll need to make sure that the user creating the new resource has enough rights to register the required resource provider at the subscription level. 如果还没有这样做,则会看到以下错误:If you haven't done this as well, then you'll see the following error:

订阅无权 <Subscription name> 注册资源提供程序 () : DataBoxEdge。The subscription <Subscription name> doesn't have permissions to register the resource provider(s): Microsoft.DataBoxEdge.

若要获取当前订阅中已注册资源提供程序的列表,请运行以下命令:To get a list of registered resource providers in the current subscription, run the following command:

Get-AzResourceProvider -ListAvailable |where {$_.Registrationstate -eq "Registered"}

对于 Data Box Gateway 设备, Microsoft.DataBoxEdge 应注册。For a Data Box Gateway device, Microsoft.DataBoxEdge should be registered. 若要注册 Microsoft.DataBoxEdge ,订阅管理员应运行以下命令:To register Microsoft.DataBoxEdge, the subscription admin should run the following command:

Register-AzResourceProvider -ProviderNamespace Microsoft.DataBoxEdge

有关如何注册资源提供程序的详细信息,请参阅 解决资源提供程序注册的错误For more information on how to register a resource provider, see Resolve errors for resource provider registration.

管理连接模式Manage connectivity mode

除了默认的正常模式,你的设备还可以在部分断开连接或断开连接的模式下运行:Apart from the default normal mode, your device can also run in partially disconnected or disconnected mode:

  • 部分断开 –在此模式下,设备无法将任何数据上载到共享。Partially disconnected – In this mode, the device cannot upload any data to the shares. 但是,可以通过 Azure 门户来管理它。However, it can be managed via the Azure portal.

    此模式通常用于在按流量计费的卫星网络上最大程度地减少网络带宽消耗。This mode is typically used to minimize network bandwidth consumption when on a metered satellite network. 执行设备监视操作时,仍有可能会消耗少量的网络带宽。Minimal network consumption may still occur for device monitoring operations.

  • 断开连接 –在此模式下,设备已从云完全断开连接,并且云上传和下载均处于禁用状态。Disconnected – In this mode, the device is fully disconnected from the cloud, and both cloud uploads and downloads are disabled. 只能通过本地 Web UI 管理设备。The device can only be managed via the local web UI.

    想要使设备脱机时,通常会使用此模式。This mode is typically used when you want to take your device offline.

若要更改设备模式,请执行以下步骤:To change the device mode, follow these steps:

  1. 在设备的本地 Web UI 中,转到“配置”>“云设置”。In the local web UI of your device, go to Configuration > Cloud settings.

  2. 禁用“云上传和下载”。Disable the Cloud upload and download.

  3. 若要在部分离线模式下运行设备,请启用“Azure 门户管理”。To run the device in partially disconnected mode, enable Azure portal management.

    连接模式

  4. 若要在离线模式下运行设备,请禁用“Azure 门户管理”。To run the device in disconnected mode, disable Azure portal management. 现在,只能通过本地 Web UI 管理设备。Now the device can only be managed via the local web UI.

    连接模式2

管理电源Manage power

可使用本地 Web UI 关闭或重启虚拟设备。You can shut down or restart your virtual device using the local web UI. 建议在重新启动设备之前,将共享上的共享与设备共享。We recommend that before you restart the device, you take the shares offline on the host and then the device. 此操作可以最大程度地减少发生数据损坏的可能性。This action minimizes any possibility of data corruption.

  1. 在本地 Web UI 中,转到“维护”>“电源设置”。In the local web UI, go to Maintenance > Power settings.

  2. 单击 " 关闭 " 或 " 重新启动 ",具体取决于你想要执行的操作。Click Shutdown or Restart depending on what you intend to do.

    电源设置

  3. 出现确认提示时,请单击“是”以继续。When prompted for confirmation, click Yes to proceed.

备注

如果关闭虚拟设备,则需要通过虚拟机监控程序管理来启动设备。If you shut down the virtual device, you will need to start the device through the hypervisor management.