Agent skill

Azure App Service Security

by vinayaklatthe in vinayaklatthe/microsoft-security-skills

Guidance for securing Azure App Service web apps and APIs — managed identity, Easy Auth with Microsoft Entra ID, network isolation via private endpoints + VNet integration, HTTPS / TLS hardening…

MITAuto-check passedDevOps & Cloud

Install Azure App Service Security

skills CLI
$ npx skills add vinayaklatthe/microsoft-security-skills --skill azure-app-service-security -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install vinayaklatthe/microsoft-security-skills azure-app-service-security --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/vinayaklatthe/microsoft-security-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/azure-app-service-security .claude/skills/azure-app-service-security && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
azure-app-service-security
GitHub stars
175
Token cost
~1.9k tokens
SKILL.md length
910 words
Files
1
Skills in repo
50
Repo updated
First seen
Licence
MIT

At a glance

Guidance for securing Azure App Service web apps and APIs — managed identity, Easy Auth with Microsoft Entra ID, network isolation via private endpoints + VNet integration, HTTPS / TLS hardening…

  • Works in 7 steps: Enable managed identity —… → Easy Auth for sign-in — Use built-in App… → Secrets via Key Vault references — Store… → …
  • Azure Functions specifics only (similar but separate)
  • SKILL.md covers When to use, Pick the configuration by…, Approach and Guardrails, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Azure App Service Security is an agent skill from vinayaklatthe/microsoft-security-skills. Guidance for securing Azure App Service web apps and APIs — managed identity, Easy Auth with Microsoft Entra ID, network isolation via private endpoints + VNet integration, HTTPS / TLS hardening, Key Vault references for secrets, and front-end WAF (Front Door / App Gateway). WHEN: App Service security, secure web app on Azure, Easy Auth, App Service managed identity, private endpoint web app, VNet integration, App Service TLS, Key Vault references, harden App Service, FTP disable, WAF in front of App Service…

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Secrets management. It works with Microsoft Azure, Azure Functions, Microsoft Entra ID and Azure API Management. The repository describes itself as: Curated Microsoft Security skills for AI agents - Defender, Sentinel, Entra, Purview, Intune, Security Copilot. The licence is MIT.

When your agent uses it

  • Azure Functions specifics only (similar but separate)
  • AKS workloads (different platform)
  • VM-hosted web apps

Example prompts

  • “/azure-app-service-security”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Enable managed identity — System-assigned managed identity by default. Grant it
  2. Easy Auth for sign-in — Use built-in App Service authentication (Easy Auth) with
  3. Secrets via Key Vault references — Store secrets in Key Vault; reference them in app
  4. Network isolation — VNet integration for outbound (so the app can reach private
  5. Transport hardening — Enforce HTTPS-only, minimum TLS 1.2 (TLS 1.3 preferred),
  6. WAF in front when public — Front Door (global) or App Gateway with WAF (regional) in
  7. Monitor + Defender — Diagnostic logs to Log Analytics, Defender for App Service on

What it can do on your machine

Read from SKILL.md and the folder at commit 15f16df. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • learn.microsoft.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Azure App Service Security loads about 1.9k tokens when it runs. Until then it costs about 173 tokens; SKILL.md has 910 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~173
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from vinayaklatthe/microsoft-security-skills at commit 15f16df, republished under its MIT licence (© vinayaklatthe). 910 words, ~1,940 tokens.

Download SKILL.mdSave it as .claude/skills/azure-app-service-security/SKILL.md (or your agent's skills folder).
name
azure-app-service-security
description
Guidance for securing Azure App Service web apps and APIs — managed identity, Easy Auth with Microsoft Entra ID, network isolation via private endpoints + VNet integration, HTTPS / TLS hardening, Key Vault references for secrets, and front-end WAF (Front Door / App Gateway). WHEN: App Service security, secure web app on Azure, Easy Auth, App Service managed identity, private endpoint web app, VNet integration, App Service TLS, Key Vault references, harden App Service, FTP disable, WAF in front of App Service, access restrictions. DO NOT USE for Azure Functions specifics only (similar but separate), AKS workloads (different platform), or VM-hosted web apps.
license
MIT
metadata.author
Microsoft
metadata.version
0.1.0

Azure App Service Security

Azure App Service hosts web apps and APIs as a managed PaaS. Securing it means eliminating secrets in config, removing public exposure where possible, enforcing modern transport, and fronting it with a WAF when it has to be public.

When to use

Hardening web apps and APIs hosted on Azure App Service. Use this skill to plan identity, network, secrets, and transport posture for a Web App / API App.

Do not use this skill for Azure Functions only (similar but separate platform), AKS workloads, or VM-hosted web apps.

Pick the configuration by exposure pattern

ExposureInboundOutboundFront-end
Internal-only app (intranet, API for VNet workloads)Private endpoint, public access disabledVNet integration to spokeInternal Application Gateway
Public web app, sensitive dataPublic + access restrictions to WAF onlyVNet integrationFront Door or App Gateway with WAF, Prevention mode
Public web app, basicPublic, defaultNone / VNet integrationApp Gateway with WAF
API consumed by partnersPrivate endpoint + APIM in frontVNet integrationAPIM (with WAF on APIM if public)
Background worker / no inboundPublic access disabledVNet integrationNone

Rule of thumb: if it doesn't need to be on the internet, use a private endpoint and disable public network access. If it does need to be on the internet, put Front Door / App Gateway with WAF in Prevention mode in front and restrict the app to accept traffic only from the WAF's IP range or service tag.

Approach

  1. Enable managed identity — System-assigned managed identity by default. Grant it least-privilege roles on Azure SQL (SQL DB Contributor is wrong - use AAD auth + contained user), Storage (Storage Blob Data Reader), Key Vault (Key Vault Secrets User). Verify: app has managed identity; no SQL / Storage connection strings with embedded passwords in config.

  2. Easy Auth for sign-in — Use built-in App Service authentication (Easy Auth) with Microsoft Entra ID for OIDC sign-in without writing auth code. Configure the redirect URI, token store, and requireAuthentication = true to gate the whole app. Verify: anonymous request returns 302 redirect to Entra sign-in; authenticated request returns 200 with the user's principal claims.

  3. Secrets via Key Vault references — Store secrets in Key Vault; reference them in app settings as @Microsoft.KeyVault(SecretUri=...). No code change; managed identity reads the secret at start / refresh. Verify: app settings show Key Vault Reference as Resolved; no plaintext secrets in config.

  4. Network isolation — VNet integration for outbound (so the app can reach private endpoints, on-prem via gateway). Private endpoint for inbound on sensitive apps. Disable public access if private endpoint is used. Verify: app outbound IP is in the integrated subnet; inbound test from public internet to private-endpoint-only app = 403 / connection refused.

  5. Transport hardening — Enforce HTTPS-only, minimum TLS 1.2 (TLS 1.3 preferred), disable FTP (use FTPS or deployment center only), enable HSTS where appropriate. Verify: HTTP request 301-redirects to HTTPS; httpsOnly = true; minTlsVersion = "1.2" or higher; ftpsState = "Disabled" if no FTP needed.

  6. WAF in front when public — Front Door (global) or App Gateway with WAF (regional) in Prevention mode. Restrict App Service inbound to the WAF using Access Restrictions with the WAF's service tag (AzureFrontDoor.Backend) or IP range and the X-Azure-FDID header. Verify: direct request to the App Service URL = 403; request via the WAF FQDN = 200.

  7. Monitor + Defender — Diagnostic logs to Log Analytics, Defender for App Service on the plan, App Insights for app telemetry. Alert on anomalous authentication failures.

Show full SKILL.md (343 more words)Show less

Guardrails

  • Remove public inbound exposure with private endpoints for sensitive apps; pair with WAF for public apps. Apps directly on the internet without a WAF are scanned constantly.
  • Use managed identity + Key Vault references to eliminate secrets in config. Connection strings in app settings are an audit finding waiting to happen.
  • Enforce HTTPS-only and modern TLS; disable legacy protocols and FTP. TLS 1.0 / 1.1 and FTP are immediate audit failures.
  • Easy Auth doesn't replace authorisation. It authenticates; you still need to check roles / claims in code for sensitive actions.
  • Access Restrictions are the lock on the back door. Without restricting App Service to the WAF's IPs / FDID header, attackers bypass the WAF by hitting the App Service URL directly.
  • Defender for App Service catches things AV doesn't. Webshell upload, anomalous app behaviour - enable on the plan.

Common anti-patterns

  • "Connection string in app settings as plaintext" - Visible to anyone with Reader on the app. Key Vault reference.
  • "Public App Service URL with WAF as 'recommended add-on later'" - Attackers bypass the WAF on day one. Lock down access restrictions when WAF goes in.
  • "FTP enabled for legacy deployment" - Cleartext credentials. Use FTPS or deployment center.
  • "HTTPS-only off because of one legacy callback" - Fix the callback. Don't downgrade the whole app.
  • "Easy Auth + 'allow anonymous to /api/*'" - Defeats the gate. Authenticate everything; authorise inside.
  • "VNet integration without disabling public access" - You added security but didn't remove the old door.

Example prompts

  • Harden an Azure App Service web app with Easy Auth, managed identity, and TLS.
  • How do I lock down App Service with private endpoints and VNet integration?
  • Use Key Vault references for App Service secrets instead of plain app settings.
  • Put Front Door with WAF in front of App Service and lock the back door.
  • Disable FTP, enforce HTTPS-only, and set minimum TLS 1.2.
  • Review my App Service network and authentication configuration for security gaps.

Microsoft Learn

© vinayaklatthe, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/azure-app-service-security of vinayaklatthe/microsoft-security-skills.

Open the folder on GitHubat commit 15f16df

Compare with similar skills

Azure App Service Security next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Azure App Service Security compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Azure App Service Security this skillvinayaklatthe/microsoft-security-skills175—~1.9kAutomated safety check: PassMIT
Azure FunctionsDataDog/dd-trace-dotnet572—~4.7kAutomated safety check: PassApache-2.0
Azure Cloud ServicesMicrosoftDocs/Agent-Skills776—~2.3kAutomated safety check: PassCC-BY-4.0
Apex Entra App Registrationjonathan-vella/apex217—~1.3kAutomated safety check: PassMIT
Azure Key VaultKilo-Org/kilo-marketplace1901 repos~1.9kAutomated safety check: PassMIT
Azure Data API BuilderMicrosoftDocs/Agent-Skills776—~4.3kAutomated safety check: PassCC-BY-4.0

Similar skills

  • Azure Functions

    DataDog/dd-trace-dotnet

    Official

    Dev/test workflow for tracer engineers working on the Datadog .NET tracer — build a local Datadog.AzureFunctions NuGet package, deploy it to a test Azure Function App, trigger it, and analyze…

    572 GitHub stars~4.7k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Azure Cloud Services

    MicrosoftDocs/Agent-Skills

    Official

    Expert knowledge for Azure Cloud Services development including troubleshooting, best practices, decision making, limits & quotas, security, configuration, integrations & coding patterns, and…

    776 GitHub stars~2.3k tokensUpdated 5 days ago
    DevOps & CloudAuto-check passed
  • Apex Entra App Registration

    jonathan-vella/apex

    WORKFLOW SKILL — Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration.

    217 GitHub stars~1.3k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Azure Key Vault

    Kilo-Org/kilo-marketplace

    Guidance for Azure Key Vault — securely storing and managing secrets, keys, and certificates with RBAC, network isolation, managed identity access, soft delete / purge protection, and rotation.

    190 GitHub starsUsed in 1 repo~1.9k tokens
    Backend & APIsAuto-check passed
  • Azure Data API Builder

    MicrosoftDocs/Agent-Skills

    Official

    Expert knowledge for Azure Data Api Builder development including troubleshooting, best practices, decision making, limits & quotas, security, configuration, integrations & coding patterns, and…

    776 GitHub stars~4.3k tokensUpdated 5 days ago
    Backend & APIsAuto-check passed
  • Azure Bicep Skill

    timothywarner-org/claude-code

    A skill your agent uses when authoring, reviewing, or refactoring Azure Bicep code.

    224 GitHub stars~2.9k tokensUpdated 2 mo ago
    DevOps & CloudAuto-check passed

More from vinayaklatthe/microsoft-security-skills

All 50 skills in this repo
  • API Security Design

    vinayaklatthe/microsoft-security-skills

    Guidance for designing secure APIs on Azure - authentication, authorization, gateway controls, input validation, rate limiting, secret management, and runtime threat detection - aligned to OWASP API…

    175 GitHub stars~2.2k tokensUpdated 3 mo ago
    Auto-check passed
  • Azure Arc

    vinayaklatthe/microsoft-security-skills

    Guidance for Azure Arc — projecting on-premises, multicloud (AWS/GCP), and edge servers, Kubernetes, and data services into Azure Resource Manager for unified governance, security, and management.

    175 GitHub stars~1.9k tokensUpdated 3 mo ago
    Auto-check passed
  • Azure Bastion Jit

    vinayaklatthe/microsoft-security-skills

    Guidance for secure remote VM management in Azure using Azure Bastion combined with Defender for Cloud just-in-time (JIT) VM access.

    175 GitHub stars~2.2k tokensUpdated 3 mo ago
    Auto-check passed
  • Azure Confidential Computing

    vinayaklatthe/microsoft-security-skills

    Guidance for Azure Confidential Computing — protecting data in use through hardware-based Trusted Execution Environments (TEEs).

    175 GitHub stars~2.4k tokensUpdated 3 mo ago
    Auto-check passed
  • Azure Ddos Protection

    vinayaklatthe/microsoft-security-skills

    Guidance for Azure DDoS Protection — Network Protection (per-VNet) and IP Protection (per public IP) tiers built on the same always-on Microsoft platform.

    175 GitHub stars~2k tokensUpdated 3 mo ago
    Auto-check passed
  • Azure Firewall

    vinayaklatthe/microsoft-security-skills

    Guidance for Azure Firewall — managed cloud-native L3-L7 stateful network firewall for centralised egress, east-west, and ingress control.

    175 GitHub stars~1.7k tokensUpdated 3 mo ago
    Auto-check passed

Questions about Azure App Service Security

What does Azure App Service Security do?

Guidance for securing Azure App Service web apps and APIs — managed identity, Easy Auth with Microsoft Entra ID, network isolation via private endpoints + VNet integration, HTTPS / TLS hardening…. Azure App Service Security is an agent skill from vinayaklatthe/microsoft-security-skills. Guidance for securing Azure App Service web apps and APIs — managed identity, Easy Auth with Microsoft Entra ID, network isolation via private endpoints + VNet integration, HTTPS / TLS hardening, Key Vault references for secrets, and front-end WAF (Front Door / App Gateway).

When should I use Azure App Service Security?

Azure App Service Security fits situations like: azure Functions specifics only (similar but separate); AKS workloads (different platform); VM-hosted web apps.

How do I install Azure App Service Security in Claude Code?

Run `npx skills add vinayaklatthe/microsoft-security-skills --skill azure-app-service-security -a claude-code`. Or copy the skill folder (skills/azure-app-service-security in vinayaklatthe/microsoft-security-skills) into .claude/skills/azure-app-service-security in your project. Claude Code loads it when a task matches its description.

How do I install Azure App Service Security in Codex?

Run `npx skills add vinayaklatthe/microsoft-security-skills --skill azure-app-service-security -a codex`. Or copy the skill folder (skills/azure-app-service-security in vinayaklatthe/microsoft-security-skills) into .agents/skills/azure-app-service-security in your project. Codex loads it when a task matches its description.

Can I use Azure App Service Security in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add vinayaklatthe/microsoft-security-skills --skill azure-app-service-security -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/azure-app-service-security, .gemini/skills/azure-app-service-security, .github/skills/azure-app-service-security and .opencode/skills/azure-app-service-security in your project.

What does Azure App Service Security need to run?

SKILL.md names no scripts, command-line tools or credentials: Azure App Service Security is instructions for the agent only.

Does Azure App Service Security access the network?

SKILL.md names 1 domain. As links in the text: learn.microsoft.com. This is read from the text; nothing was executed.

Is Azure App Service Security safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Azure App Service Security use?

Azure App Service Security is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Azure App Service Security use?

About 1.9k tokens (SKILL.md is roughly 7.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Azure App Service Security?

Skills that share tags, products or a category with Azure App Service Security: Azure Functions (DataDog/dd-trace-dotnet, 572 stars), Azure Cloud Services (MicrosoftDocs/Agent-Skills, 776 stars), Apex Entra App Registration (jonathan-vella/apex, 217 stars) and Azure Key Vault (Kilo-Org/kilo-marketplace, 190 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Azure App Service Security?

vinayaklatthe (a GitHub user) maintains it in vinayaklatthe/microsoft-security-skills, which has 175 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on June 18, 2026.

Source: vinayaklatthe/microsoft-security-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.