> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levelblue.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Complete the Azure Sensor Setup

After you initialize a new USM Anywhere Sensor, you must configure it in the Setup Wizard. As you configure the sensor, you can enable USM Anywhere to perform specific actions through scheduled jobs, such as running an asset discovery scan or collecting <Tooltip tip="Information collected and displayed that describes a single system or user level activity that took place.">security events</Tooltip> from a predefined cloud storage location.

## Accessing the Setup Wizard

The Setup Wizard is accessible under the following circumstances:

* After you first log in to the USM Anywhere web user interface (UI) and see the Welcome to USM Anywhere page, click **Get Started** to launch the Setup Wizard.
* If you have already registered one USM Anywhere Sensor but did not complete the setup before logging out, the USM Anywhere Sensor Configuration page launches automatically at your next login to remind you to finalize configuration of the sensor. From that page, you click **Configure** to launch the Setup Wizard and complete the sensor configuration.
* If you registered an additional USM Anywhere Sensor, but did not complete the setup, the Sensors page displays an error (<img src="https://mintcdn.com/levelblue-5324744e/T1hrc0hK0aza_DCc/images/central-any-app/buttons/icon-error.svg?fit=max&auto=format&n=T1hrc0hK0aza_DCc&q=85&s=f0f3bf45c2df834004d2d645cd37a3fd" style={{ height: "1em", verticalAlign: "middle", display: "inline-block", margin: "0 0.25em" }} width="20" height="20" data-path="images/central-any-app/buttons/icon-error.svg" />) in the Configured column. See [Sensors Page Overview](../../user-guide/sensor-management/sensors-navigation) for more information.
* Go to **Data Sources > Sensors**, and then click the sensor name to complete the sensor configuration. See [USM Anywhere Sensor Management](../../user-guide/sensor-management/sensor-management) for more information.

## Configuring the Azure Sensor in the Setup Wizard

The first time you log in from the Welcome to USM Anywhere web page, the Setup Wizard prompts you to complete the configuration of the first deployed sensor. Thereafter, you can use the Sensors page to configure an additional sensor or to change the configuration options for a deployed sensor. See [Sensors Page Overview](../../user-guide/sensor-management/sensors-navigation) for more information.

<Frame>
  <img src="https://mintcdn.com/levelblue-5324744e/adIUcnBkryqG7nEE/images/usm-anywhere/deployment-guide/azure/setupwizsteps_219x400.webp?fit=max&auto=format&n=adIUcnBkryqG7nEE&q=85&s=94fbf02fcea9b5ccdebe94bc9787e8d1" width="219" height="400" data-path="images/usm-anywhere/deployment-guide/azure/setupwizsteps_219x400.webp" />
</Frame>

<AccordionGroup>
  <Accordion title="Azure Credentials">
    To complete the Microsoft Azure Sensor configuration, you must obtain Azure API credentials for the subscription that you want USM Anywhere to monitor. Select the option on the Azure Credentials page that matches your current Azure credential creation status:

    * If you already generated your Azure credentials, click **Yes, I have my Azure credentials and am ready to enter them**.
    * If you don't yet have your Azure credentials, click **No, I don't have my Azure credentials and need to create them**.
    * If you're not sure, click **I am not sure. Show me how to create my Azure credentials**.

    If you select **No** or **I am not sure**, the page provides options for two creation methods:

    <Frame>
      <img src="https://mintcdn.com/levelblue-5324744e/adIUcnBkryqG7nEE/images/usm-anywhere/deployment-guide/azure/credentials-create-options_525x329.webp?fit=max&auto=format&n=adIUcnBkryqG7nEE&q=85&s=8ac6dbea91b97027422dd5e229724253" width="525" height="329" data-path="images/usm-anywhere/deployment-guide/azure/credentials-create-options_525x329.webp" />
    </Frame>

    If you select **Yes**, follow the steps in Configuring the Azure Credentials After Manual Credential Generation.

    <AccordionGroup>
      <Accordion title="Generating the Azure Credentials for Windows Users">
        **To generate Azure Credentials for Microsoft Windows users**

        This procedure is for Windows users who want to use the provided Power Shell script to automatically generate their credentials for sensor configuration:

        1. Select **Create credentials automatically using a Power Shell script (Recommended).**

           The page automatically launches a download of the Power Shell script. You can use the browser tools to save the file to the appropriate location on your system.

                   <Frame>
                     <img src="https://mintcdn.com/levelblue-5324744e/adIUcnBkryqG7nEE/images/usm-anywhere/deployment-guide/azure/azure-run-script.webp?fit=max&auto=format&n=adIUcnBkryqG7nEE&q=85&s=7aa4cbb5bda079a5172c9dc74e7adf84" width="894" height="534" data-path="images/usm-anywhere/deployment-guide/azure/azure-run-script.webp" />
                   </Frame>

        2. Run the Power Shell script as administrator on your Windows operating system (OS) from the command-line interface (CLI) shell prompt.

                   <Warning>
                     **Important:** You won't be able to answer the prompts from the script if you use Windows PowerShell Integrated Scripting Environment (ISE) to run the script.
                   </Warning>

                   <Note>
                     **Note:** If you have multiple Azure subscriptions, the script prompts you to identify which one you want USM Anywhere to monitor.
                   </Note>

           When the script finishes, it creates a text file that saves to your desktop.

        3. In USM Anywhere, drop the Azure credentials text file onto the displayed page or click the **select USM\_Anywhere\_Azure\_Credentials.txt from your desktop** link to locate, select, and upload the file.

                   <Frame>
                     <img src="https://mintcdn.com/levelblue-5324744e/adIUcnBkryqG7nEE/images/usm-anywhere/deployment-guide/azure/azure-access-credentials.webp?fit=max&auto=format&n=adIUcnBkryqG7nEE&q=85&s=5044f18c4e030e9bac66c0aa353c4720" width="755" height="445" data-path="images/usm-anywhere/deployment-guide/azure/azure-access-credentials.webp" />
                   </Frame>

        4. Verify that the status at the top of the page displays the following message:

           `Valid Credentials`

                   <Frame caption="Related Video Content">
                     <iframe width="700" height="380" src="https://player.vimeo.com/video/299521082" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen />
                   </Frame>

           To view other related training videos, [click here](https://cybersecurity.att.com/training/self-paced-training).
      </Accordion>

      <Accordion title="Creating the Azure Credentials Manually">
        **To create the Azure credentials manually**

        1. Select **Learn how to create Azure credentials manually**.

           This opens the [Create an Application and Obtain Azure Credentials](getting-azure-credentials) page in a new browser tab or window.

        2. Follow the instructions for creating the needed credentials.

        3. Return to USM Anywhere, then click the **Back** button to display the first Azure Credentials page.
      </Accordion>

      <Accordion title="Configuring the Azure Credentials After Manual Credential Generation">
        **To configure the Azure credentials after they were generated manually**

        <Note>
          **Note:** This procedure is for non-Windows users who generated their Azure credentials manually and who are ready to configure the sensor.
        </Note>

        1. Select the **Yes** option, and in the next page click the **Enter previously created Azure credentials manually** link at the bottom of the page.

        2. Enter the Azure API credentials you [generated in the Azure console](getting-azure-credentials) into the appropriate fields.

                   <Frame>
                     <img src="https://mintcdn.com/levelblue-5324744e/adIUcnBkryqG7nEE/images/usm-anywhere/deployment-guide/azure/add-new-credential.webp?fit=max&auto=format&n=adIUcnBkryqG7nEE&q=85&s=9950d2fcf26936302eef4911944c3f98" width="1020" height="560" data-path="images/usm-anywhere/deployment-guide/azure/add-new-credential.webp" />
                   </Frame>

        3. Click **Save Credentials**.

        4. Verify that the status at the top of the page displays the following message:

           `Valid Credentials`
      </Accordion>
    </AccordionGroup>

    When the credentials are configured, click **Next**. The wizard displays the next page in the setup process, Azure Configuration.
  </Accordion>

  <Accordion title="Azure Configuration">
    After you've successfully configured the Azure credentials, the Azure Configuration page opens. This page summarizes the number of Azure virtual machines (VMs), resource groups, and VM sizes in your environment.

    <Frame>
      <img src="https://mintcdn.com/levelblue-5324744e/adIUcnBkryqG7nEE/images/usm-anywhere/deployment-guide/azure/azure-config_525x377.webp?fit=max&auto=format&n=adIUcnBkryqG7nEE&q=85&s=e1cd8398947244be68ebdb21e9a21666" width="525" height="377" data-path="images/usm-anywhere/deployment-guide/azure/azure-config_525x377.webp" />
    </Frame>

    <Warning>
      **Important:** If you are using VM scale sets to provide redundancy and load balancing in your Azure environment, the Azure Sensor does not automatically discover the scale set hosts through network scans. It does collect syslog from these hosts, but you must manually add the VMs to the USM Anywhere asset inventory.

      See the Azure documentation for more information about virtual machine scale sets. See Adding Assets in the UI for detailed information about adding these VMs to the asset inventory.
    </Warning>

    Click **Next**.

    The wizard displays the next page in the setup process, Azure Log Collection.
  </Accordion>

  <Accordion title="Azure Log Collection">
    The **Azure Log Collection** page displays the following Azure logs that are automatically discovered by USM Anywhere in your environment:

    * Azure REST Monitor (formerly Azure Insight)
    * Azure security alerts
    * Azure SQL Server logs
    * Azure Internet Information Services (IIS) logs
    * Azure Windows logs

    <Warning>
      **Important:** The Azure SQL Server job is deprecated. Use the Event Hub Integration to collect Azure SQL Server logs. See Collect Logs from Azure Event Hubs for more information.
    </Warning>

    See [Azure Log Discovery and Collection in USM Anywhere](azure-log-collections) for more information about Azure log discovery and collection.

    <Frame>
      <img src="https://mintlify.s3.us-west-1.amazonaws.com/levelblue-5324744e/images/usm-anywhere/deployment-guide/azure/azure%20logs.webp" />
    </Frame>

    To enable these out-of-box Azure log collection jobs, toggle the gray **Enable** icon so that it turns green. When you enable any of these log collection jobs, USM Anywhere starts collecting the log data immediately according to the preconfigured frequency. See [Create a New Azure Log Collection Job](creating-azure-collection-job) if you want to add other Azure log collection jobs after the sensor configuration, including jobs for Azure Web Apps.

    <Note>
      **Note:** If you go to **Activity > Events** in USM Anywhere post-configuration, you can see all of the events associated with each log type, including its Event ID and many other useful details. You can also review related log collection jobs in the Job Scheduler page (**Settings > Scheduler**). See [Events List View](../../user-guide/events/events-list-view) and [USM Anywhere Scheduler](../../user-guide/scheduler/scheduler) for more information.
    </Note>

    After you enable each job that you want, click **Next**.

    The wizard displays the next page in the setup process, Active Directory.
  </Accordion>

  <Accordion title="Active Directory">
    The optional <Tooltip tip="Active Directory (AD) is a directory service that Microsoft developed for Windows domain networks.">Active Directory (AD)</Tooltip> setup page configures USM Anywhere to collect information from your AD account. To monitor Microsoft Windows systems effectively, USM Anywhere needs access to the AD server to collect inventory information.

    <Note>
      **Note:** This configuration is only for one AD server. If you want to scan different AD servers, you must create an AD scan job for each of them. See [Scheduling Active Directory Scans from the Job Scheduler Page](../data-source/asset-scan-active-directory) for more information.
    </Note>

    LevelBlue recommends that you create a dedicated AD account with membership in the Domain Admins group to be used by USM Anywhere to log in to the Windows systems. You also need to activate Microsoft Windows Remote Management (WinRM) in the domain controller and in all the hosts that you want to scan. You can do this by using a group policy for all the systems in your AD.

    <Warning>
      **Important:** Before this feature is fully functional, you must configure access to the USM Anywhere Sensor on the AD server. See [Granting Access to Active Directory for USM Anywhere](../setup/granting-access-to-ad-from-usma) for more information.
    </Warning>

    **To complete the AD access configuration**

    1. Provide the AD credentials for USM Anywhere:

       * **Active Directory IP Address**: Enter the IP address for the AD server.
       * **Username**: Enter your username as admin of the account.
       * **Password**: Enter your admin's password.
       * **Domain**: Enter the domain for the AD instance.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/AfONLtCE7tRfJ2MJ/images/usm-anywhere/deployment-guide/shared-procedures/activedirectory.webp?fit=max&auto=format&n=AfONLtCE7tRfJ2MJ&q=85&s=a8fff68ed5847147545f3d8c9d11ea07" width="1612" height="1305" data-path="images/usm-anywhere/deployment-guide/shared-procedures/activedirectory.webp" />
           </Frame>

    2. Click **Scan Active Directory**.

       After a successful launch of the scan, a confirmation dialog box opens.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/qGB1vLsu4TWqy-rq/images/usm-anywhere/deployment-guide/shared-procedures/scansuccessfullylaunched.webp?fit=max&auto=format&n=qGB1vLsu4TWqy-rq&q=85&s=56db98ec3a31a2c45efefe2c2e6dc903" width="400" height="224" data-path="images/usm-anywhere/deployment-guide/shared-procedures/scansuccessfullylaunched.webp" />
           </Frame>

    3. Click **Accept**.

       The scan continues in the background.

       Upon completion, another dialog box opens and provides information about the number of assets USM Anywhere discovered. It also prompts you to decide if you want to scan for hosts and services running in your environment.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/adIUcnBkryqG7nEE/images/usm-anywhere/deployment-guide/azure/scan-prompt-azure.webp?fit=max&auto=format&n=adIUcnBkryqG7nEE&q=85&s=147c2024d05c01ef2bfd140bbcb47b35" width="625" height="223" data-path="images/usm-anywhere/deployment-guide/azure/scan-prompt-azure.webp" />
           </Frame>

       Click **Cancel** to opt out of this scan.

    4. (Optional) If you want to scan for other hosts and services, click **OK**.

    5. Click **Next** after the scan ends.

       The wizard opens the next page in the setup process, Log Management.
  </Accordion>

  <Accordion title="Log Management">
    On the Log Management page are syslog port numbers. (These ports are the same for all USM Anywhere Sensors.)

    USM Anywhere collects third-party device, system, and application data through <Tooltip tip="An industry standard message logging system that is used on many devices and platforms.">syslog</Tooltip> over UDP on port 514 and over TCP on ports 601 or 602 by default. It collects <Tooltip tip="Transport layer security. Successor to Secure Sockets Layer (SSL) protocol. Provides security for communication over the Internet between client and server applications.">Transport Layer Security (TLS)-encrypted</Tooltip> data through TCP on ports 6514 or 6515 by default. These ports support the RFC 3164 and RFC 5424 formats. To configure any third-party devices to send data to USM Anywhere, you must provide the IP address and the port number of your USM Anywhere Sensor.

    <Frame>
      <img src="https://mintcdn.com/levelblue-5324744e/qGB1vLsu4TWqy-rq/images/usm-anywhere/deployment-guide/shared-procedures/logmanagement_350x224.webp?fit=max&auto=format&n=qGB1vLsu4TWqy-rq&q=85&s=5bf17db1b6d258f9a877880240609e78" width="350" height="224" data-path="images/usm-anywhere/deployment-guide/shared-procedures/logmanagement_350x224.webp" />
    </Frame>

    **To enable log collection and configure your log management**

    1. Make sure that you have granted the necessary permissions for your OS to allow USM Anywhere to access its logs. You can also integrate a wide variety of data sources to send log data over syslog to the USM Anywhere Sensor.
       To learn how to configure your operating systems and supported third-party devices to forward syslog log data, see the following related topics:

       * [The Syslog Server Sensor App](../data-source/app-sensor-syslog): Log collection (UDP, TCP, and TLS-encrypted TCP) from rsyslog
       * [Collecting Linux System Logs](../setup/collecting-logs-linux): Log collection from a Linux system
       * [Collecting Windows System Logs](../setup/collecting-logs-windows): Log collection from a Windows system
       * Go to the specific BlueApp in USM Anywhere for instructions about syslog forwarding

           <Note>
             **Note:** Because the log scan can take some time, you might not see all of the automatically discovered log sources immediately after deploying the first USM Anywhere Sensor.
           </Note>

    2. When you have finished the log collection setup and integrated any needed plugins, verify that the data transfer is occurring.

    3. Click **Next** when this step is complete.
  </Accordion>

  <Accordion title="OTX">
    LevelBlue Labs™ Open Threat Exchange® (OTX™) is an open information-sharing and analysis network providing users with the ability to collaborate, research, and receive alerts on emerging threats and indicators of compromise (IoCs) such as IP addresses, file hashes, and domains.

    You must have an OTX account to receive alerts based on threats identified in OTX. This account is separate from your USM Anywhere account. Go to [The World’s First Truly Open Threat Intelligence Community](https://otx.alienvault.com/) to create an OTX account.

    <Frame>
      <img src="https://mintcdn.com/levelblue-5324744e/qGB1vLsu4TWqy-rq/images/usm-anywhere/deployment-guide/shared-procedures/openthreatexchange_350x315.webp?fit=max&auto=format&n=qGB1vLsu4TWqy-rq&q=85&s=273907b2c669c9389ad7c419ecc4739d" width="350" height="315" data-path="images/usm-anywhere/deployment-guide/shared-procedures/openthreatexchange_350x315.webp" />
    </Frame>

    <Note>
      **Note:** If you do not already have an OTX account, click the Sign up link. This opens another browser tab or window that displays the OTX signup page. After you confirm your email address, you can log in to OTX and retrieve the unique API key for your account.

      See [Open Threat Exchange® and USM Anywhere](../../user-guide/otx/open-threat-exchange) for more information about OTX integration in USM Anywhere.
    </Note>

    **To enable USM Anywhere to evaluate event data against the latest OTX intelligence**

    1. Log in to OTX and open the API page ([https://otx.alienvault.com/api](https://otx.alienvault.com/api)).

    2. In the DirectConnect API Usage pane, click the <img src="https://mintcdn.com/levelblue-5324744e/3onSl9Btf_NxCVCb/images/usm-anywhere/icons-buttons/copy-otx_20x20.png?fit=max&auto=format&n=3onSl9Btf_NxCVCb&q=85&s=16525ca698fea280d5361fc74d481b00" style={{ height: "1em", verticalAlign: "middle", display: "inline-block", margin: "0 0.25em" }} width="20" height="20" data-path="images/usm-anywhere/icons-buttons/copy-otx_20x20.png" /> icon to copy your unique OTX connection key.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/qGB1vLsu4TWqy-rq/images/usm-anywhere/deployment-guide/shared-procedures/otxapikey.webp?fit=max&auto=format&n=qGB1vLsu4TWqy-rq&q=85&s=3a87c9c3e5277720279aabd922f11769" width="930" height="854" data-path="images/usm-anywhere/deployment-guide/shared-procedures/otxapikey.webp" />
           </Frame>

    3. Return to the Open Threat Exchange (OTX) page of the USM Anywhere Sensor Setup Wizard and paste the value in the OTX Key text box.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/qGB1vLsu4TWqy-rq/images/usm-anywhere/deployment-guide/shared-procedures/otxcopiedcode.webp?fit=max&auto=format&n=qGB1vLsu4TWqy-rq&q=85&s=3e0cffde2e42c3e1b00c0c256ff2dfe9" width="1585" height="1412" data-path="images/usm-anywhere/deployment-guide/shared-procedures/otxcopiedcode.webp" />
           </Frame>

    4. Click **Validate OTX Subscription Key**.

       With a successful validation of the key, the status at the top of the page changes to "Valid OTX key".

    5. Click **Next** when this task is complete.
  </Accordion>

  <Accordion title="Setup Complete">
    The Congratulations page summarizes the status of your configuration.

    <Frame>
      <img src="https://mintcdn.com/levelblue-5324744e/adIUcnBkryqG7nEE/images/usm-anywhere/deployment-guide/azure/azure-congratulations_350x492.webp?fit=max&auto=format&n=adIUcnBkryqG7nEE&q=85&s=68ea64a6dc0614856abdd781b5ab37dd" width="350" height="492" data-path="images/usm-anywhere/deployment-guide/azure/azure-congratulations_350x492.webp" />
    </Frame>

    Click **Start Using USM Anywhere**, which takes you to the Overview dashboard.
  </Accordion>
</AccordionGroup>

Now is a great time to run a vulnerability scan. See [Vulnerability Assessment](../../user-guide/vulnerability-assessment/vulnerability-assessment) for detailed information about running a vulnerability scan.
