Domain 1: Design and Implement an MLOps Infrastructure (Part 2 of 2)
This lesson covers 3 exam topics: GitHub Integration and Source Control, Infrastructure as Code with Bicep, CLI and GitHub Actions, Network Isolation for ML Workspaces. Each topic has a short video, then the notes: key facts, exam traps and what to check in the official docs.
1. GitHub Integration and Source Control
Central question: How do ML projects use Git and GitHub securely?
Facts
- GitHub Actions sign in to Azure with azure/login; the recommended, more secure option is OpenID Connect with a federated identity credential on an Entra application or user-assigned managed identity (no stored secret); service principal secrets are a fallback.
- Workflows run az ml CLI commands (jobs, pipelines, deployments) on triggers such as push, pull request or workflow_dispatch.
- Workspace jobs record Git information (repo, branch, commit) when submitted from a cloned repo (general background).
Practice (design guidance)
Keep training code, component YAML, environment specs and pipeline definitions in Git; branch and pull-request reviews; never commit secrets or data.
Exam traps
- Long-lived client secrets in GitHub instead of OIDC.
- Notebooks only, no version control.
- Data files committed to Git.
2. Infrastructure as Code with Bicep, CLI and GitHub Actions
Central question: How do you provision ML environments repeatably?
Facts
- Workspaces and associated resources can be created from Azure Resource Manager templates (Bicep compiles to them) with az deployment group create.
- Azure ML resources (compute, datastores, environments, endpoints) are defined in YAML and managed with the az ml CLI extension.
- GitHub Actions workflows automate provisioning and ML jobs after signing in with azure/login.
Pattern (design guidance)
1Bicep: workspace, storage, key vault, ACR, App Insights, networking2CLI YAML: compute, environments, components, endpoints3GitHub Actions: PR -> validate (what-if) -> deploy dev -> approve -> deploy prodExam traps
- Portal-click environments that drift.
- Secrets in templates instead of Key Vault references and identities.
- Skipping what-if/validation before deployment.
3. Network Isolation for ML Workspaces
Central question: How do you keep ML workloads off the public internet?
Facts
- Managed virtual network isolation: the workspace creates a managed VNet that managed compute uses automatically; isolates outbound access from the workspace and managed compute.
- Outbound modes: Allow internet outbound or Allow only approved outbound (outbound rules: private endpoints, service tags, FQDNs) to minimize data exfiltration.
- Use managedNetworkKind v1 (v2 is preview).
- Inbound: private endpoints for the workspace and disable public network access.
- Private endpoints can be used to Azure resources in either outbound mode.
Exam traps
- Only inbound private endpoint while compute still reaches the internet.
- Allow internet outbound when exfiltration must be minimized.
- Forgetting outbound rules for required package repos in approved-only mode.
References
- AI-300 study guide — checked Oct 22, 2026
- GitHub Actions with Azure ML — checked Oct 22, 2026
- MLOps with GitHub — checked Oct 22, 2026
- Create a workspace from a template — checked Oct 22, 2026
- Managed network isolation — checked Oct 22, 2026
- Network isolation planning — checked Oct 22, 2026
Check your understanding
Most secure GitHub-to-Azure auth?Show answerHide answer
Answer
OIDC with federated credentials.Deploy a Bicep file to a resource group?Show answerHide answer
Answer
az deployment group create.Minimize data exfiltration?Show answerHide answer
Answer
Allow only approved outbound.Action that signs in?Show answerHide answer
Answer
azure/login.Define a compute cluster as code?Show answerHide answer
Answer
YAML with az ml.