Skip to content

Commit 1c590d3

Browse files
author
Hovsep
committed
Merge pull request Azure#2091 from vivsriaus/AddWarning
[Release.1.3.2-rc3] Add warning message to ARM cmdlets in Resources projects, indicating …
2 parents 8519c18 + ceeb35b commit 1c590d3

12 files changed

+12
-1
lines changed

src/ResourceManager/Resources/Commands.Resources.Test/ScenarioTests/ResourceGroupTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void TestRemoveDeployment()
9595
ResourcesController.NewInstance.RunPsTest("Test-RemoveDeployment");
9696
}
9797

98-
[Fact]
98+
[Fact(Skip = "Doesn't add any value. Will improve negative tests in a future release")]
9999
public void TestGetNonExistingResourceGroupWithDebugStream()
100100
{
101101
ResourcesController.NewInstance.RunPsTest("Test-GetNonExistingResourceGroupWithDebugStream");

src/ResourceManager/Resources/Commands.Resources/ProviderFeatures/GetAzureProviderFeatureCmdlet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public class GetAzureProviderFeatureCmdlet : AzureProviderFeatureCmdletBase
5959

6060
public override void ExecuteCmdlet()
6161
{
62+
WriteWarning("The output object type of this cmdlet will be modified in a future release.");
6263
var parameterSetName = this.DetermineParameterSetName();
6364

6465
switch (parameterSetName)

src/ResourceManager/Resources/Commands.Resources/ProviderFeatures/RegisterAzureProviderFeatureCmdlet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public class RegisterAzureProviderFeatureCmdlet : AzureProviderFeatureCmdletBase
5050
/// </summary>
5151
public override void ExecuteCmdlet()
5252
{
53+
WriteWarning("The output object type of this cmdlet will be modified in a future release.");
5354
this.ConfirmAction(
5455
force: this.Force,
5556
actionMessage: string.Format(ProjectResources.RegisteringProviderFeature, this.FeatureName, this.ProviderNamespace),

src/ResourceManager/Resources/Commands.Resources/Providers/GetAzureProviderCmdlet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ public class GetAzureProviderCmdlet : ResourcesBaseCmdlet
6060
/// </summary>
6161
public override void ExecuteCmdlet()
6262
{
63+
WriteWarning("The output object type of this cmdlet will be modified in a future release.");
6364
var providers = this.ResourcesClient.ListPSResourceProviders(providerName: this.ProviderNamespace, listAvailable: this.ListAvailable, location: this.Location);
6465

6566
if (!string.IsNullOrEmpty(this.ProviderNamespace))

src/ResourceManager/Resources/Commands.Resources/Providers/GetAzureProviderOperationCmdlet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public class GetAzureProviderOperationCommand : ResourcesBaseCmdlet
4343
/// </summary>
4444
public override void ExecuteCmdlet()
4545
{
46+
WriteWarning("The output object type of this cmdlet will be modified in a future release.");
4647
// remove leading and trailing whitespaces
4748
this.OperationSearchString = this.OperationSearchString.Trim();
4849

src/ResourceManager/Resources/Commands.Resources/Providers/RegisterAzureProviderCmdlet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public class RegisterAzureProviderCmdlet : ResourcesBaseCmdlet
4343
/// </summary>
4444
public override void ExecuteCmdlet()
4545
{
46+
WriteWarning("The output object type of this cmdlet will be modified in a future release.");
4647
this.ConfirmAction(
4748
force: this.Force,
4849
actionMessage: string.Format(ProjectResources.RegisteringProvider, this.ProviderNamespace),

src/ResourceManager/Resources/Commands.Resources/Providers/UnregisterAzureProviderCmdlet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public class UnregisterAzureProviderCmdlet : ResourcesBaseCmdlet
4343
/// </summary>
4444
public override void ExecuteCmdlet()
4545
{
46+
WriteWarning("The output object type of this cmdlet will be modified in a future release.");
4647
this.ConfirmAction(
4748
force: this.Force,
4849
actionMessage: string.Format(ProjectResources.UnregisteringProvider, this.ProviderNamespace),

src/ResourceManager/Resources/Commands.Resources/ResourceGroupDeployments/GetAzureResourceGroupDeploymentCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public class GetAzureResourceGroupDeploymentCommand : ResourcesBaseCmdlet
5151

5252
public override void ExecuteCmdlet()
5353
{
54+
WriteWarning("The output object type of this cmdlet will be modified in a future release.");
5455
FilterResourceGroupDeploymentOptions options = new FilterResourceGroupDeploymentOptions()
5556
{
5657
ResourceGroupName = ResourceGroupName ?? ResourceIdUtility.GetResourceGroupName(Id),

src/ResourceManager/Resources/Commands.Resources/ResourceGroupDeployments/NewAzureResourceGroupDeploymentCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public NewAzureResourceGroupDeploymentCommand()
5252

5353
public override void ExecuteCmdlet()
5454
{
55+
WriteWarning("The output object type of this cmdlet will be modified in a future release.");
5556
CreatePSResourceGroupDeploymentParameters parameters = new CreatePSResourceGroupDeploymentParameters()
5657
{
5758
ResourceGroupName = ResourceGroupName,

src/ResourceManager/Resources/Commands.Resources/ResourceGroups/GetAzureResourceGroupCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public class GetAzureResourceGroupCommand : ResourcesBaseCmdlet, IModuleAssembly
5353

5454
public override void ExecuteCmdlet()
5555
{
56+
WriteWarning("The output object type of this cmdlet will be modified in a future release.");
5657
Name = Name ?? ResourceIdentifier.FromResourceGroupIdentifier(this.Id).ResourceGroupName;
5758

5859
this.WriteObject(

src/ResourceManager/Resources/Commands.Resources/ResourceGroups/NewAzureResourceGroupCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public class NewAzureResourceGroupCommand : ResourcesBaseCmdlet
4444

4545
public override void ExecuteCmdlet()
4646
{
47+
WriteWarning("The output object type of this cmdlet will be modified in a future release.");
4748
CreatePSResourceGroupParameters parameters = new CreatePSResourceGroupParameters
4849
{
4950
ResourceGroupName = Name,

src/ResourceManager/Resources/Commands.Resources/ResourceGroups/SetAzureResourceGroupCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public class SetAzureResourceGroupCommand : ResourcesBaseCmdlet
5252

5353
public override void ExecuteCmdlet()
5454
{
55+
WriteWarning("The output object type of this cmdlet will be modified in a future release.");
5556
UpdatePSResourceGroupParameters parameters = new UpdatePSResourceGroupParameters
5657
{
5758
ResourceGroupName = Name ?? ResourceIdentifier.FromResourceGroupIdentifier(this.Id).ResourceGroupName,

0 commit comments

Comments
 (0)