Skip to content

Add Java, YAML, and HCL to the Azure Native v2 to v3 guide - #13749

Merged
jkodroff merged 1 commit into
masterfrom
jkodroff/azure-native-v3-guide-languages
Dec 4, 2026
Merged

jkodroff merged 1 commit into
masterfrom
jkodroff/azure-native-v3-guide-languages

Conversation

@jkodroff

@jkodroff jkodroff commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

The Azure Native v2 to v3 migration guide's two language choosers leave out Java, even though the guide links the Java SDK, and neither has an HCL tab. The dependency upgrade chooser also has no YAML tab.

This adds the missing tabs:

  • Dependency upgrade: the pom.xml version for Java, the version resource option for YAML, and required_providers for HCL.
  • MySQL and PostgreSQL renames: the new SingleServer and ServerGroupCluster types in Java and HCL. These tabs use only the default modules.

Fixes #13746. Part of #13556.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@claude

claude Bot commented Dec 2, 2026

Copy link
Copy Markdown

Registry Review: Add Java, YAML, and HCL to the Azure Native v2 to v3 guide

Scope: themes/default/content/registry/packages/azure-native/guides/from-v2-to-v3/_index.md (a hand-written guide, not generated content, so editing it directly is fine).

✅ Looks good

  • Both choosers now list typescript,python,csharp,go,java,yaml,hcl, and every language in each list has a matching choosable block. Opening and closing shortcodes are balanced.
  • The HCL required_providers block (lines 107–117) matches the template in docs/overview-page.md: terraform { required_providers { … source = "pulumi/…", version = "x.y.z" } }.
  • The HCL resource type names (azure-native_dbformysql_single_server, azure-native_dbforpostgresql_server_group_cluster) follow the azure-native_<module>_<snake_case_resource> pattern that resourcedocsgen produces. See tools/resourcedocsgen/pkg/docs/testdata/.../domainservice/_index.md and synced-folder/_index.md.
  • The Java coordinates (com.pulumi:azure-native) and the SingleServer and ServerGroupCluster names match the bullet list above the chooser and the other language tabs.
  • The Markdown follows the one-line-per-paragraph rule.

💡 Suggestions (non-blocking)

  1. Lines 280–281 (Java) and 305–307 (HCL): only the new MySQL line is shown. Every other tab shows the v20171201 explicit-version import being removed. The PR description says the Java and HCL tabs "use only the default modules", but the page doesn't say so. A reader may wonder whether a removed line is missing. A short lead-in sentence in each tab would explain it, for example:

    {{% choosable language java %}}
    
    The Java SDK has no explicit API-version modules, so `SingleServer` is new rather than renamed:
    
    

    (Please confirm this is accurate for the v2 Java SDK before you adopt the wording. The same applies to HCL, which uses the default modules only.)

  2. Lines 280–286 (Java): the *Args classes aren't imported. The snippet uses SingleServerArgs, ClusterArgs, and ServerGroupClusterArgs but imports only the resource classes. A reader who copies the diff gets a compile error. Consider adding the imports:

    + import com.pulumi.azurenative.dbformysql.SingleServer;
    + import com.pulumi.azurenative.dbformysql.SingleServerArgs;
    + var server = new SingleServer("server", SingleServerArgs.builder()/* ... */.build());
    
    - import com.pulumi.azurenative.dbforpostgresql.Cluster;
    - import com.pulumi.azurenative.dbforpostgresql.ClusterArgs;
    - var cluster = new Cluster("cluster", ClusterArgs.builder()/* ... */.build());
    + import com.pulumi.azurenative.dbforpostgresql.ServerGroupCluster;
    + import com.pulumi.azurenative.dbforpostgresql.ServerGroupClusterArgs;
    + var cluster = new ServerGroupCluster("cluster", ServerGroupClusterArgs.builder()/* ... */.build());
  3. Line 121 vs. line 315 (pre-existing, optional): the first chooser closes with {{% /chooser %}} and the second with {{< /chooser >}}, while both open with {{< chooser … >}}. Both work, but you could make them consistent while you're editing these blocks.

Verdict

The changes are correct and consistent with the rest of the guide and the repo's HCL conventions. None of the suggestions block merging.


Mention @claude if you'd like another review or want me to apply any of these fixes.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

@jkodroff
jkodroff requested a review from CamSoper December 2, 2026 06:54

@CamSoper CamSoper left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Went through 5 of 5 spots in "v3 guide: more languages" with the guided review, no concerns.

  • The automated review's findings weren't part of this walkthrough.

@CamSoper CamSoper left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Already approved, so none of this blocks. Take or leave:

  1. YAML, unpinned programs (line 96). The note says YAML uses the newest installed plugin, then only covers people who pinned version. Someone who never pinned and has only v2 installed stays on v2. Worth a line for that case: pulumi plugin install resource azure-native 3.0.0, or tell them to pin version: 3.0.0.
  2. Java and HCL MySQL rename (lines 280-282, 304-307). Those halves are + lines only, while the other languages show the v20171201 Server -> SingleServer swap. If v2 Java/HCL never had the versioned module, one sentence saying so would clear it up. Otherwise add the - lines.
  3. Java imports. SingleServerArgs and ServerGroupClusterArgs are used but not imported. Java needs each class imported.
  4. HCL indentation (lines 311-312). The unchanged # ... and } lines sit one column off from the + lines around them.
  5. Gradle. Only pom.xml is shown. A one-liner like implementation("com.pulumi:azure-native:3.0.0") would cover the Gradle folks.

Generated by Claude Code

@jkodroff
jkodroff merged commit 7dc452f into master Dec 4, 2026
17 checks passed
@jkodroff
jkodroff deleted the jkodroff/azure-native-v3-guide-languages branch December 4, 2026 06:04
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Site previews for this pull request have been removed. ✨

This branch was previously deployed

1 inactive deployment
testing — c75de65a Deployed Dec 2, 2026 by jkodroff via Build and deploy preview #15541
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.

Azure Native v2 to v3 migration guide is missing Java, YAML, and HCL

2 participants