--- title: Configure the Service Graph Connector for Microsoft Defender for IoT \(Azure\) description: Use the guided setup for the Service Graph Connector for Microsoft Defender for IoT \(Azure\) to lead you through the integration steps. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/operational-technology/operational-technology-manager/configuring-sgc-microsoft-d4iot-azure.html release: australia product: Operational Technology Manager classification: operational-technology-manager topic_type: task last_updated: "2026-03-12" reading_time_minutes: 8 breadcrumb: [Service Graph Connector for Microsoft Defender for IoT \(Azure\), Integrate, Operational Technology Manager, Operational Technology] --- # Configure the Service Graph Connector for Microsoft Defender for IoT \(Azure\) Use the guided setup for the Service Graph Connector for Microsoft Defender for IoT \(Azure\) to lead you through the integration steps. ## Before you begin Dependencies and requirements: - The [Integration Commons for CMDB](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/servicenow-platform/integration-commons-for-cmdb.md) store app, which is automatically installed. - The [CMDB CI Class Models app](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/servicenow-platform/cmdb-ci-class-models.md), which is automatically installed. - The ITOM Discovery License plugin \(com.snc.itom.discovery.license\). You must activate this plugin. - ITOM Licensing plugin \(com.snc.itom.license\). For more information, see [Request Discovery](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/it-operations-management/t_ActivateTheDiscoveryPlugin.md). - The Datastream Action plugin \(com.glide.hub.action\_type.datastream\), which is automatically installed. - The Industrial Core plugin. You must activate this plugin. The Industrial Core plugin is required to access the class mappings table for the Service Graph Connector for Microsoft Defender for IoT \(Azure\). For more information about the Industrial Core plugin, see [Industrial Core plugin](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/operational-technology/operational-technology-manager/industrial-core-plugin.md). Role required: admin **Note:** If you have an earlier version of the Service Graph Connector for Microsoft Defender for IoT \(Azure\), then don’t migrate data from the old connector. You must uninstall the previous version and run the new integration. ## Procedure 1. Ensure that the application scope is set to the Service Graph Connector for Microsoft Defender for IoT \(Azure\) application by using the application picker. For more information, see [Application picker](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/application-development/c_ApplicationPicker.md). 2. Navigate to **All** > **Service Graph for MSFT D4IoT \(Azure\)** > **Guided Setup**. 3. On the Getting started page, select **Get Started**. 4. To access the Azure resources, complete the following: 1. Select the Access to Azure Resources task. 2. Once you complete the instructions in the description, select **Mark as Complete**. 5. To set up the connections and credentials, complete the following: 1. In the Configure Connections and Credentials section, select the Setup Connections and Credentials task. 2. Select **Configure**. 3. Select the **SG-OT Azure Connection** record. 4. Select the Create New Connection & Credential related link. 5. In the Create Connection and Credential window, fill in the following fields. |Field|Description| |-----|-----------| |Connection Name|Display name for the connection record| |Connection URL|Azure URL| |OAuth Client ID|Client ID \(application ID\) or Service Principal ID| |OAuth Client Secret|Client secret key associated with the Service Principal| |OAuth Token URL|URL to fetch Authorization token. Replace <tenantid> in the URL with the Tenant ID value.| **Note:** When a token generation is successful, a new window appears with a success message. When a token generation isn’t successful, a new window with the error message `OAuth flow failed` appears. Please check the details provided and try again by editing the record you created. 6. Select **Create and Get OAuth Token**. 6. To test the connection, complete the following: 1. In the Setup Connections and Credentials section, select the Test/Validate Connection task. 2. Select the **Test Connection** UI action from the related links section on the data source record for sensors. After completing the connection test, view the results. You must perform the suggested troubleshooting steps until the test result returns **Success**. 7. To configure the system properties, complete the following: 1. In the Configure System Properties section, select **Configure**. 2. Configure the following system properties.
| Property | Description |
|---|---|
| sn\_msftd4iotazsgc.resource\_path | Set the resource path property.The default Resource Path for the ARG REST API version 2021-03-01 is`/providers/Microsoft.ResourceGraph/resources`. |
| sn\_msftd4iotazsgc.pagesize.sensor | Set the page size property for sensors.- As Azure ARG REST API supports pagination, you can choose the number of records per page for each API. - The default is 1000 records per page. **Note:** 1000 is also the maximum number of records per page. |
| sn\_msftd4iotazsgc.pagesize.device | Set the page size property for devices.- As Azure ARG REST API supports pagination, you can choose the number of records per page for each API. - The default is 1000 records per page. **Note:** 1000 is also the maximum number of records per page. |
| sn\_msftd4iotazsgc.get\_all\_devices | - For devices, you can choose to fetch all records \(box checked\) or the delta \(box unchecked\). - The DELTA fetches all the records created or updated since the start time of the last successful import in the CMDB. **Note:** When you run the Devices Integration for the first time, all records are imported independent of this property. |
| sn\_msftd4iotazsgc.convert\_sensor\_names\_to\_lowercase | Set this property for devices import. - This system property is used to convert the sensor names provided by Microsoft Azure into lowercase while importing devices. - This is required as Microsoft Azure expects data for the query in a lowercase format. |
| sn\_msftd4iotazsgc.filter.device\_sub\_types | Set this property for filtering the devices during device import by sub type. - Comma-separated list of Microsoft Azure sub types to filter the devices. - For example: to import only PLCs and servers, provide the value from the DeviceSubType attribute from Microsoft Azure as `Server, PLC`. |
| sn\_msftd4iotazsgc.filter.device\_tags | Set this property for filtering the devices during device import by device tag. - Comma-separated list of case sensitive tags that are needed to filter devices. - For example: to import devices with specific tags, provide a list of values from the DeviceTags attribute in Microsoft Azure. |
| sn\_msftd4iotazsgc.filter.custom\_query | Set this property to add more filters for device import apart from the Device SubType and Device Tags filter. - Query to filter based on other attributes. - This allows filtering for other attributes. For more information, see [Azure Query Language](https://learn.microsoft.com/en-us/azure/governance/resource-graph/concepts/query-language). |
| sn\_msftd4iotazsgc.azure\_d4iot\_site\_map\_fields | An object of fields from the Microsoft Defender for IoT \(Azure\) Site Map. When a field is set to **True**, the Service Graph Connector for Microsoft Defender for IoT \(Azure\) passes the value of the Site Map field to the corresponding field on each CI discovered by the integration at the Azure site.If set to **False** or not populated on the Site Map record, the field isn't set on the imported CIs associated with the Azure site. For consistency with the other integrations using the NIDS framework, check this system property. By default, only **location** and **equipment\_model\_entity** are set to **True**. |
| sn\_msftd4iotazsgc.devices\_fetch\_type | Indicates if devices are fetched per sensor, Active Scan devices, or both. |
| sn\_msftd4iotazsgc.active\_scan\_get\_all\_devices | Set this system property to import all Active Scan devices. If not checked, then only the Active Scan devices created or updated since the last successful import are imported. The default value is **No**. |
| sn\_msftd4iotazsgc.filter.active\_scan.device\_sub\_types | Comma-separated list of Azure subtypes to filter the Active Scan devices. For example, to only import PLCs and servers, provide the value from the Device SubType attribute as `Server, PLC` in Azure. |
| sn\_msftd4iotazsgc.filter.active\_scan.device\_tags | Comma-separated list of case sensitive tags needed to filter Active Scan devices. For example, to import Active Scan devices with specific tags, provide a list of values from the DeviceTags attribute from Azure. |
| sn\_msftd4iotazsgc.filter.active\_scan.custom\_query | Query to filter other attributes for Active Scan devices. For example, to allow filtering on other attributes.For more information about the Azure query language, see [Azure Query Language](https://learn.microsoft.com/en-us/azure/governance/resource-graph/concepts/query-language) for more information. |