Skip to content

Comments

Fix references to renamed Get-UnifiedEnvironment function#73

Closed
Copilot wants to merge 3 commits intodevelopmentfrom
copilot/fix-get-udeenvironment-call
Closed

Fix references to renamed Get-UnifiedEnvironment function#73
Copilot wants to merge 3 commits intodevelopmentfrom
copilot/fix-get-udeenvironment-call

Conversation

Copy link

Copilot AI commented Feb 17, 2026

Get-UdeEnvironment was renamed to Get-UnifiedEnvironment in d2353d5, but 9 functions still referenced the old name, causing runtime errors.

Changes

Updated all references from Get-UdeEnvironment to Get-UnifiedEnvironment:

Core functionality:

  • Get-UdeDbJit - Function call and error message
  • Get-UdeDeveloperFile - Function call and error message
  • Set-UdeDbJitCache - Function call
  • Set-UdeEnvironmentInSession - Function call and error message
  • Start-UdeDatabaseRefresh - Both source and target environment lookups

Environment operations:

  • Get-UdeEnvironmentModule - Function call and error message
  • Get-UdeEnvironmentOperationHistory - Function call and error message
  • Get-UdeEnvironmentPackage - Function call and error message

Documentation:

  • Set-UdeConfig - Example in help text
# Before (broken)
$envObj = Get-UdeEnvironment -EnvironmentId $EnvironmentId -SkipVersionDetails

# After (working)
$envObj = Get-UnifiedEnvironment -EnvironmentId $EnvironmentId -SkipVersionDetails
Original prompt

This section details on the original issue you should resolve

<issue_title>Its trying to call Get-UdeEnvironment when using Get-UdeDbJIT</issue_title>
<issue_description>Get-UdeEnvironment: The term 'Get-UdeEnvironment' is not recognized as a name of a cmdlet, function, script file, or executable program.

Receive error above when trying to use the Get-UdeDbJIT command. Get-UdeEnvironment is not on the list of commands</issue_description>

Comments on the Issue (you are @copilot in this section)

@FH-Inway Thanks for reporting.

Seems Get-UdeEnvironment was renamed to Get-UnifiedEnvironment as part of d2353d5

Apart from Get-UdeDbJit, there are a some other commands that call it as well, see https://github.com/search?q=repo%3Ad365collaborative%2Fd365bap.tools+%22get-udeenvironment+-%22+path%3A*.ps1&type=code

It may be a simple case of search and replace to get it working again.

Will take a look at it later this week if @Splaxi does not get to it first.</comment_new>


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: FH-Inway <33372796+FH-Inway@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix call to Get-UdeEnvironment in Get-UdeDbJIT Fix references to renamed Get-UnifiedEnvironment function Feb 17, 2026
Copilot AI requested a review from FH-Inway February 17, 2026 21:41
@FH-Inway FH-Inway closed this Feb 21, 2026
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.

Its trying to call Get-UdeEnvironment when using Get-UdeDbJIT

2 participants