Moodle AI with Azure AI

Connecting Moodle to Azure AI for an organisation already on Microsoft, with one deployment per action, a chosen endpoint and a region that matches your data handling rules.

On this page

Moodle AI with Azure AI: when a Microsoft-based organisation should use it

An institution that already runs Microsoft services and wants Moodle's AI actions to run through its own Azure AI resources is the reader this section is for. The Azure AI provider in Moodle lets you point the AI subsystem at Azure-hosted models, with a deployment ID for each action. The topic facts list four actions the provider supports: explain text, generate image, generate text and summarise text. Choosing this provider is a decision about where inference runs, who holds the contract and which Azure resources your security team must review. Provider selection itself (how Azure compares with OpenAI, AWS Bedrock, Gemini, DeepSeek, Anthropic or a self-hosted Ollama server) is covered on its own page, so this page assumes the choice has been made and focuses on configuration and governance.

The fit is strongest when Azure is already the place where your identity, logging, data residency commitments and procurement sit. In that case, the practical gain is that AI traffic follows the same tenancy, billing and monitoring rules as the rest of your estate. The fit is weaker if your AI usage needs a model family that your Azure resource does not deploy, or if your compliance team has not yet mapped Azure's regional options to your own data handling obligations. Before enabling any action, confirm with your Azure administrator which models are deployed in which region, and record the deployment name you will enter for each action. Also confirm that the image generation capability you want is available in the Azure resource you plan to use, because support depends on the deployed model rather than on Moodle alone.

Treat the deployment mapping as a governance artefact, not a setup detail. Each action maps to a deployment, so a change in one Azure deployment changes behaviour for that action across the site. Ask your Azure team who can change deployments, keys and endpoints, and how those changes are logged. Ask your data protection team to review what each action sends and where it is processed before you move past a test site. A useful first step is an illustrative pilot with one course and two actions, checking the endpoint, the deployment IDs and the resulting action records, before widening access. Validating these settings early means the later policy, placement and privacy decisions rest on facts about your own environment.

How each Moodle AI action maps to an Azure deployment

Explain text asks the provider to make a passage of course material easier to understand. In Moodle it is one of the actions learners and staff can reach through course assistance, so it is often the first action a pilot exercises. On the Azure side it needs a text model deployment that the team has approved for this kind of content, and a deployment ID that Moodle stores against this action only. Because learners read the output directly, the team should test it with real course text before enabling it.

  • Azure deployment: one text model deployment dedicated to explanations, created in an Azure resource the organization controls.
  • Deployment ID field: the ID for this action goes in the explain text setting, separate from the other three actions.
  • Output review: sample explanations from several subjects and check accuracy, tone and reading level.
  • Placement: confirm where learners see the action in your Moodle version before you announce it.
  • Reference: the Azure AI provider language strings list the action names your installed version expects.

Before the pilot, confirm with your Azure resource which deployment value Moodle expects, then run a test request from both a teacher account and a student account.

Configuration options and when each fits

This table compares the main Azure AI provider configuration choices in Moodle: one deployment or several, endpoint region, authentication method and where image generation is placed. Read each row for the condition under which the option fits and what it constrains later. Confirm exact setting labels in your Moodle version before you plan around them.

Configuration choiceWhen it fitsWhat it constrains
One deployment for all actionsA pilot or small rollout where one model meets every use, and fewer resources are easier to governExplain, summarise, generate text and image all share one model's cost, quota and behavior, so tuning one action affects all
Separate deployment ID per actionOrganizations that want different models or quotas for summarise text versus image generation, or want to track usage per actionMore deployments to create, name, monitor and keep in sync; each deployment ID must be entered against its action
Endpoint in a chosen Azure regionOrganizations with residency requirements that name where personal data may be processedRegion selection must match the Azure resource you provision; confirm the region and data handling terms with your Azure administrator
Endpoint in another regionTeams that need a specific model that is only available in a different regionTraffic leaves your chosen region, which may conflict with data residency commitments; document the decision for your privacy team
Authentication through provider settingsStandard Azure resource keys held in Moodle's provider configuration for a single service identityKeys must be rotated and stored carefully; confirm the authentication options exposed in your release before designing key handling
Image generation enabled for the editorOrganizations that want students or teachers to create images from the text editor and have a deployment that supports image generationImage generation needs its own deployment ID; enabling it does not add a separate content review step, so policy and placement decisions still apply
Image generation disabled or limited to specific rolesOrganizations that want generated images only for staff, or not at all during the pilotRequires role capability and placement checks; confirm placements in your version before a pilot

Setting up the Azure AI provider in Moodle, step by step

This sequence takes a Moodle site from a version check to a tested Azure AI provider, with each action mapped to its own deployment and placements enabled only after a successful test. Each step closes with a check you can record before moving on.

  1. Confirm the Moodle version and AI subsystem

    The Moodle administrator confirms the site runs a version that includes the AI subsystem and the Azure AI provider plugin, then checks the AI management pages under site administration to see the provider list. Confirm the exact version and provider availability against the Moodle releases page and the Moodle 5.1 and 5.3 release notes, since requirements differ between releases. Check that the web server document root points to the /public directory if the site is on Moodle 5.1 or later. The step is done when the AI providers page loads without errors and lists Azure AI as an available provider, which you should record with the Moodle version number in your change log.

  2. Create Azure AI resources in the chosen region

    A cloud administrator creates the Azure AI resource in the Azure region that matches your data handling decision, and confirms with your compliance team which region the prompts and generated output will be processed in. Record the region in the project register before any model is deployed, because regional choices affect where personal data is processed. Confirm with Microsoft which models are available in that region at the time you deploy, since model availability varies. The step is done when the resource exists, sits in an approved subscription and region, and the owner has written down the region name and the resource owner.

  3. Deploy one model per Moodle action

    The cloud administrator creates a separate model deployment in the Azure resource for each action you plan to enable in Moodle: explain text, generate image, generate text and summarise text. Moodle's Azure AI provider uses a deployment ID for each action, so the deployments can use different models sized for each task. Keep deployment names clear, for example by action and environment, so the Moodle configuration is easy to audit later. Image generation needs a deployment that supports images, so check the model type before you create it. The step is done when each action you intend to enable has its own deployment listed in the Azure resource and the list is saved for the next step.

  4. Record the endpoint and deployment IDs

    The cloud administrator copies the endpoint URL of the Azure resource and the deployment ID for each action into a restricted configuration record, along with the API key handling method your security team approves. Store the API key in your secrets process rather than in a shared document, and limit who can view it. Verify that the endpoint is the one shown for the resource in the Azure portal and that each deployment ID matches the name shown for its deployment. The step is done when a second person has checked each endpoint and deployment ID against the Azure portal and the record is stored in an access-controlled location.

  5. Configure each action in Moodle

    A Moodle administrator enters the Azure AI provider settings in the Moodle AI management pages, including the endpoint, the API key and the deployment ID for each action: explain text, generate image, generate text and summarise text. Leave any action without a deployment disabled rather than pointing it at another deployment, so that a missing model cannot produce unexpected results. Save the settings and open the provider configuration again to confirm the values were stored. The step is done when every enabled action shows its own deployment ID and no action is left with a blank or shared value that you did not intend.

  6. Enable placements for the approved actions

    The Moodle administrator enables the placements that use each action, such as course assistance for summarise and explain, and the text editor for text and image generation. Enable only the placements that your pilot policy covers and record the decision with its owner. Check the placement settings for each action, because an action can be configured at the provider but still be unavailable where users expect it. The step is done when the placement list matches the approved pilot scope and the change is recorded with the date, the administrator and the reason.

  7. Test each action with a non-personal prompt

    A tester signs in with a non-production or pilot account and runs each enabled action with a prompt that contains no personal or confidential data, such as a short general-knowledge passage. Confirm that explain text, generate text, summarise text and generate image each return output and that the output appears in the correct placement. Check the Moodle logs and the Azure resource metrics to confirm that requests reached the expected deployment. Where an action fails, check the endpoint, deployment ID and region first, then the model availability in Azure. The step is done when every enabled action returns a result from its own deployment, and the test results are filed with the configuration record before any real users are included.

How a Moodle AI request reaches Azure and returns

The request starts when a user triggers an AI action in Moodle, such as a summary in course assistance or an image in the text editor. The Moodle AI subsystem checks the action's placement and access settings, then hands the request to the Azure AI provider, which selects the endpoint and deployment ID configured for that action. The request crosses the trust boundary to your Azure resource, and the generated response returns to Moodle, where the action record is written to the Moodle database. Check that each action points to the deployment you intended and that the Azure resource sits in the region your data handling rules require.

Request path from a Moodle user action to an Azure deployment and back, with the log location marked.

Regional data handling and where prompts are processed

The region of your Azure AI resource and of each model deployment decides where Moodle's prompts are processed, so this is the first residency decision to settle before you enter any endpoint in Moodle. Moodle sends each request to the endpoint and deployment you configure for an action, so the location you pick in Azure is the location your course content and user text travel to. Choose the region deliberately for each deployment, and record the choice in the same change log as your deployment IDs.

Do not assume that every model or deployment type is available in every region. Model availability and deployment types (for example, standard regional deployments compared with options that route across regions) differ by region and change over time. For each model you plan to use for explain text, generate text, summarise text or generate image, check in the Azure documentation and in your own Azure subscription that the model and deployment type exist in your chosen region. If a model is not available there, the action will fail or you will need to change the region, which changes your residency position, so test this before a pilot rather than after.

Data residency commitments come from Microsoft's contract and documentation, not from Moodle. Moodle's provider plugin only forwards requests; it does not decide how Azure stores, logs or processes prompts or generated output. Ask your Microsoft account team which data handling terms apply to your agreement, which regions and deployment types those terms cover, and whether abuse monitoring or prompt logging applies to your subscription. Ask your privacy office to review those answers against your data protection obligations and to confirm which categories of personal data may appear in prompts before any action is enabled for students.

Security and operational considerations for Azure keys and endpoints

The Azure AI provider in Moodle holds credentials that can send course content to a paid cloud service, so the controls around it matter as much as the initial setup. The cards below cover where keys live, who can reach them, what Moodle records and how the service is watched after go-live. Confirm each item with your Azure administrators and your Moodle administrators before the pilot starts.

Key storage and rotation

The provider needs an Azure API key and the endpoint for your resource. Keep the key out of shared documents and chat threads, store it in a secrets manager you already operate, and set a rotation schedule that your Moodle administrators can carry out without a site outage. Ask who holds the second key during rotation so that one key can be replaced while the other keeps requests flowing. Record the rotation owner and date in your change log.

Least-privilege access to the Azure resource

Grant the people and services that manage the Azure AI resource only the roles their work needs. Separate the people who create deployments from those who read keys, and avoid using a subscription owner account for day-to-day Moodle work. Confirm in the Azure portal which identities can list or regenerate keys, because anyone with that permission can take over the provider connection.

Who can change provider settings in Moodle

Provider configuration, including the endpoint, the key and the deployment ID for each action, is controlled by Moodle capabilities and site administration. Limit these rights to a small named group and review that group after staff changes. A change to a deployment ID can silently route an action to a different model, so treat provider edits like any other production change and log who made them.

Logging and retention of action records

Moodle keeps records of AI actions taken by users, so decide how long they stay before go-live. Check what each record contains, who can view the AI usage reports, and how records are removed when a course or user is deleted. Confirm the retention period with your data protection team and set it in Moodle rather than relying on defaults.

Content filtering and abuse monitoring in Azure

Azure OpenAI and related Azure AI services apply content filtering and may run abuse monitoring on requests, depending on the resource type and your approved configuration. Confirm in the Azure documentation and your contract which filters are active, whether prompts are stored for abuse monitoring, and whether you can request changes. Record the answers, because students and staff will ask whether their prompts are reviewed by anyone.

Monitoring quota and failures after go-live

Once students and teachers use the provider, watch request volume, rate limit responses and failed calls for each deployment. A quota exhaustion or an expired key usually shows up first as failed actions in course assistance or the editor, not as an alert. Set up Azure metrics alerts and a regular Moodle review of failed actions so that the support desk hears about problems before users do.

Questions buyers ask about Moodle Azure AI setup

How much effort does a Moodle Azure AI setup take?

The effort depends on how many AI actions you enable, how many Azure AI deployments you need, and how much review your security and data protection teams require before a pilot. The configuration itself is a bounded task: you create a provider instance, enter the endpoint and credentials, and map a deployment ID to each action you want (explain text, generate image, generate text and summarise text). The larger share of effort usually sits in Azure resource decisions, regional choices, access reviews and testing each placement with real course content. Ask any partner for a written scope that lists which actions, which placements and which environments are included, because those choices drive the work more than the settings screens do.

Can our own team set up Moodle Azure AI without a partner?

A team with a working Moodle administrator and someone who can create Azure AI resources can usually complete the basic configuration alone. The Azure AI provider is set up through Moodle's AI administration screens, using an endpoint, a key and one deployment ID per action. Where a partner adds value is in the parts that are easy to get wrong: confirming the deployment names match what is in Azure, checking that each placement behaves as intended for students and teachers, reviewing permissions and logging, and documenting the evidence your compliance team will ask for. Decide early which of these you will handle internally and which you want reviewed.

What do we need from our Azure and Moodle administrators?

You need named owners on both sides before the work starts. On the Azure side, someone must create or select the Azure AI resource, set the region, deploy the models you plan to use, and issue or store the access key under your secrets policy. On the Moodle side, an administrator must enable the AI subsystem, install or confirm the Azure AI provider, enter the endpoint and deployment IDs, and set which placements and roles can use them. Your security team should confirm where keys are stored and who can rotate them, and your data protection lead should confirm which regional deployment Moodle will call. Agree these owners in writing so the pilot does not stall on access requests.

How long does a pilot of Moodle Azure AI take?

Pilot timing depends on scope and approvals, so there is no fixed duration to plan around. The technical configuration can be quick once the Azure resources exist, but pilots usually wait on provisioning requests, data protection sign-off, the choice of which courses and roles take part, and the time needed to test each placement with teachers and students. Ask for a timeline that separates these stages and names who approves each one. If your governance process requires an AI policy or usage review before any user sees the feature, start that review at the same time as the Azure provisioning.

What recurring costs come from Azure AI consumption?

The main recurring cost is Azure consumption: you pay Microsoft for the model calls that Moodle makes through your deployments, and the bill grows with the volume and type of actions users trigger. Text actions, summaries and image generation are priced differently, so the deployment you map to each action affects spend. The Azure resource itself, the region you select and any monitoring you add also carry ongoing charges. Support, upgrades and testing are separate recurring costs if you use a partner retainer. Ask for a quote that separates one-time setup work from ongoing Azure usage, and set a usage budget and alerts in Azure before enabling students.

How does Azure AI differ from choosing another Moodle AI provider?

Azure AI is set up as a provider that uses a deployment ID for each action, so the configuration is organized around your Azure deployments rather than a single model choice. This suits organizations already running Microsoft services, where Azure billing, regional options and identity controls are already in place. Other providers differ in data residency terms, contract conditions, supported actions such as image generation, and whether the model can run inside your own infrastructure. Compare providers on those points before you commit, and confirm current supported actions for each provider in Moodle's documentation for your release.

Where does Moodle send prompts when Azure AI is enabled?

When a user triggers an enabled action, Moodle sends the request to the Azure AI endpoint you configured, and Azure processes it in the region of the deployment you chose. Confirm this path with your data protection lead, because the region of the Azure resource determines where that processing occurs. Check which action records Moodle stores on your site and how long they are kept. Treat the Azure configuration as one part of the data flow, not the whole of it, and review what course content and personal data could appear in prompts before you enable any placement.

How DeployOpen scopes and delivers Moodle AI with Azure AI

DeployOpen configures the Azure AI provider inside a Moodle site that runs in infrastructure you control, so the deployment IDs, endpoint settings and regional data handling are written down and reviewable by your security and compliance teams. The work is planned as a fixed scope, with each action, placement and access setting agreed in writing before configuration starts.

How we scope

  • Confirm your Moodle version and whether it is on a release that includes the Azure AI provider
  • List the AI actions you want enabled, such as summarise text, explain text, generate text and generate image
  • Map which Azure AI deployment ID serves each action, and which Azure region and endpoint hold your data

How we build

  • Configure the Azure AI provider endpoint, credentials and deployment ID for each enabled action
  • Set placements in course assistance and the text editor, and test each one against a non-production course
  • Check image generation separately, since it depends on your Azure deployment and editor settings

How we hand over

  • Provide a configuration record listing providers, deployment IDs, endpoints, placements and access roles
  • Document the regional data handling position so your privacy team can review it against your policies
  • Run a handover session with administrators covering settings, test results and known limits

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts
  • Ongoing support, Moodle upgrades and continuous testing are available as a retainer
  • Confirm with your Azure administrators and Moodle release notes before any change to deployment IDs

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.