AIMS develops and hosts the Azure Agent in a full SaaS way. So to configure the Azure Agent in the AIMS Platform you need to provide information on how to connect to where the Azure Subscription with resources to be monitored are hosted, the way to do this in Azure is by using the Azure AD and create an Application which will have the required access to the Resources you want to monitor. 


Before you connect your Azure subscription to AIMS, we highly recommend that you read the short article with a focus on the Azure section; "How to work with anomalies".


The following steps describe how to connect:


1. Login to the AIMS Environment where you want to configure the Azure Agent and navigate to the settings/Agents.



2. Click Connect Agent and Select Azure Agent in the pop up screen.



3. In the Azure Portal ( https://portal.azure.com ) perform the next steps to gather the required information:

    3.1 You need an App registration to allow AIMS to monitor your Azure Resources.

        3.1.1 Open App registrations in the Azure Portal.

        3.1.2 Click New application registration.

        3.1.3 Type any valid name.

        3.1.4 Select "Web" in Redirect URI.

        3.1.5 Specify any URL.

        3.1.6 Click Register.

        3.1.7 Select the application you've created, copy its Application ID value and paste it into the Client Id in AIMS.


 

    3.2 On the application created in step 3.1 we need to create an access key:

        3.2.1 Open "Certificates & secrets" -> "New client secret" in the application.

        3.2.2 Type anything in description.

        3.2.3 Select 'Never expires' in Duration.

        3.2.4 Click Save. A value will appear under Value.

        3.2.5 Copy the value and paste it into the Client Secret field in AIMS



    3.3 We need to provide permissions the Subscription or Resources we want to provide access in the created Application:

        3.3.1 Open the Subscription you want to monitor in the Azure Portal.

        3.3.2 Open Access control (IAM) of the Subscription.

        3.3.3 Click Add.

        3.3.4 Select 'Reader' in Role.

        3.3.5 Select the application you created earlier in Select.

        3.3.6 Click Save.


If you only want certain Resource groups to be monitored, then remove the "Reader" role from the necessary Resource groups within the subscription.





   3.4 We need the Subscription ID from the Azure AD securing the Subscription:

        4.1 Open the Subscription you want to monitor in the Azure Portal.

        4.2 Open Properties.

        4.3 Copy the Subscription ID value.

 

   3.5 We need the Directory domain from the Azure AD securing the Subscription:

        5.1 Open Azure Active Directory in the Azure Portal.

        5.2 Open Custom Domain Names.

        5.3 Copy the Directory Name in the primary domain.


4. Insert a System Name - Choose a name for how the Azure Agent will be shown in the Agents List.

5. Click Create.


After this you can go into the Topology section of AIMS and see the newly added Resource Groups, metadata and metrics will be collected straight away.