Skip to content

[SVLS-9100] docs(aas): Function App slot install guidance and MoveDirectory troubleshooting#36956

Merged
Lewis-E merged 6 commits into
masterfrom
fix/455-function-app-install-docs
Jun 3, 2026
Merged

[SVLS-9100] docs(aas): Function App slot install guidance and MoveDirectory troubleshooting#36956
Lewis-E merged 6 commits into
masterfrom
fix/455-function-app-install-docs

Conversation

@Lewis-E

@Lewis-E Lewis-E commented May 22, 2026

Copy link
Copy Markdown
Contributor

Summary

We support a subset of Azure Function Apps with the Serverless Windows Extension, and this is hidden in corners of unrelated documentation. Separate out the function app support and give it function-app specific install, setup, and troubleshooting examples.

  • Adds azure_functions/dotnet_extension.md — new dedicated page for the .NET APM Extension on Azure Function Apps, with PowerShell, Bicep, and ARM install tabs and the WEBSITE_PRIVATE_EXTENSIONS=0 sticky slot setting workaround for datadog-aas-extension#455
  • Updates azure_functions/_index.md[9] link updated from /serverless/azure_app_service/windows_code/?tab=net/serverless/azure_functions/dotnet_extension/ so Function App users land on the right page
  • Updates azure_app_service/windows_code.md:
    • ARM template directory link: ARM/install-templates/ (coordinated with companion rename PR in datadog-aas-extension)
    • -SlotName parameter added to PowerShell install command with cross-reference to new Function App page
    • Callout added pointing Function App users to dotnet_extension.md
    • Version headers (// Version: 1.0.0 / "metadata": { "version": "1.0.0" }) added to all Bicep and ARM inline snippets for comparison against repo template files
    • Plan terminology fix: "Basic, Standard, and Premium plans" → "Dedicated (App Service) or Premium plans". This aligns with the existing wording in azure_functions/_index.md line 21 ("For .NET Windows Azure Functions running on Dedicated/App Service or Premium plans"). _index.md is unchanged and won't appear in this diff — the old wording in windows_code.md was describing App Service plan SKU tiers rather than the plan types, which was inconsistent and potentially misleading.

Companion PR

This PR must be merged alongside the rename PR in datadog-aas-extension. This PR is already merged, so the links will work.

Companion: DataDog/datadog-aas-extension#457

Test plan

  • Verify dotnet_extension.md renders correctly (tabs, collapsibles, code blocks)
  • Verify callout in windows_code.md links to correct anchor
  • Verify side menu works correctly

🤖 Generated with Claude Code

@Lewis-E
Lewis-E force-pushed the fix/455-function-app-install-docs branch 2 times, most recently from f4c4659 to dedc8a0 Compare May 22, 2026 17:25
@Lewis-E
Lewis-E force-pushed the fix/455-function-app-install-docs branch from dedc8a0 to 3d4a826 Compare May 22, 2026 17:53
@Lewis-E Lewis-E changed the title docs(aas): Function App slot install guidance and MoveDirectory troubleshooting [SVLS-9100] docs(aas): Function App slot install guidance and MoveDirectory troubleshooting May 22, 2026
@Lewis-E
Lewis-E force-pushed the fix/455-function-app-install-docs branch 2 times, most recently from d47d984 to 1257b9d Compare May 22, 2026 18:35
@github-actions github-actions Bot added the Architecture Everything related to the Doc backend label May 22, 2026
@Lewis-E
Lewis-E force-pushed the fix/455-function-app-install-docs branch from 1257b9d to 87c3754 Compare May 22, 2026 18:37
@Lewis-E
Lewis-E marked this pull request as ready for review May 22, 2026 18:44
@Lewis-E
Lewis-E requested review from a team as code owners May 22, 2026 18:44
@Lewis-E
Lewis-E requested review from ava-silver and cswatt May 22, 2026 18:44
@brett0000FF brett0000FF added the editorial review Waiting on a more in-depth review label May 22, 2026
@brett0000FF

Copy link
Copy Markdown
Contributor

Created DOCS-14491 for a review.

@ava-silver ava-silver left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor (shortcode extraction) and new Function App page look good. A few content issues to address before merge — flagged inline. Wording/style I'll leave for the editorial pass.

Verified separately against the companion repo: the script's -SlotName + Function App auto-applies WEBSITE_PRIVATE_EXTENSIONS=0 as a sticky slot setting (script v2.0.0, lines 84–88), and all referenced install-template/script paths exist in master.

Comment thread content/en/serverless/azure_functions/dotnet_extension.md
Comment thread content/en/serverless/azure_functions/dotnet_extension.md
Comment thread content/en/serverless/azure_app_service/windows_code.md
Comment thread content/en/serverless/azure_functions/dotnet_extension.md Outdated
@Lewis-E
Lewis-E requested a review from ava-silver May 28, 2026 18:23
Lewis-E and others added 3 commits June 1, 2026 10:00
…roubleshooting

- Add 'Install on Azure Function Apps' section with Bicep/ARM/PowerShell tabs
  covering WEBSITE_PRIVATE_EXTENSIONS=0 sticky slot workaround for issue #455
- Add MoveDirectory error troubleshooting entry
- Update ARM template link from ARM/ to install-templates/ (companion rename in aas-extension repo)
- Document -SlotName parameter in PowerShell section

Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
…ot templates

Brings Bicep and ARM snippets in dotnet_extension.md in line with the
install-function-app-slot templates in datadog-aas-extension#457. The
original snippets used a hardcoded single-element array for slotConfigNames,
which would silently de-sticky any pre-existing slot settings. The templates
now use union()/createArray() with an explicit existingStickyAppSettingNames
parameter, matching the repo templates exactly.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
@Lewis-E
Lewis-E force-pushed the fix/455-function-app-install-docs branch from 4732018 to 952d4c9 Compare June 1, 2026 14:01
Lewis-E and others added 2 commits June 1, 2026 10:17
…ATE_EXTENSIONS=0

Add slot swap steps to all installation methods (Bicep, ARM, Manual, PowerShell).
WEBSITE_PRIVATE_EXTENSIONS=0 is required on the deploy slot to prevent MoveDirectory
file-lock failures, but it also prevents the runtime from loading private extensions.
The extension only becomes active after swapping to production, where this setting
is absent.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@datadog-prod-us1-6

This comment has been minimized.

…nd add a

  .NET-isolated-worker example to the Function App page, since the shared
  shortcode showed ASP.NET Core code on the Functions page.
- Remove the now-unused aas-logging-dotnet-code-example shortcode.
@Lewis-E
Lewis-E force-pushed the fix/455-function-app-install-docs branch from 0b8f840 to c82b71c Compare June 3, 2026 01:37
@Lewis-E
Lewis-E merged commit 91b12ac into master Jun 3, 2026
19 checks passed
@Lewis-E
Lewis-E deleted the fix/455-function-app-install-docs branch June 3, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Architecture Everything related to the Doc backend editorial review Waiting on a more in-depth review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants