Skip to content

Rename and refactor OSDCloud functions - #380

Merged
OSDeploy merged 1 commit into
masterfrom
chameleon
Aug 3, 2026
Merged

Rename and refactor OSDCloud functions#380
OSDeploy merged 1 commit into
masterfrom
chameleon

Conversation

@OSDeploy

@OSDeploy OSDeploy commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Update function names and references to align with the new OSDCloud deployment structure, ensuring consistency across the codebase. The changes include renaming scripts and updating the invocation methods for better clarity and functionality.

Copilot AI review requested due to automatic review settings August 3, 2026 04:27
@OSDeploy OSDeploy self-assigned this Aug 3, 2026
@OSDeploy
OSDeploy merged commit 427345b into master Aug 3, 2026
1 check passed
@OSDeploy
OSDeploy deleted the chameleon branch August 3, 2026 04:28

Copilot AI left a comment

Copy link
Copy Markdown

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 updates OSDCloud launch workflows to align with the new deployment structure by renaming invocation targets (CLI/GUI/Dev/Azure) and relocating the Azure start entry point into its own public function file.

Changes:

  • Update CLI/GUI/Dev launchers to call the new Invoke-OSDCloud* function variants (Invoke-OSDCloudCLI, Invoke-OSDCloudGUI, Invoke-OSDCloudGUIDev).
  • Move Start-OSDCloudAzure out of Connect-OSDCloudAzure.ps1 into a dedicated public function file.
  • Add new private entry points Invoke-OSDCloudGUI and Invoke-OSDCloudAzure (large task-sequence implementations).

Reviewed changes

Copilot reviewed 5 out of 9 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
Public/Start-OSDCloudCLI.ps1 Updates messaging and the final handoff call to Invoke-OSDCloudCLI.
Public/Start-OSDCloudAzure.ps1 Introduces the new Azure start function and handoff to Invoke-OSDCloudAzure.
Public/OSDCloud/Connect-OSDCloudAzure.ps1 Removes the embedded Start-OSDCloudAzure function after relocation.
Projects/OSDCloudGUI/MainWindow.ps1 Updates GUI start button to call Invoke-OSDCloudGUI.
Projects/OSDCloudDev/MainWindow.ps1 Updates Dev GUI start button to call Invoke-OSDCloudGUIDev.
Private/Invoke-OSDCloudGUI.ps1 Adds the GUI-specific master task sequence implementation.
Private/Invoke-OSDCloudAzure.ps1 Adds the Azure-specific master task sequence implementation.

Comment on lines +21 to +29
.NOTES
Author: David Segura - Recast Software
2026-07-10 - Updated help to repo standard

.LINK
https://github.com/OSDeploy/OSD/tree/master/docs

.LINK
https://github.com/OSDeploy/OSD/blob/master/docs/Start-OSDCloudAzure.md
Comment on lines +9 to +10
.EXAMPLE
Invoke-OSDCloud
Comment on lines +58 to +66
if ($Global:StartOSDCloud.AzOSDCloudImage) {
Write-Host -ForegroundColor DarkGray '========================================================================='
Write-Host -ForegroundColor Green "Invoke-OSDCloudAzure ... Starting in 5 seconds..."
Start-Sleep -Seconds 5
Invoke-OSDCloudAzure
}
else {
Write-Warning "Unable to get a Windows Image from OSDCloudAzure to handoff to Invoke-OSDCloudAzure"
}
Comment on lines +9 to +10
.EXAMPLE
Invoke-OSDCloud
Comment on lines +2549 to +2552
foreach ($Item in $AzOSDCloudPostScript) {
Write-DarkGrayHost "$($Item.FullName)"
& "Execute $($Item.FullName)"
}
Comment on lines +2549 to +2552
foreach ($Item in $AzOSDCloudPostScript) {
Write-DarkGrayHost "$($Item.FullName)"
& "Execute $($Item.FullName)"
}
}
# UUID
$deviceUUID = $classWin32ComputerSystemProduct.UUID
# Convert the UUID to a hash value to protect user privacyand ensure a consistent identifier across events
}
# UUID
$deviceUUID = $classWin32ComputerSystemProduct.UUID
# Convert the UUID to a hash value to protect user privacyand ensure a consistent identifier across events
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