Skip to content

Update Manage applications guides to use the synced demo sample - #1994

Open
zachcasper wants to merge 2 commits into
edgefrom
zachcasper-update-manage-applications
Open

Update Manage applications guides to use the synced demo sample#1994
zachcasper wants to merge 2 commits into
edgefrom
zachcasper-update-manage-applications

Conversation

@zachcasper

Copy link
Copy Markdown
Collaborator

Description

The Getting Started guide was updated to embed the tested static/samples/demo/app.bicep sample, but the Manage applications section still used hard-coded, drift-prone Bicep. This PR updates all three Manage applications guides to embed the synchronized demo samples with focused code highlighting, and aligns their content, naming, and source-linking.

Content changes

  • Model application resources (definitions): walks through the real app.bicep using line-range snippets instead of inline Bicep. Adds a new Step 3: Name your resources (static vs. Environment-suffixed names, using the environmentName snippet) and renumbers the remaining steps. Each step highlights only the lines it discusses.
  • Model application dependencies (connections): references the demo app.bicep from the Model application resources guide instead of re-embedding it, and embeds app-redis.bicep for the added cache and connection. Adds a version-correct source link to app-redis.bicep.
  • Deploy applications (deploy): Step 1 references the shared definition rather than re-embedding it; operational commands use the deployed app name (demo-default). The Prune section now walks through a concrete example of removing the redis cache and deleting the orphaned redis-default resource.

Tooling change

  • Extends the rad shortcode (layouts/shortcodes/rad.html) with optional startLine/endLine extraction so pages can embed a specific range of a synced sample without adding marker comments to the vendored file. Fully backward-compatible.

Review fixes

  • Corrected line-highlight ranges and removed cases that highlighted an entire snippet.
  • Standardized source links across the guide.
  • Fixed stale references (frontend/db/my-appdemo-default/redis-default) and Application GraphApplication graph.

Validation

  • hugo --gc --minify builds cleanly.
  • markdownlint-cli2 passes with 0 issues on all three pages.

Signed-off-by: Zach Casper <zachcasper@microsoft.com>
@zachcasper
zachcasper requested review from a team as code owners August 19, 2026 17:09
@zachcasper
zachcasper changed the base branch from v0.60 to edge August 19, 2026 17:11
@zachcasper
zachcasper enabled auto-merge (squash) August 19, 2026 17:12
@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions

github-actions Bot commented Aug 19, 2026

Copy link
Copy Markdown

Static Web App Preview

Environment Deployment
pr1994 View workflow run

Deployed from commit 7f33505af54192e5108d9f271dd81824d47d118d via the publisher workflow.

@Reshrahim
Reshrahim requested a balanced review from Copilot August 21, 2026 01:04

Copilot AI 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.

Pull request overview

Updates application-management guides to use synchronized, tested demo samples and adds line-range support to the rad shortcode.

Changes:

  • Replaces inline Bicep with focused sample excerpts.
  • Aligns deployment and pruning examples with demo resource names.
  • Adds startLine/endLine extraction to the shortcode.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
docs/layouts/shortcodes/rad.html Adds sample line-range extraction.
docs/content/applications/definitions/_index.md Reworks resource-modeling guidance around app.bicep.
docs/content/applications/connections/_index.md Uses app-redis.bicep for connection guidance.
docs/content/applications/deploy/_index.md Aligns deployment and pruning commands with demo resources.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

```bash
rad deploy app.bicep --environment dev
```
{{< rad-deploy path="samples/demo/app.bicep" args="--environment dev" >}}

Add the dependency the Container needs. The following example adds a `Radius.Data/redisCaches` resource named `db` to the same Application:
<!-- markdownlint-disable-next-line MD033 -->
Add the dependency the Container needs. The demo's <a href="https://github.com/radius-project/samples/blob/{{< param version >}}/samples/demo/app-redis.bicep" target="_blank" rel="noopener">`app-redis.bicep`</a> definition adds a `Radius.Data/redisCaches` resource named `redis` to the same Application:
}
}
```
{{< rad file="/static/samples/demo/app-redis.bicep" embed=true startLine=40 endLine=47 >}}

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.

If the app.bicep changes then the line numbers may be get messed up. I think markers like //REDIS might be better to stay in sync

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants