---
title: "Codeunit 2005 Azure AI Usage Impl."
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/2005-azure-ai-usage-impl/
type: codeunit
id: 2005
name: "Azure AI Usage Impl."
app: "Base Application"
namespace: System.AI
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/2005-azure-ai-usage-impl/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 2005 Azure AI Usage Impl.

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/2005-azure-ai-usage-impl/

| | |
| --- | --- |
| App | Base Application |
| Namespace | System.AI |
| Versions | 17-28 |
| Source file | System/AI/AzureAIUsageImpl.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| IncrementTotalProcessingTime | (Enum Azure AI Service, Decimal) | - | public | 17-28 | - | - |
| IncrementTotalProcessingTime | (Enum Azure AI Service, Decimal, var Record Azure AI Usage) | - | public | 17-28 | - | - |
| IsLimitReached | (Enum Azure AI Service, Decimal) | Boolean | public | 17-28 | - | - |
| GetTotalProcessingTime | (Enum Azure AI Service) | Decimal | public | 17-28 | - | - |
| GetLimitPeriod | (Enum Azure AI Service) | Option | public | 17-28 | - | - |
| GetResourceLimit | (Enum Azure AI Service) | Decimal | public | 17-28 | - | - |
| GetLastTimeUpdated | (Enum Azure AI Service) | DateTime | public | 17-28 | - | - |
| GetSingleInstance | (Enum Azure AI Service, var Record Azure AI Usage) | Boolean | public | 17-28 | - | - |
| SetImageAnalysisIsSetup | (Boolean) | - | public | 17-28 | - | - |
| HasChangedYear | (DateTime) | Boolean | internal | 17-28 | - | - |
| HasChangedMonth | (DateTime) | Boolean | internal | 17-28 | - | - |
| HasChangedDay | (DateTime) | Boolean | internal | 17-28 | - | - |
| HasChangedPeriod | (DateTime, Integer) | Boolean | internal | 17-28 | - | - |
| HasChangedHour | (DateTime) | Boolean | internal | 17-28 | - | - |
| GetCurrentDateTime | () | DateTime | internal | 17-28 | - | - |
| SetTestMode | (DateTime) | - | public | 17-28 | - | - |
| SetInfiniteImageAnalysisAccess | (Record Image Analysis Setup) | - | internal | 25-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Internal event | OnAfterGetCurrentDateTime | (var DateTime) | 17-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
