async def create_indicator(self, indicators_data, session):
        """To create indicator into Microsoft Sentinel.

        Args:
            indicators_data (dict): Indicator data
            session (session object): aiohttp session object

        Raises:
            DataminrPulseException: DataminrPulseException
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            display_name = indicators_data.get('properties').get('displayName')
            index_value = display_name.split(':')[-1]
            retry_count_429 = 0
            retry_count_401 = 0
            while retry_count_429 <= 3 and retry_count_401 <= 1:
                create_indicator_url = consts.CREATE_SENTINEL_INDICATORS_URL.format(
                    subscriptionId=consts.AZURE_SUBSCRIPTION_ID,
                    resourceGroupName=consts.AZURE_RESOURCE_GROUP,
                    workspaceName=consts.AZURE_WORKSPACE_NAME,
                )
                headers = {
                    "Content-Type": "application/json",
                    "Authorization": "Bearer {}".format(self.bearer_token),
                }
                response = await session.post(
                    url=create_indicator_url,
                    headers=headers,
                    data=json.dumps(indicators_data),
                )
                if response.status >= 200 and response.status <= 299:
                    applogger.info(
                        "{}(method={}) : {} : Created the indicator with status_code: {}, Index-{}.".format(
                            consts.LOGS_STARTS_WITH,
                            __method_name,
                            consts.RETRY_FAILED_INDICATORS,
                            response.status,
                            index_value
                        )
                    )
                    return None
                elif response.status == 400:
                    json_response = await response.json()
                    applogger.warning(
                        "{}(method={}) : {} : url: {}, Status Code : {}: Error while\
                             creating Indicator, Error:{}, Index-{}.".format(
                            consts.LOGS_STARTS_WITH,
                            __method_name,
                            consts.RETRY_FAILED_INDICATORS,
                            create_indicator_url,
                            response.status,
                            json_response,
                            index_value
                        )
                    )
                    return indicators_data
                elif response.status == 429:
                    applogger.error(
                        "{}(method={}) : {} : trying again error 429.".format(
                            consts.LOGS_STARTS_WITH,
                            __method_name,
                            consts.RETRY_FAILED_INDICATORS,
                        )
                    )
                    retry_count_429 += 1
                    time.sleep(consts.SENTINEL_429_SLEEP)
                elif response.status == 401:
                    applogger.error(
                        "{}(method={}) : {} : Unauthorized, Invalid Credentials, trying again error-401.".format(
                            consts.LOGS_STARTS_WITH,
                            __method_name,
                            consts.RETRY_FAILED_INDICATORS,
                        )
                    )
                    self.bearer_token = self.auth_sentinel()
                    headers["Authorization"] = "Bearer {}".format(self.bearer_token)
                    retry_count_401 += 1
                else:
                    json_response = await response.json()
                    applogger.error(
                        "{}(method={}) : {} : url: {}, Status Code : {}: Error while\
                             creating Indicator Error:{}, Index-{}.".format(
                            consts.LOGS_STARTS_WITH,
                            __method_name,
                            consts.RETRY_FAILED_INDICATORS,
                            create_indicator_url,
                            response.status,
                            json_response,
                            index_value
                        )
                    )
                    raise DataminrPulseException()
            applogger.error(
                "{}(method={}) : {} : Max retries exceeded for microsoft sentinel.".format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    consts.RETRY_FAILED_INDICATORS,
                )
            )
            raise DataminrPulseException()
        except DataminrPulseException:
            applogger.error(
                "{}(method={}) : {} : Error generated while Creating Indicator. Index-{}".format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    consts.RETRY_FAILED_INDICATORS,
                    index_value
                )
            )
            return indicators_data

        except Exception as error:
            applogger.error(
                "{}(method={}) : {} : Error generated while Creating Indicator, Error-{}, Index-{}.".format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    consts.RETRY_FAILED_INDICATORS,
                    error,
                    index_value
                )
            )
            return indicators_data
To create indicator into Microsoft Sentinel.

        Args:
            indicators_data (dict): Indicator data
            session (session object): aiohttp session object

        Raises:
            DataminrPulseException: DataminrPulseException
        
Solutions/Dataminr Pulse/Data Connectors/DataminrPulseAlerts/RetryFailedIndicators/sentinel.py