-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ag common files #2419
Ag common files #2419
Conversation
sebassem
commented
Feb 14, 2024
- Consolidating the artifacts codebase for Agora scenarios
…ator and store JSON file
***Refactor code for better performance*** ***Update UI layout for improved user experience*** ***Add new feature for user authentication*** ***Fix typo in variable name*** ***Remove unused imports*** ***Update documentation for new API endpoints*** ***Optimize database queries for faster response times*** ***Fix issue with error handling in API calls*** ***Add unit tests for new functionality
Hi sebassem! Thank you for opening this Pull Request. Someone will review it soon. Thank you for committing to making the Azure Arc Jumpstart better. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some general feedback on code layout and some specifics around paths and logging. We can merge and work on these moving forward rather than being a blocker right now.
I also see some HCIBox related files in here so I think you need to fetch latest into your fork before merge.
$AgConfig = Import-PowerShellDataFile -Path $Env:AgConfigPath | ||
$AgToolsDir = $AgConfig.AgDirectories["AgToolsDir"] | ||
$AgIconsDir = $AgConfig.AgDirectories["AgIconDir"] | ||
$AgAppsRepo = $AgConfig.AgDirectories["AgAppsRepo"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Its easier to read IMO
|
||
|
||
Start-Transcript -Path ($AgConfig.AgDirectories["AgLogsDir"] + "\AgLogonScript.log") | ||
Write-Header "Executing Jumpstart Agora automation scripts" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should drop use of Write-Header and the PS1Profile injection where it gets defined and just stick with Write-Host. For context, I have removed Write-Header completely for HCIBox.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The length of this script seems like it might be better suited broken into defined functions. For example:
- Configure-L1Virtualization
- Configure-AzureIoT
- Configure-Kubernetes
And in each of these we are doing the heavy lifting that is being done in the main thread right now.
Merge pull request microsoft#2421 from microsoft/main