Skip to content

Commit 1322dc0

Browse files
authored
Renamed cmdlet Open-AzSurvey -> Open-AzPredictorSurvey (Azure#14840)
1 parent 24137f5 commit 1322dc0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tools/Az.Tools.Predictor/Az.Tools.Predictor/Az.Tools.Predictor.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ NestedModules = @("Microsoft.Azure.PowerShell.Tools.AzPredictor.dll")
4747

4848
ScriptsToProcess = @("PromptSurvey.ps1")
4949

50-
CmdletsToExport = @("Enable-AzPredictor", "Disable-AzPredictor", "Open-AzSurvey")
50+
CmdletsToExport = @("Enable-AzPredictor", "Disable-AzPredictor", "Open-AzPredictorSurvey")
5151

5252
# Format files (.ps1xml) to be loaded when importing this module
5353

tools/Az.Tools.Predictor/Az.Tools.Predictor/Commands/OpenAzSurvey.cs renamed to tools/Az.Tools.Predictor/Az.Tools.Predictor/Commands/OpenAzPredictorSurvey.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ namespace Microsoft.Azure.PowerShell.Tools.AzPredictor
2727
/// <para type="synopsis">Cmdlet to open a survey link in the default browser</para>
2828
/// <para type="description">This cmdlet will open a survey link in the default browser. All data from this survey will be anonymized. See the Microsoft Privacy Policy (https://privacy.microsoft.com/) for more information </para>
2929
/// </summary>
30-
[Cmdlet("Open", "AzSurvey"), OutputType(typeof(bool))]
31-
public sealed class OpenAzSurvey : PSCmdlet
30+
[Cmdlet("Open", "AzPredictorSurvey"), OutputType(typeof(bool))]
31+
public sealed class OpenAzPredictorSurvey : PSCmdlet
3232
{
3333
private const string _SurveyLinkFormat = "https://aka.ms/azpredictorisurvey?SessionId={0}&Q_CHL=cmdlet";
3434
/// <summary>
@@ -43,7 +43,7 @@ protected override void ProcessRecord()
4343
var profileSettings = Settings.GetProfileSettings();
4444
var surveyId = profileSettings?.SurveyId?.ToString(CultureInfo.InvariantCulture) ?? "000000";
4545

46-
var link = string.Format(OpenAzSurvey._SurveyLinkFormat, surveyId, CultureInfo.InvariantCulture);
46+
var link = string.Format(OpenAzPredictorSurvey._SurveyLinkFormat, surveyId, CultureInfo.InvariantCulture);
4747

4848
Console.WriteLine($"Opening the default browser to {link}");
4949

tools/Az.Tools.Predictor/Az.Tools.Predictor/InterceptSurvey.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,6 @@ if ($shouldIntercept) {
222222
Write-Host "Survey:" -ForegroundColor $Host.PrivateData.VerboseBackgroundColor -BackgroundColor $host.PrivateData.VerboseForegroundColor -NoNewline;
223223
Write-Host " How was your experience using the Az Predictor module?";
224224
Write-Host "";
225-
Write-Host "Run " -NoNewline; Write-Host "Open-AzSurvey" -ForegroundColor $Host.PrivateData.VerboseBackgroundColor -BackgroundColor $host.PrivateData.VerboseForegroundColor -NoNewline; Write-Host " to give us your feedback.";
225+
Write-Host "Run " -NoNewline; Write-Host "Open-AzPredictorSurvey" -ForegroundColor $Host.PrivateData.VerboseBackgroundColor -BackgroundColor $host.PrivateData.VerboseForegroundColor -NoNewline; Write-Host " to give us your feedback.";
226226
Write-Host "---------------------------------------------------";
227227
}

0 commit comments

Comments
 (0)