agentleFS
Microsoft AzureKnown publisherAzure/sap-automation/skills/sdaf-sovereign-cloud/SKILL.md

sdaf-sovereign-cloud

Skill145 starsChanged 3 months agoMITView on GitHub

Explain the current SDAF sovereign-cloud deltas without inventing a generic "all sovereigns" runbook. Focus on Azure Government only: the GitHub Actions cloud values `ARM_ENVIRONMENT=usgovernment`, `AZURE_ENVIRONMENT=AzureUSGovernment`, and `AZURE_AUDIENCE=api://AzureADTokenExchangeUSGov`; the Government `dns_zone_names` block; `USAR` / `USTE` / `USVI`; the 3.22+ image boundary; and the documented Government login, client-secret, SKU, and private-endpoint failure signatures. Use when a user says "Azure Government", "sovereign cloud", "ARM_ENVIRONMENT", "AZURE_AUDIENCE", "AADSTS900382", "USVI", or "Government DNS zones". Do NOT use for generic stage execution or to infer Azure China / German procedures from cloud-name literals alone.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 4 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do NOT trigger on: generic control-plane/workload-zone/SAP-system deployment, a general private-endpoint policy design decision, or …

    line 34
  2. Distinctive:

    If the operator asks for China, German, or another sovereign path, say the current sources in scope do not publish that runbook and stop.

    line 51
  3. Distinctive:

    Do not set only one or two of them:

    line 65
  4. Very specific:

    If Terraform later fails with AADSTS900382, first check that every Terraform step is exporting ARM_ENVIRONMENT with the ARM credentials.

    line 69
  5. Very specific:

    If a GitHub control-plane run shows Invalid index with an empty Region:, treat the pinned DOCKER_IMAGE as the first boundary check.

    line 80
  6. Very specific:

    Do not generalize that workaround to other clouds.

    line 95
  7. Distinctive:

    Do not infer an end-to-end China or German runbook from cloud-name literals alone.

    line 125
  8. Very specific:

    Do not apply Azure Government dns_zone_names or subnet-policy settings to Public Azure by default.

    line 127
  9. Very specific:

    Do not treat ARM_ENVIRONMENT as sufficient for azure/login, or AZURE_ENVIRONMENT / AZURE_AUDIENCE as sufficient for Terraform.

    line 129
  10. Very specific:

    Do not claim Local/ADO/GitHub sovereign-cloud parity unless the cited source for that surface says so.

    line 131
  11. Distinctive:

    If the question depends on an uncited cloud, surface, or workaround, say the current sources are silent and stop.

    line 133

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

SDAF Sovereign Cloud

Context-primer. Explains the currently sourced sovereign-cloud deltas for SDAF without promising parity across every surface or Azure cloud. The operator path in scope is Azure Government. For exact anchors, commands, and ownership boundaries, see references/documented-cloud-boundaries.md.

When to invoke

Trigger on: "Azure Government", "sovereign cloud", "ARM_ENVIRONMENT", "AZURE_AUDIENCE", "AADSTS900382", "USVI", "Government dns_zone_names", "wrong azure/login cloud", "Government VM size not available".

Do NOT trigger on: generic control-plane/workload-zone/SAP-system deployment, a general private-endpoint policy design decision, or unsupported-cloud enablement.

Scope boundary

Teach only Azure Government deltas that current SDAF docs or code explicitly name.

  • CHANGELOG/v3.22.0.0 is the first release note in this repo that explicitly names Azure Government support in the GitHub Actions setup flow and adds USAR, USTE, and USVI.
  • The GitHub setup utility defines sovereign OIDC values only for AzureUSGovernment and rejects unknown clouds.
  • Local shell code also maps AzureChinaCloud and AzureGermanCloud, but that alone is not an end-to-end operator runbook.

If the operator asks for China, German, or another sovereign path, say the current sources in scope do not publish that runbook and stop.

Cloud values that must move together

For the GitHub Actions surface, set these together:

  • ARM_ENVIRONMENT = usgovernment
  • AZURE_ENVIRONMENT = AzureUSGovernment
  • AZURE_AUDIENCE = api://AzureADTokenExchangeUSGov

Workflow 00 copies these values to the control-plane environment; workflow 02 propagates them to workload environments.

Do not set only one or two of them:

  • AZURE_ENVIRONMENT and AZURE_AUDIENCE steer azure/login.
  • ARM_ENVIRONMENT steers the azurerm provider.
  • If Terraform later fails with AADSTS900382, first check that every Terraform step is exporting ARM_ENVIRONMENT with the ARM credentials.

Region and configuration boundaries

Government region codes are documented in docs/region-codes.md:

  • usgovarizona → USAR
  • usgovtexas → USTE
  • usgovvirginia → USVI

If a GitHub control-plane run shows Invalid index with an empty Region:, treat the pinned DOCKER_IMAGE as the first boundary check. The documented image gate for Government region codes is SDAF 3.22+.

For Azure Government generated WORKSPACES files, uncomment the Government dns_zone_names block. For Public Azure, leave it commented. Do not enable multiple DNS blocks.

For an Azure Government workload-zone deployment that fails with PrivateEndpointCannotBeCreatedInSubnetThatHasNetworkPoliciesEnabled, set:

private_endpoint_network_policies = "Disabled"

Do not generalize that workaround to other clouds. If the operator needs the broader workload-zone/network-policy decision, hand off to sdaf-workload-zone.

Common documented Azure Government failure signatures

  • AADSTS900382 during Terraform init/apply: Terraform is still targeting the wrong cloud endpoint. Check ARM_ENVIRONMENT first.
  • azure/login succeeds against the wrong cloud: the workflow is missing AZURE_ENVIRONMENT and/or AZURE_AUDIENCE.
  • AADSTS7000215 or AADSTS700016: Terraform is not using the workflow's OIDC token. When USE_MSI=false, ARM_CLIENT_SECRET must exist and be valid in the running environment.
  • SkuNotAvailable: query the subscription's offered sizes in the target region and set the stage-specific size variable; for the control plane, that variable is deployer_size.

Hand-off

  • GitHub Actions bootstrap or workflow mechanics: use the GitHub surface plugin or the referenced GitHub bootstrap docs.
  • Local control-plane execution: sdaf-control-plane-bootstrap.
  • Workload-zone execution or the broader network-policy choice: sdaf-workload-zone.
  • SAP-system deployment: sdaf-sap-system.
  • Symptoms outside the documented Government cases above: sdaf-failure-triage.

Hard rules

  • Do not infer an end-to-end China or German runbook from cloud-name literals alone.
  • Do not apply Azure Government dns_zone_names or subnet-policy settings to Public Azure by default.
  • Do not treat ARM_ENVIRONMENT as sufficient for azure/login, or AZURE_ENVIRONMENT / AZURE_AUDIENCE as sufficient for Terraform.
  • Do not claim Local/ADO/GitHub sovereign-cloud parity unless the cited source for that surface says so.
  • If the question depends on an uncited cloud, surface, or workaround, say the current sources are silent and stop.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.