connection-setup
Skill1 starsChanged 6 months agoMITView on GitHub
Create and configure Connector Namespace connections for the Azure Functions Connector Extension. USE WHEN: setting up a new connector connection, creating a Connector Namespace, authorizing OAuth consent, adding access policies, or configuring deployed app settings. Covers Office365, SharePoint, Teams, and any Microsoft.Web/connections connector. NOT FOR: trigger registration (use trigger-registration skill), extension development, or code generation.
- Pipes a download into a shell
4 other projects use a version of this, 4 of them edited.
Adopted by
Most recently taken up by
- Azure/connectors-python-sdkedited, first seen May 19, 2026
- Azure/Connectors-NodeJS-SDKedited, first seen Apr 29, 2026
- Azure/Connectors-NET-SDKedited, first seen Apr 4, 2026
- Azure/azure-functions-python-extensionsedited, first seen Feb 28, 2024
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 4
- Azure/azure-functions-python-extensions★ 753% same
- Azure/Connectors-NET-SDK★ 319% same
- Azure/Connectors-NodeJS-SDK★ 021% same
- Azure/connectors-python-sdk★ 023% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- trigger-registrationSkill
The file
We split this skill into the rules it gives an agent
5 rules. 2 are common, 2 are distinctive, and 1 is very specific to this project.
2
Common
Most of the 4 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 46
Check for an existing Connector Namespace in the resource group:
- Common: line 54
If none exists, create one:
- Distinctive: line 97
After the browser consent completes, verify the connection status:
- Very specific: line 108
If status remains Error after consent, re-run the consent link command and try again.
- Distinctive: line 153
If setup partially fails or resources are no longer needed, delete the connection first, then delete the namespace:
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Connector Namespace Connection Setup
Automates the end-to-end connection lifecycle for connector-triggered Azure Functions.
When to Use
- Developer needs a new connector connection for local dev or a deployed Function App
- Developer needs to authorize (OAuth consent) a connection
- Developer needs to wire connection URLs into deployed app settings
- Developer needs to grant access policies (CLI identity for local, managed identity for deployed)
Prerequisites
- Azure CLI ≥ 2.75.0 installed and authenticated (
az login) connector-namespaceCLI extension installed (see below)- Target subscription and resource group known
- For deployed scenarios: Function App with managed identity enabled
- Supported regions for Connector Namespace:
westcentralus. Only the Connector Namespacelocationmust be in a supported region; the resource group and Function App can be in any region.
Install the connector-namespace CLI extension
# Bash
curl -fsSL https://aka.ms/connector-namespace-cli-install | sh# PowerShell
irm https://aka.ms/connector-namespace-cli-install-ps | iex# Verify
az extension show --name connector-namespace --query "{name:name, version:version}" -o tableProcedure
Step 1: Create or Select Connector Namespace
Check for an existing Connector Namespace in the resource group:
$resourceGroup = "<resource-group>"
az connector-namespace list -g $resourceGroup -o tableIf none exists, create one:
$namespaceName = "<namespace-name>"
$location = "westcentralus" # Supported region
az connector-namespace create -g $resourceGroup -n $namespaceName --location $locationEnable a system-assigned managed identity (required for trigger callback authentication):
az connector-namespace identity assign -g $resourceGroup --namespace $namespaceName --system-assignedStep 2: Create Connection
$connectorName = "<connector-name>" # e.g., "office365", "sharepointonline", "teams"
$connectionName = "<connection-name>" # e.g., "office365-conn"
az connector-namespace connection create `
-g $resourceGroup --namespace $namespaceName `
-n $connectionName --connector-name $connectorNameThe connection starts in Error state (unauthenticated). Proceed to Step 3.
Step 3: OAuth Consent (In-Browser)
Retrieve the consent link and open it in the default browser:
$result = az connector-namespace connection list-consent-links `
-g $resourceGroup --namespace $namespaceName `
--connection-name $connectionName `
--parameters '[{"parameterName":"token","redirectUrl":"https://portal.azure.com"}]' `
-o json | ConvertFrom-Json
$link = $result.value[0].link
Start-Process $linkAfter the browser consent completes, verify the connection status:
az connector-namespace connection show `
-g $resourceGroup --namespace $namespaceName `
-n $connectionName `
--query "properties.statuses[0].status" -o tsvExpected: Connected.
If status remains Error after consent, re-run the consent link command and try again. If repeated failures occur, delete and recreate the connection.
Step 4: Get Connection Runtime URL
$runtimeUrl = az connector-namespace connection show `
-g $resourceGroup --namespace $namespaceName `
-n $connectionName `
--query "properties.connectionRuntimeUrl" -o tsv
Write-Output "Runtime URL: $runtimeUrl"Step 5: Add Access Policies
Note: Access policies are only needed when your function calls connector actions at runtime. For trigger-only scenarios (function only receives callbacks), skip this step.
For local development (Azure CLI identity)
$userObjectId = az ad signed-in-user show --query "id" -o tsv
$tenantId = az account show --query "tenantId" -o tsv
az connector-namespace connection access-policy create `
-g $resourceGroup --namespace $namespaceName `
--connection-name $connectionName -n local-dev `
--principal "identity.object-id=$userObjectId identity.tenant-id=$tenantId type=ActiveDirectory"For deployed Function App (system-assigned managed identity)
$functionAppName = "<function-app-name>"
$msiObjectId = az functionapp identity show -g $resourceGroup -n $functionAppName --query "principalId" -o tsv
$tenantId = az account show --query "tenantId" -o tsv
az connector-namespace connection access-policy create `
-g $resourceGroup --namespace $namespaceName `
--connection-name $connectionName -n functionapp-msi `
--principal "identity.object-id=$msiObjectId identity.tenant-id=$tenantId type=ActiveDirectory"ACL propagation takes 1-5 minutes. If you get 403 errors immediately after adding, wait and retry.
Cleanup / Teardown
If setup partially fails or resources are no longer needed, delete the connection first, then delete the namespace:
az connector-namespace connection delete `
-g $resourceGroup --namespace $namespaceName `
-n $connectionName
az connector-namespace delete -g $resourceGroup -n $namespaceNameSupported Connectors
arm, azureblob, azureeventgrid, azuremonitorlogs, office365, office365users, onedriveforbusiness, sharepointonline, teams, kusto, smtp, keyvault, planner, todo, and any Microsoft.Web/connections connector name.
Next Steps
- Triggers: To register polling triggers (e.g., OnNewEmail, OnNewFile), use the trigger-registration skill.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

