Azure MCP Agent for secure, compliant resource deployment
Project description
Azure SFI MCP Agent - Installation Guide
Description
Azure SFI MCP Agent is a Model Context Protocol (MCP) server that enables secure, compliant Azure resource deployment directly from VS Code using GitHub Copilot Chat. This agent helps you create SFI compliant Azure resources with automatic compliance orchestration.
Capabilities
Azure Resource Management
- List Azure Permissions - View your active RBAC role assignments and access levels
- List Azure Resources - Browse resources across subscriptions and resource groups
- Create Resource Groups - Create Azure resource groups with project tagging
- Create SFI-Compliant Resources - Deploy Azure resources with automatic compliance features:
- Storage Accounts (ADLS Gen2)
- Key Vaults
- Azure OpenAI
- AI Search
- AI Foundry
- Cosmos DB
- Log Analytics Workspaces
- Network Security Perimeters (NSP)
- User Assigned Managed Identity (UAMI)
- Fabric Capacity
- Add Diagnostic Settings - Configure Log Analytics monitoring for resources
- NSP Attachment - Configure Network Security Perimeter attachment for supported resources
Azure DevOps Integration
- Create DevOps Projects - Set up new Azure DevOps projects with initial repositories
- Create DevOps Repositories - Add new Git repositories to existing projects
- Create DevOps Branches - Create branches in repositories from base branches
- Deploy Pipeline YAML - Deploy pipeline templates (CodeQL, 1ES) to repositories
- Create DevOps Pipelines - Create and configure Azure Pipelines from YAML files
- List DevOps Projects - View all projects in an organization
- List DevOps Repositories - View all repositories in a project
Microsoft Fabric Integration
- Create Fabric Workspaces - Create workspaces in Fabric capacities
- Attach Workspace to Git - Connect Fabric workspaces to Azure DevOps repositories
- List Fabric Permissions - View workspace permissions and access levels
Prerequisites
Before installing the Azure SFI MCP Agent, ensure you have the following installed:
Required Software
- Visual Studio Code - Download
- PowerShell Core (pwsh) - Download
- Azure CLI - Download
- Python 3.10+ - Download
- uvx - Download
- GitHub Copilot Chat Extension - Install from VS Code Marketplace
Azure Requirements
- Active Azure subscription
- Appropriate Azure RBAC permissions for resource creation
- Azure CLI authenticated (
az login) - Set context for one subscription (
az account set --subscription <subscriptionid>)
ADO Requirements
- Access to Azure DevOps organization
- Project Collection Admin permissions for creating projects
- Project Admin permissions for creating repositories, and pipelines
- Azure CLI authenticated (
az loginoraz login --allow-no-subscriptions)
Fabric Requirements
- Access to Microsoft Fabric workspaces
- Appropriate permissions to create and manage workspaces
- Fabric capacity available for workspace creation
- ADO Available for GIT integration
- Azure CLI authenticated (
az loginoraz login --allow-no-subscriptions)
Installation Steps
Step 1: Open GitHub Copilot Chat
- Launch Visual Studio Code
- Open GitHub Copilot Chat (click the chat icon in the sidebar or press
Ctrl+Alt+I)
Step 2: Access MCP Tools Menu
- In the Copilot Chat window, click on the 🔧 Tools button
- Select "Install MCP Server from PyPI" or similar option
Step 3: Install the Package
- When prompted for the package name, enter:
azuresfimcpagent - Select the latest version when prompted
- Wait for the installation to complete
Step 4: Configure MCP Settings
Add the following configuration to the mcp.json file:
{
"servers": {
"azuresfimcpagent": {
"type": "stdio",
"command": "uvx",
"args": [
"azuresfimcpagent==1.0.0"
]
}
}
}
Note: Replace
1.0.0with the latest version number you installed.
Step 5: Restart VS Code
- Close and reopen Visual Studio Code to load the MCP server configuration
- Open GitHub Copilot Chat again
- Select the MCP Tool installed
Step 6: Verify Installation
In GitHub Copilot Chat, type:
show menu
You should see the available actions menu confirming successful installation.
💡 Usage Examples
Azure Resource Management
List Your Azure Permissions
list my azure permissions
List Azure Resources
list resources in resource-group-name
Create a Resource Group
create resource group named my-rg in eastus for project MyProject
Create a Storage Account
create storage account
Create a Key Vault
create key vault
The agent will interactively prompt you for required parameters and automatically:
- ✅ Deploy the SFI compliant resources
- ✅ Configure Log Analytics diagnostic settings
- ✅ Apply security best practices and compliance controls
Azure DevOps Operations
Create a DevOps Project
create azure devops project named MyProject with repo MainRepo in organization myorg
Create a DevOps Repository
create devops repository named MyRepo in project MyProject
Create a Branch
create branch feature/new-feature from main in MyRepo
Deploy Pipeline YAML
deploy codeql pipeline yaml to MyRepo in pipelines folder
Create a Pipeline
create pipeline named MyPipeline-1ES for MyRepo
List DevOps Projects
list all devops projects in organization myorg
List DevOps Repositories
list all repos in project MyProject
Microsoft Fabric Operations
List Fabric Permissions
list my fabric permissions
Create a Fabric Workspace
create fabric workspace named MyWorkspace in capacity /subscriptions/.../capacities/mycapacity
Attach Workspace to Git
attach fabric workspace to azure devops git
Azure CLI Authentication
Ensure you're logged into Azure CLI:
az login
az account show
PowerShell Core Required
This agent requires PowerShell Core (pwsh), not Windows PowerShell. Verify:
pwsh --version
📄 License
MIT License - see LICENSE file for details
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file azuresfimcpagent-2.0.0.tar.gz.
File metadata
- Download URL: azuresfimcpagent-2.0.0.tar.gz
- Upload date:
- Size: 48.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b5916cb6942e0570035020890dad8bb9a2831b66902000287bb23230a38f8cf
|
|
| MD5 |
5e42648c2e409357e870ecf0201a4f00
|
|
| BLAKE2b-256 |
f0b2719a5ed2785e67f7ad638d3e135e4310544382c8c09646a83ba701195c61
|
File details
Details for the file azuresfimcpagent-2.0.0-py3-none-any.whl.
File metadata
- Download URL: azuresfimcpagent-2.0.0-py3-none-any.whl
- Upload date:
- Size: 62.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1ef7b70f4139430339be053906def27526f7750242182f3c4469311ffc716cf
|
|
| MD5 |
90e27e4b204b4848ed333fc34d39b62a
|
|
| BLAKE2b-256 |
17a077b36e7ced1b908c4ce373f2d15bb4107a926c4850b9929f299dde0e9595
|