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.
Generate text covers open-ended text creation requested from Moodle's AI features, such as drafting material that a teacher then reviews. It carries a different risk profile from summarizing because the output is new content rather than a condensed version of existing text. Azure needs a text generation deployment of its own, so its settings, capacity and access can be reviewed separately from the explain and summarize actions.
- Separate deployment: create a generation deployment rather than reusing the explanation deployment, so each can be reviewed on its own terms.
- Deployment ID field: enter the ID in the generate text setting so Moodle sends this action to the intended deployment.
- Human review: make it clear that teachers review drafts before anything is published to students.
- Capacity: ask your Azure administrator to confirm the capacity available to the deployment for the expected volume of requests.
- Role access: decide which roles can reach the action before the pilot begins.
Before go-live, check that generated drafts reach only the users who requested them and that the deployment's usage appears in the Azure resource where your team expects it.
Summarise text condenses longer material, such as a discussion thread or a block of lesson content, into a shorter version. It is the action most likely to receive student-authored content as input, so its data handling deserves the closest review. Azure needs a summarization deployment with its own deployment ID, and the team should be able to say which Moodle content reaches that deployment before any users try it.
- Input scope: list the content types that can be summarized, including forum posts and other student work, and decide which ones are in scope for the pilot.
- Deployment ID field: set the ID in the summarise text setting, independent of the explain and generate actions.
- Regional handling: confirm the Azure region of the deployment against your data residency requirements and your privacy notices.
- Logging: confirm what Moodle records for each request, including the action, the user and the time, and who can read those records.
- Retention: agree with the data protection team how long summaries and logs are kept.
Before enabling the action, confirm the deployment's region and the Moodle logs with your privacy and security teams, and record the decision in writing.
Generate image creates images for the text editor. It is the only one of the four actions that returns non-text output, and it is the action most often left off because many teams do not need it. Azure needs an image generation model deployment, and its deployment ID is set separately from the text actions. A team that does not want generated images can leave this action unset on the Azure provider, configure it with another provider, or disable it, but the decision should be recorded so editors know what to expect.
- Image model deployment: create a deployment that supports image generation in the Azure resource, and confirm it is available in the region your data rules allow.
- Separate ID: enter the image deployment ID in the generate image setting, not in a text action field.
- Editor placement: confirm where the image feature appears for teachers in your Moodle version and who can use it.
- Content review: plan how generated images are checked for appropriateness and for rights questions before they appear in courses.
- Leave-off decision: if you omit this action, document that editors cannot generate images through the Azure provider.
Before the pilot, generate a sample image from a teacher account and confirm that it appears in the editor and that the deployment is the one you intended.
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 choice | When it fits | What it constrains |
|---|---|---|
| One deployment for all actions | A pilot or small rollout where one model meets every use, and fewer resources are easier to govern | Explain, summarise, generate text and image all share one model's cost, quota and behavior, so tuning one action affects all |
| Separate deployment ID per action | Organizations that want different models or quotas for summarise text versus image generation, or want to track usage per action | More deployments to create, name, monitor and keep in sync; each deployment ID must be entered against its action |
| Endpoint in a chosen Azure region | Organizations with residency requirements that name where personal data may be processed | Region selection must match the Azure resource you provision; confirm the region and data handling terms with your Azure administrator |
| Endpoint in another region | Teams that need a specific model that is only available in a different region | Traffic leaves your chosen region, which may conflict with data residency commitments; document the decision for your privacy team |
| Authentication through provider settings | Standard Azure resource keys held in Moodle's provider configuration for a single service identity | Keys must be rotated and stored carefully; confirm the authentication options exposed in your release before designing key handling |
| Image generation enabled for the editor | Organizations that want students or teachers to create images from the text editor and have a deployment that supports image generation | Image 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 roles | Organizations that want generated images only for staff, or not at all during the pilot | Requires 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.
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.
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.
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.
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.
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.
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.
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

