Updated on 2024-11-01 GMT+08:00

Managing Credentials

Credentials are used by MgC to authenticate your identity during resource discovery and data collection. This section describes how to add credentials required by MgC to discovering cloud resources. To learn how to add credentials required by Edge to discover on-premises resources or required for manually adding resources to MgC, see Adding Resource Credentials.

Supported Authentication Types

Currently, only credentials of public cloud resources can be added. For details about the supported authentication types, see Table 1.

Table 1 Supported authentication types for public cloud resources

Resource Type

Authentication Type

Description

Public cloud

AK/SK

AK/SK pairs of cloud platforms, such as Huawei Cloud, Alibaba Cloud, AWS, Tencent Cloud, Qiniu Cloud, and Kingsoft Cloud

Configuration file

Credential configuration files of Google Cloud. A configuration file that contains credentials for Google Cloud service accounts can be uploaded to MgC. The file must be in JSON format and cannot exceed 4 KB.

ID/Secret

Azure credentials. To learn how to obtain Azure credentials, see How Do I Obtain Azure Credentials?

Your cloud credentials are stored in the MgC database and remain valid for seven days. After this period, you need to add the credentials to MgC again if you still want to discover or migrate your cloud resources.

Procedure

  1. Sign in to the MgC console.
  2. In the navigation pane on the left, choose Settings. Select a migration project in the upper left corner of the page.
  3. On the Credentials tab page, click Add Credential.

  4. Select a resource type and authentication type as prompted. Specify a credential name, enter or upload your credential, and click Confirm.

    After the credential is added, you can choose Credentials > Cloud to view the added credential.