Skip to content

Commit ecd90cc

Browse files
committed
FW: Implement PR comments from SDK team
1 parent 4382700 commit ecd90cc

17 files changed

+23
-15
lines changed

src/ResourceManager/Insights/Commands.Insights.Test/packages.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
<package id="System.Spatial" version="5.6.4" targetFramework="net45" />
2525
<package id="WindowsAzure.Storage" version="6.0.0" targetFramework="net45" />
2626
<package id="xunit" version="2.1.0" targetFramework="net45" />
27+
<package id="xunit.abstractions" version="2.0.0" targetFramework="net45" />
2728
<package id="xunit.assert" version="2.1.0" targetFramework="net45" />
2829
<package id="xunit.core" version="2.1.0" targetFramework="net45" />
2930
<package id="xunit.extensibility.core" version="2.1.0" targetFramework="net45" />

src/ResourceManager/Insights/Commands.Insights/Alerts/AddAlertRuleCommandBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public abstract class AddAlertRuleCommandBase : ManagementCmdletBase
116116
/// </summary>
117117
protected override void ProcessRecordInternal()
118118
{
119-
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.\n\r");
119+
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.");
120120

121121
RuleCreateOrUpdateParameters parameters = this.CreateSdkCallParameters();
122122

src/ResourceManager/Insights/Commands.Insights/Alerts/GetAlertHistoryCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ protected override bool KeepTheRecord(EventData record)
7171
/// <returns>Modified query filter including the condition for eventSource</returns>
7272
protected override string ProcessParticularParameters(string currentQueryFilter)
7373
{
74-
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.\n\r");
74+
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.");
7575

7676
// Make sure only events for alerts come back
7777
return this.AddConditionIfPResent(currentQueryFilter, "eventSource", AlertsEventSourceName);

src/ResourceManager/Insights/Commands.Insights/Alerts/GetAlertRuleCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public class GetAlertRuleCommand : ManagementCmdletBase
7171
/// </summary>
7272
protected override void ProcessRecordInternal()
7373
{
74-
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.\n\r");
74+
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.");
7575

7676
if (string.IsNullOrWhiteSpace(this.Name))
7777
{

src/ResourceManager/Insights/Commands.Insights/Alerts/RemoveAlertRuleCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class RemoveAlertRuleCommand : ManagementCmdletBase
4949
/// </summary>
5050
protected override void ProcessRecordInternal()
5151
{
52-
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.\n\r");
52+
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.");
5353

5454
AzureOperationResponse result = this.InsightsManagementClient.AlertOperations.DeleteRuleAsync(resourceGroupName: this.ResourceGroup, ruleName: this.Name).Result;
5555
WriteObject(result);

src/ResourceManager/Insights/Commands.Insights/Autoscale/AddAutoscaleSettingCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public class AddAutoscaleSettingCommand : ManagementCmdletBase
9393
/// </summary>
9494
protected override void ProcessRecordInternal()
9595
{
96-
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.\n\r");
96+
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.");
9797

9898
AutoscaleSettingCreateOrUpdateParameters parameters = this.CreateSdkCallParameters();
9999

src/ResourceManager/Insights/Commands.Insights/Autoscale/GetAutoscaleHistoryCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ protected override bool KeepTheRecord(EventData record)
7171
/// <returns>Modified query filter including the condition for eventSource</returns>
7272
protected override string ProcessParticularParameters(string currentQueryFilter)
7373
{
74-
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.\n\r");
74+
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.");
7575

7676
return this.AddConditionIfPResent(currentQueryFilter, "category", AutoscaleEventSourceName);
7777
}

src/ResourceManager/Insights/Commands.Insights/Autoscale/GetAutoscaleSettingCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class GetAutoscaleSettingCommand : ManagementCmdletBase
5858
/// </summary>
5959
protected override void ProcessRecordInternal()
6060
{
61-
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.\n\r");
61+
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.");
6262

6363
if (string.IsNullOrWhiteSpace(this.Name))
6464
{

src/ResourceManager/Insights/Commands.Insights/Autoscale/NewAutoscaleProfileCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public class NewAutoscaleProfileCommand : AzureRMCmdlet
136136
/// </summary>
137137
public override void ExecuteCmdlet()
138138
{
139-
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.\n\r");
139+
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.");
140140

141141
AutoscaleProfile profile = this.CreateSettingProfile();
142142
WriteObject(profile);

src/ResourceManager/Insights/Commands.Insights/Autoscale/NewAutoscaleRuleCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public class NewAutoscaleRuleCommand : AzureRMCmdlet
113113
/// </summary>
114114
public override void ExecuteCmdlet()
115115
{
116-
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.\n\r");
116+
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.");
117117

118118
ScaleRule rule = this.CreateSettingRule();
119119
WriteObject(rule);

src/ResourceManager/Insights/Commands.Insights/Autoscale/RemoveAutoscaleSettingCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class RemoveAutoscaleSettingCommand : ManagementCmdletBase
4848
/// </summary>
4949
protected override void ProcessRecordInternal()
5050
{
51-
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.\n\r");
51+
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.");
5252

5353
AzureOperationResponse result = this.InsightsManagementClient.AutoscaleOperations.DeleteSettingAsync(resourceGroupName: this.ResourceGroup, autoscaleSettingName: this.Name).Result;
5454
WriteObject(result);

src/ResourceManager/Insights/Commands.Insights/ManagementCmdletBase.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ public abstract class ManagementCmdletBase : InsightsCmdletBase
3535
/// </summary>
3636
public IInsightsManagementClient InsightsManagementClient
3737
{
38-
// The premise is that a command to establish a context (like Add-AzureRmAccount) has been called before this command in order to have a correct CurrentContext
38+
// The premise is that a command to establish a context (like Add-AzureRmAccount) has
39+
// been called before this command in order to have a correct CurrentContext
3940
get {
4041
if (this.insightsManagementClient == null)
4142
{

src/ResourceManager/Insights/Commands.Insights/Metrics/FormatMetricsAsTableCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public PSMetricTabularResult[] ProcessParameter()
7676
/// </summary>
7777
public override void ExecuteCmdlet()
7878
{
79-
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.\n\r");
79+
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.");
8080

8181
WriteObject(this.ProcessParameter());
8282
}

src/ResourceManager/Insights/Commands.Insights/Metrics/GetMetricDefinitionsCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected string ProcessParameters()
7070
/// </summary>
7171
protected override void ProcessRecordInternal()
7272
{
73-
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.\n\r");
73+
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.");
7474

7575
string queryFilter = this.ProcessParameters();
7676
bool fullDetails = this.DetailedOutput.IsPresent;

src/ResourceManager/Insights/Commands.Insights/Metrics/GetMetricsCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ protected string ProcessParameters()
127127
/// </summary>
128128
protected override void ProcessRecordInternal()
129129
{
130-
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.\n\r");
130+
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.");
131131

132132
string queryFilter = this.ProcessParameters();
133133
bool fullDetails = this.DetailedOutput.IsPresent;

src/ResourceManager/Insights/Commands.Insights/UsageMetrics/GetUsageMetricsCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ protected string ProcessParameters()
121121
/// </summary>
122122
protected override void ProcessRecordInternal()
123123
{
124-
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.\n\r");
124+
WriteWarning("This cmdlet is being modified to enable better experience and may contain breaking changes in a future release.");
125125

126126
string queryFilter = this.ProcessParameters();
127127
string apiVersion = this.ApiVersion ?? DefaultApiVersion;

src/ResourceManager/Insights/Insights.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Insights.Test", "C
1212
EndProject
1313
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.ScenarioTests.ResourceManager.Common", "..\Common\Commands.ScenarioTests.ResourceManager.Common\Commands.ScenarioTests.ResourceManager.Common.csproj", "{3436A126-EDC9-4060-8952-9A1BE34CDD95}"
1414
EndProject
15+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Profile", "..\Profile\Commands.Profile\Commands.Profile.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
16+
EndProject
1517
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common", "..\..\Common\Commands.Common\Commands.Common.csproj", "{5EE72C53-1720-4309-B54B-5FB79703195F}"
1618
EndProject
1719
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Commands.Common.Authentication", "..\..\Common\Commands.Common.Authentication\Commands.Common.Authentication.csproj", "{D3804B64-C0D3-48F8-82EC-1F632F833C9E}"
@@ -38,6 +40,10 @@ Global
3840
{3436A126-EDC9-4060-8952-9A1BE34CDD95}.Debug|Any CPU.Build.0 = Debug|Any CPU
3941
{3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.ActiveCfg = Release|Any CPU
4042
{3436A126-EDC9-4060-8952-9A1BE34CDD95}.Release|Any CPU.Build.0 = Release|Any CPU
43+
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
44+
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
45+
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
46+
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
4147
{5EE72C53-1720-4309-B54B-5FB79703195F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4248
{5EE72C53-1720-4309-B54B-5FB79703195F}.Debug|Any CPU.Build.0 = Debug|Any CPU
4349
{5EE72C53-1720-4309-B54B-5FB79703195F}.Release|Any CPU.ActiveCfg = Release|Any CPU

0 commit comments

Comments
 (0)