nano-core/nano.templates/nano-remove-azure-managed-identity
Claude Code and agent skill by nano-core/nano.templates
- community
Checking that the SKILL.md file is still in the repository.
Remove Azure Managed Identity / Kubernetes Workload Identity wiring from a Nano.Library-based application - deletes service-account.yaml, the workload-identity pod annotations, and the CI "Managed Identity" step. Use when the user asks to remove Managed Identity or Workload Identity from a Nano API, Web, or Console application - checks first whether a Data or Storage provider still depends on it.
Install
npx vskill@latest install nano-core/nano.templates/nano-remove-azure-managed-identitySKILL.md
The same SKILL.md was published earlier as nano-core/nano.templates/nano-remove-azure-managed-identity.
Nano remove managed identity
Fully removes Azure Managed Identity / Kubernetes Workload Identity wiring from an existing Nano API, Web, or Console application — the counterpart to nano-add-azure-managed-identity. Read that skill first — this one undoes exactly what it adds.
Before making any change, determine
- Is Managed Identity currently wired? Check for
.kubernetes/service-account.yamland the
Managed Identity workflow step. If neither exists, say so and stop.
- What depends on it? Two genuinely different situations — check both, and don't treat them
the same:
- A Data provider currently authenticating via Managed Identity (MySql/PostgreSQL/
SqlServer). Don't check only the base `appsettings.json` — per nano-add-data-provider, Data:AuthenticationType is always "Credentials" there, even when Staging/Production actually authenticates via Managed Identity, so the base file alone can't tell you which world you're in. Check two places instead:
.kubernetes/configmap.yamlfor aData__AuthenticationType: %SQL_AUTH_TYPE%entry — the
convention-following case, only present if nano-add-data-provider's Staging/Production section was wired up for this provider, and it only ever expands to Azure.
appsettings.Staging.json/appsettings.Production.jsondirectly for their own
Data:AuthenticationType — nothing stops someone from setting it there by hand instead of going through the ConfigMap, so don't assume the convention was followed just because the ConfigMap entry is absent; check both before concluding either way. Either one set to Azure → this provider depends on Managed Identity. Neither → it's already pure Credentials in every environment, nothing to revert, this dependency doesn't apply. If it does apply: this one has a real fallback, Credentials — but reverting to it isn't a config flip alone, it needs an actual connection string/credential the user supplies (this skill can't invent one), plus removing the CI <Provider> Database Migration/SQL Server Create Database steps' Managed-Identity-based user creation and the Data__AuthenticationType ConfigMap entry. Ask the user which they want: supply real credentials and revert this provider to Credentials as part of this change, or leave Managed Identity in place and stop here. Don't silently pick one.
- Azure Storage (
AzureFileshareProvider,nano-add-storage-provider's Azure section).
Unlike Data, there's no credentials-based fallback for Storage — per AGENTS.md's Configuration table, Storage has no AuthenticationType setting at all; Azure storage's file-share CSI mount is unconditionally Workload-Identity-authenticated (mountWithWorkloadIdentityToken: "true"). If Azure storage is in use, Managed Identity cannot be removed without breaking it outright — the only ways forward are switching to Local storage (nano-remove-storage-provider then nano-add-storage-provider with Local) or removing storage entirely first. Tell the user this plainly and stop; don't proceed with Managed Identity removal while Azure storage still depends on it. If neither applies, proceed normally.
Kubernetes
- Delete
.kubernetes/service-account.yaml. - Remove the
azure.workload.identity/use: "true"label andserviceAccountNamefield from
.kubernetes/deployment.yaml/cronjob.yaml's pod template.
- Remove the
service-account.yamlapply block from theKubernetes Deployworkflow step.
GitHub Actions
Remove the Managed Identity step entirely. Leave AZURE_GROUP_KUBERNETES alone — every app's workflow needs it independently for basic AKS deploy (az aks get-credentials), regardless of Managed Identity.
⚠ This does not delete the underlying Azure user-assigned identity or its federated credential in Azure itself (az identity delete) — that's a real Azure resource this skill doesn't provision or own the lifecycle of. Removing the workflow step just stops maintaining it going forward; say so explicitly rather than implying the Azure-side resource is gone too.
After making the change
- Show the user every file touched/deleted.
- Restate whatever was flagged in step 2 — the Data provider reverted to
Credentials(and what
that required), or the fact that Storage blocked the whole removal — one more time here.
- If step 1 or step 2's Storage case stopped the skill early, that's the whole response.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingLib.Emailing/.claude/skills/nano-remove-azure-managed-identity/SKILL.md
Popularity
- Repository stars
- 5
- Repository forks
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nano-core/nano.templates/nano-remove-azure-managed-identity)