Skip to content

Conversation

@YanaXu
Copy link
Contributor

@YanaXu YanaXu commented Jul 18, 2023

This PR will prompt a warning message to the user if local Azure PowerShell module versions are not the latest.
Refer to the design spec for details.
It'll work together with Azure/azure-powershell#22338.

The warning message examples:
image
image

Nickcandy
Nickcandy previously approved these changes Jul 24, 2023
@YanaXu YanaXu requested a review from wyunchi-ms July 24, 2023 07:48
Comment on lines +250 to +252
if (result != null && result.Count > 0)
{
output.AddRange(result);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please check $LASTEXITCODE before adding result to output, here is an example.

/// Adds the specified feature to the service's per-PSsession registry.
/// </summary>
/// <param name="featureName">The name of the feature to add.</param>
void AddSession(string featureName);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think Add maybe more clear. Also I'm curious whether if we want to support other frequency such as every 30 execution.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not in the scope for now. But it could be added later.

@Nickcandy Nickcandy merged commit dae2d46 into main Jul 24, 2023
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.

5 participants