Skip to content

Files

Latest commit

8ff0f4c · Apr 13, 2022

History

History
70 lines (49 loc) · 8.57 KB

add-server-credentials.md

File metadata and controls

70 lines (49 loc) · 8.57 KB
title description author ms.author ms.manager ms.topic ms.date
Provide server credentials to discover software inventory, dependencies, web apps, and SQL Server instances and databases
Learn how to provide server credentials on appliance configuration manager
vikram1988
vibansa
abhemraj
how-to
03/18/2021

Provide server credentials to discover software inventory, dependencies, web apps, and SQL Server instances and databases

Follow this article to learn how to add multiple server credentials on the appliance configuration manager to perform software inventory (discover installed applications), agentless dependency analysis and discover web apps, and SQL Server instances and databases.

The Azure Migrate appliance is a lightweight appliance used by Azure Migrate: Discovery and assessment to discover on-premises servers and send server configuration and performance metadata to Azure. The appliance can also be used to perform software inventory, agentless dependency analysis and discover of web app, and SQL Server instances and databases.

Note

Currently the discovery of web apps and SQL Server instances and databases is only available in appliance used for discovery and assessment of servers running in VMware environment.

If you want to use these features, you can provide server credentials by following the steps below. In case of servers running on vCenter Server(s) and Hyper-V host(s)/cluster(s), the appliance will attempt to automatically map the credentials to the servers to perform the discovery features.

Add server credentials

Types of server credentials supported

You can add multiple server credentials on the appliance configuration manager, which can be domain, non-domain (Windows or Linux) or SQL Server authentication credentials.

The types of server credentials supported are listed in the table below:

Type of credentials Description
Domain credentials You can add Domain credentials by selecting the option from the drop-down in the Add credentials modal.

To provide domain credentials, you need to specify the Domain name which must be provided in the FQDN format (for example, prod.corp.contoso.com).

You also need to specify a friendly name for credentials, username, and password. It is recommended to provide the credentials in the UPN format, for example, user1@contoso.com.

The domain credentials added will be automatically validated for authenticity against the Active Directory of the domain. This is to prevent any account lockouts when the appliance attempts to map the domain credentials against discovered servers.

For the appliance to validate the domain credentials with the domain controller, it should be able to resolve the domain name. Ensure that you have provided the correct domain name while adding the credentials else the validation will fail.

The appliance will not attempt to map the domain credentials that have failed validation. You need to have at least one successfully validated domain credential or at least one non-domain credential to start the discovery.

The domain credentials mapped automatically against the Windows servers will be used to perform software inventory and can also be used to discover web apps, and SQL Server instances and databases (if you have configured Windows authentication mode on your SQL Servers).
Learn more about the types of authentication modes supported on SQL Servers.
Non-domain credentials (Windows/Linux) You can add Windows (Non-domain) or Linux (Non-domain) by selecting the required option from the drop-down in the Add credentials modal.

You need to specify a friendly name for credentials, username, and password.
SQL Server Authentication credentials You can add SQL Server Authentication credentials by selecting the option from the drop-down in the Add credentials modal.

You need to specify a friendly name for credentials, username, and password.

You can add this type of credentials to discover SQL Server instances and databases running in your VMware environment, if you have configured SQL Server authentication mode on your SQL Servers.
Learn more about the types of authentication modes supported on SQL Servers.

You need to provide at least one successfully validated domain credential or at least one Windows (Non-domain) credential so that the appliance can complete the software inventory to discover SQL installed on the servers before it uses the SQL Server authentication credentials to discover the SQL Server instances and databases.

Note

Currently the SQL Server authentication credentials can only be provided in appliance used for discovery and assessment of servers running in VMware environment.

Check the permissions required on the Windows/Linux credentials to perform the software inventory, agentless dependency analysis and discover web apps, and SQL Server instances and databases.

Required permissions

The table below lists the permissions required on the server credentials provided on the appliance to perform the respective features:

Feature Windows credentials Linux credentials
Software inventory Guest user account Regular/normal user account (non-sudo access permissions)
Discovery of SQL Server instances and databases User account that is member of the sysadmin server role. Not supported currently
Discovery of ASP.NET web apps Domain or non-domain (local) account with administrative permissions Not supported currently
Agentless dependency analysis Domain or non-domain (local) account with administrative permissions Root user account, or
an account with these permissions on /bin/netstat and /bin/ls files: CAP_DAC_READ_SEARCH and CAP_SYS_PTRACE.

Set these capabilities using the following commands:

sudo setcap CAP_DAC_READ_SEARCH,CAP_SYS_PTRACE=ep /bin/ls

sudo setcap CAP_DAC_READ_SEARCH,CAP_SYS_PTRACE=ep /bin/netstat

Recommended practices to provide credentials

  • It is recommended to create a dedicated domain user account with the required permissions, which is scoped to perform software inventory, agentless dependency analysis and discovery of web app, and SQL Server instances and databases on the desired servers.
  • It is recommended to provide at least one successfully validated domain credential or at least one non-domain credential to initiate software inventory.
  • To discover SQL Server instances and databases, you can provide domain credentials, if you have configured Windows authentication mode on your SQL Servers.
  • You can also provide SQL Server authentication credentials if you have configured SQL Server authentication mode on your SQL Servers but it is recommended to provide at least one successfully validated domain credential or at least one Windows (Non-domain) credential so that the appliance can first complete the software inventory.

Credentials handling on appliance

  • All the credentials provided on the appliance configuration manager are stored locally on the appliance server and not sent to Azure.
  • The credentials stored on the appliance server are encrypted using Data Protection API (DPAPI).
  • After you have added credentials, appliance attempts to automatically map the credentials to perform discovery on the respective servers.
  • The appliance uses the credentials automatically mapped on a server for all the subsequent discovery cycles until the credentials are able to fetch the required discovery data. If the credentials stop working, appliance again attempts to map from the list of added credentials and continue the ongoing discovery on the server.
  • The domain credentials added will be automatically validated for authenticity against the Active Directory of the domain. This is to prevent any account lockouts when the appliance attempts to map the domain credentials against discovered servers. The appliance will not attempt to map the domain credentials that have failed validation.
  • If the appliance cannot map any domain or non-domain credentials against a server, you will see "Credentials not available" status against the server in your project.

Next steps

Review the tutorials for discovery of servers running in your VMware environment or Hyper-V environment or for discovery of physical servers