Skip to content

Conversation

@RenSilvaAU
Copy link

@RenSilvaAU RenSilvaAU commented Nov 26, 2025

Description

Updated devcontainer configuration for Azure PowerShell development

The configuration includes:

  • Custom Dockerfile based on .NET 8.0 SDK (amd64 platform)
  • GitHub CLI and Node.js LTS features
  • Post-create script that installs AutoRest, platyPS, and Az.Accounts modules
  • C# extension pre-configured for the container
  • Root user access for PowerShell script execution

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense. not the case
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. [Instruction] (../blob/main/documentation/development-docs/help-generation.md#updating-all-markdown-files-in-a-module) not the case
  • SHOULD have proper test coverage for changes in pull request. not the case
  • SHOULD NOT adjust version of module manually in pull request not the case

Copilot AI review requested due to automatic review settings November 26, 2025 22:46
@azure-client-tools-bot-prd
Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

@RenSilvaAU RenSilvaAU self-assigned this Nov 26, 2025
@RenSilvaAU RenSilvaAU requested a review from dolauli November 26, 2025 22:47
Copilot finished reviewing on behalf of RenSilvaAU November 26, 2025 22:49
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to improve the devcontainer configuration for Azure PowerShell development by creating a custom Dockerfile and moving setup commands from inline to a dedicated post-create script. However, there is a critical issue: the PR title claims to enable ARM64 support, but the Dockerfile explicitly forces AMD64 architecture, which will cause emulation overhead on ARM64 machines rather than native support.

Key Changes:

  • Introduces custom Dockerfile with explicit platform specification
  • Moves setup commands to a dedicated post-create.sh script
  • Adds additional PowerShell module installations (Az.Accounts)

Reviewed changes

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

File Description
.devcontainer/Dockerfile Creates custom Dockerfile that forces AMD64 platform (contradicts PR goal of ARM64 support)
.devcontainer/post-create.sh Extracts setup commands into dedicated script; installs npm, AutoRest, platyPS, and Az.Accounts
.devcontainer/devcontainer.json Updates to use custom Dockerfile and post-create script instead of inline command

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings November 26, 2025 22:57
@RenSilvaAU
Copy link
Author

@dolauli ,

Isolated change for devcontainer, as suggesed in previous PR

Copilot finished reviewing on behalf of RenSilvaAU November 26, 2025 23:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

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


You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@RenSilvaAU RenSilvaAU marked this pull request as ready for review November 26, 2025 23:27
@wyunchi-ms
Copy link
Contributor

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@@ -0,0 +1,18 @@
#!/bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we rewrite this into PowerShell script?

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.

2 participants