Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Deploys Python Flask, Django, or FastAPI code to Azure App Service Linux, creating resource group, plan, and web app if missing.
32% 73%+41 ptsof test cases passed
Passed 16 of 22 test cases with the skill, and 7 of 22 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
<#
.SYNOPSIS
Generates a valid Azure App Service name from a folder name + 8 hex chars.
.DESCRIPTION
Produces a name suitable for `az webapp create -n <name>` that satisfies
Azure App Service naming rules:
- lowercase a-z, 0-9, and hyphens only
- starts with a letter, ends with letter or digit
- total length <= 40 chars (slug truncated as needed)
- regex: ^[a-z][a-z0-9-]{1,38}[a-z0-9]$
.PARAMETER FolderName
Optional. The base name to derive the slug from. Defaults to the current
working directory's leaf name.
.EXAMPLE
.\generate-app-name.ps1
# Uses current folder name, e.g. "my-flask-app" → "my-flask-app-a3f9c1d2"
.EXAMPLE
.\generate-app-name.ps1 -FolderName "my-flask-app"
#>
param(
[string]$FolderName = (Split-Path -Leaf (Get-Location))
)
$ErrorActionPreference = "Stop"
# Lowercase, replace non-[a-z0-9] with '-', collapse repeats, trim hyphens.
$slug = $FolderName.ToLowerInvariant()
$slug = [regex]::Replace($slug, '[^a-z0-9]+', '-')
$slug = [regex]::Replace($slug, '-+', '-')
$slug = $slug.Trim('-')
if ([string]::IsNullOrEmpty($slug)) {
$slug = "app"
}
# 8 hex chars from a fresh GUID (segment before the first '-').
$suffix = [guid]::NewGuid().ToString().Split('-')[0].Substring(0, 8).ToLowerInvariant()
# Reserve 9 chars for "-XXXXXXXX" so the total stays <= 40.
$maxSlugLen = 31Next to this one in the catalogue, plus more from the same author.