使用 Azure 门户创建中继命名空间Create a Relay namespace using the Azure portal

命名空间是适用于所有 Azure 中继组件的作用域容器。A namespace is a scoping container for all your Azure Relay components. 单个命名空间中可存在多个中继,命名空间通常用作应用程序容器。Multiple relays can reside in a single namespace, and namespaces often serve as application containers. 目前有两种方法可用来创建中继命名空间:There are currently two different ways to create a relay namespace:

  1. Azure 门户(本文)。Azure portal (this article).
  2. Azure 资源管理器模板。Azure Resource Manager templates.

在 Azure 门户中创建命名空间Create a namespace in the Azure portal

  1. 登录到 Azure 门户Sign in to the Azure portal.

  2. 在左侧菜单中,选择“+ 创建资源”。In the left menu, select + Create a resource. 然后,选择“企业集成” > “中继”。Then, select Enterprise Integration > Relay.

  3. 在“创建命名空间”下输入命名空间名称。Under Create namespace, enter a namespace name. 系统会立即检查该名称是否可用。The system immediately checks to see if the name is available.

  4. 在“订阅”框中,选择要在其中创建命名空间的 Azure 订阅。In the Subscription box, select an Azure subscription in which to create the namespace.

  5. “资源组”框中,选择要在其中放置命名空间的现有资源组,或者创建新资源组。In the Resource group box, select an existing resource group in which to place the namespace, or create a new one.

  6. 在“位置”中,选择应托管命名空间的国家或地区。In Location, select the country or region in which your namespace should be hosted.

    创建命名空间

  7. 选择“创建” 。Select Create. 系统会创建并启用命名空间。The system creates your namespace and enables it. 几分钟后,系统为用户的帐户预配资源。After a few minutes, the system provisions resources for your account.

获取管理凭据Get management credentials

  1. 选择“所有资源”,然后选择新创建的命名空间名称。Select All resources, and then select the newly created namespace name.

  2. 在“中继命名空间”下,选择“共享访问策略”。Under the Relay namespace, select Shared access policies.

  3. 在“共享访问策略”下,选择“RootManageSharedAccessKey”。Under Shared access policies, select RootManageSharedAccessKey.

    connection-info

  4. 在“策略: RootManageSharedAccessKey”下选择“连接字符串 - 主密钥”旁边的“复制”按钮。Under Policy: RootManageSharedAccessKey, select the Copy button next to Connection string–Primary key. 这样会将连接字符串复制到剪贴板,供以后使用。This copies the connection string to your clipboard for later use. 将此值粘贴到记事本或其他某个临时位置。Paste this value into Notepad or some other temporary location.

    连接字符串

  5. 重复上述步骤,将主密钥的值复制和粘贴到临时位置,供以后使用。Repeat the preceding step to copy and paste the value of Primary key to a temporary location for later use.

祝贺!Congratulations! 现已创建中继命名空间。You have now created a relay namespace.

后续步骤Next steps