Skip to content

Commit 3bdfc25

Browse files
committed
Add deprecation warnings to affected cmdlets
1 parent cf23487 commit 3bdfc25

File tree

45 files changed

+280
-131
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+280
-131
lines changed

src/ResourceManager/Compute/Commands.Compute/Extension/VmssDiskEncryption/DisableAzureVmssDiskEncryption.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ public override void ExecuteCmdlet()
8787

8888
ExecuteClientAction(() =>
8989
{
90+
WriteWarning("Disable-AzureRmVmssDiskEncryption: A property of the output of this cmdlet will change in an upcoming breaking change release. " +
91+
"The StorageAccountType property for a DataDisk will return Standard_LRS and Premium_LRS");
92+
9093
if (this.ShouldProcess(VMScaleSetName, Properties.Resources.RemoveDiskEncryptionAction)
9194
&& (this.Force.IsPresent
9295
|| this.ShouldContinue(Properties.Resources.VirtualMachineExtensionRemovalConfirmation, Properties.Resources.VirtualMachineExtensionRemovalCaption)))

src/ResourceManager/Compute/Commands.Compute/Extension/VmssDiskEncryption/SetAzureVmssDiskEncryptionExtension.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ private VirtualMachineScaleSetExtension GetVmssExtensionParameters()
182182
{
183183
Hashtable SettingString = GetExtensionPublicSettings();
184184
Hashtable ProtectedSettingString = GetExtensionProtectedSettings();
185-
185+
186186
VirtualMachineScaleSetExtension vmssExtensionParameters = null;
187187

188188
if (OperatingSystemTypes.Windows.Equals(this.CurrentOSType))
@@ -229,6 +229,9 @@ public override void ExecuteCmdlet()
229229

230230
ExecuteClientAction(() =>
231231
{
232+
WriteWarning("Set-AzureRmVmssDiskEncrpytionExtension: A property of the output of this cmdlet will change in an upcoming breaking change release. " +
233+
"The StorageAccountType property for a DataDisk will return Standard_LRS and Premium_LRS");
234+
232235
if (this.ShouldProcess(VMScaleSetName, Properties.Resources.EnableDiskEncryptionAction)
233236
&& (this.Force.IsPresent ||
234237
this.ShouldContinue(Properties.Resources.EnableAzureDiskEncryptionConfirmation, Properties.Resources.EnableAzureDiskEncryptionCaption))) // Change this.

src/ResourceManager/Compute/Commands.Compute/Generated/Disk/Config/NewAzureRmDiskConfigCommand.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ protected override void ProcessRecord()
123123

124124
private void Run()
125125
{
126+
WriteWarning("New-AzureRmDiskConfig: A property of the output of this cmdlet will change in an upcoming breaking change release. " +
127+
"The Name property for a Sku will return Standard_LRS and Premium_LRS");
128+
126129
// Sku
127130
Microsoft.Azure.Management.Compute.Models.DiskSku vSku = null;
128131

src/ResourceManager/Compute/Commands.Compute/Generated/Disk/Config/SetAzureRmDiskDiskEncryptionKeyCommand.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
//
1+
//
22
// Copyright (c) Microsoft and contributors. All rights reserved.
3-
//
3+
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
66
// You may obtain a copy of the License at
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
//
12+
//
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
15-
//
15+
//
1616

1717
// Warning: This code was generated by a tool.
18-
//
18+
//
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

@@ -62,6 +62,9 @@ protected override void ProcessRecord()
6262

6363
private void Run()
6464
{
65+
WriteWarning("Set-AzureRmDiskDiskEncryptionKey: A property of the output of this cmdlet will change in an upcoming breaking change release. " +
66+
"The Name property for a Sku will return Standard_LRS and Premium_LRS");
67+
6568
if (this.MyInvocation.BoundParameters.ContainsKey("SecretUrl"))
6669
{
6770
// EncryptionSettings

src/ResourceManager/Compute/Commands.Compute/Generated/Disk/Config/SetAzureRmDiskImageReferenceCommand.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
//
1+
//
22
// Copyright (c) Microsoft and contributors. All rights reserved.
3-
//
3+
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
66
// You may obtain a copy of the License at
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
//
12+
//
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
15-
//
15+
//
1616

1717
// Warning: This code was generated by a tool.
18-
//
18+
//
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

@@ -62,6 +62,9 @@ protected override void ProcessRecord()
6262

6363
private void Run()
6464
{
65+
WriteWarning("Set-AzureRmDiskImageReference: A property of the output of this cmdlet will change in an upcoming breaking change release. " +
66+
"The Name property for a Sku will return Standard_LRS and Premium_LRS");
67+
6568
if (this.MyInvocation.BoundParameters.ContainsKey("Id"))
6669
{
6770
// CreationData

src/ResourceManager/Compute/Commands.Compute/Generated/Disk/Config/SetAzureRmDiskKeyEncryptionKeyCommand.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
//
1+
//
22
// Copyright (c) Microsoft and contributors. All rights reserved.
3-
//
3+
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
66
// You may obtain a copy of the License at
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
//
12+
//
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
15-
//
15+
//
1616

1717
// Warning: This code was generated by a tool.
18-
//
18+
//
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

@@ -62,6 +62,9 @@ protected override void ProcessRecord()
6262

6363
private void Run()
6464
{
65+
WriteWarning("Set-AzureRmDiskKeyEncryptionKey: A property of the output of this cmdlet will change in an upcoming breaking change release. " +
66+
"The Name property for a Sku will return Standard_LRS and Premium_LRS");
67+
6568
if (this.MyInvocation.BoundParameters.ContainsKey("KeyUrl"))
6669
{
6770
// EncryptionSettings

src/ResourceManager/Compute/Commands.Compute/Generated/Disk/DiskCreateOrUpdateMethod.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
//
1+
//
22
// Copyright (c) Microsoft and contributors. All rights reserved.
3-
//
3+
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
66
// You may obtain a copy of the License at
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
//
12+
//
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
15-
//
15+
//
1616

1717
// Warning: This code was generated by a tool.
18-
//
18+
//
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

@@ -119,6 +119,9 @@ public override void ExecuteCmdlet()
119119
{
120120
ExecuteClientAction(() =>
121121
{
122+
WriteWarning("New-AzureRmDisk: A property of the output of this cmdlet will change in an upcoming breaking change release. " +
123+
"The Name property for a Sku will return Standard_LRS and Premium_LRS");
124+
122125
if (ShouldProcess(this.DiskName, VerbsCommon.New))
123126
{
124127
string resourceGroupName = this.ResourceGroupName;

src/ResourceManager/Compute/Commands.Compute/Generated/Disk/DiskGetMethod.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
//
1+
//
22
// Copyright (c) Microsoft and contributors. All rights reserved.
3-
//
3+
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
66
// You may obtain a copy of the License at
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
//
12+
//
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
15-
//
15+
//
1616

1717
// Warning: This code was generated by a tool.
18-
//
18+
//
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

@@ -141,6 +141,9 @@ public override void ExecuteCmdlet()
141141
{
142142
ExecuteClientAction(() =>
143143
{
144+
WriteWarning("Get-AzureRmDisk: A property of the output of this cmdlet will change in an upcoming breaking change release. " +
145+
"The Name property for a Sku will return Standard_LRS and Premium_LRS");
146+
144147
string resourceGroupName = this.ResourceGroupName;
145148
string diskName = this.DiskName;
146149

src/ResourceManager/Compute/Commands.Compute/Generated/Disk/DiskUpdateMethod.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
//
1+
//
22
// Copyright (c) Microsoft and contributors. All rights reserved.
3-
//
3+
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
66
// You may obtain a copy of the License at
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
//
12+
//
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
15-
//
15+
//
1616

1717
// Warning: This code was generated by a tool.
18-
//
18+
//
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

@@ -122,6 +122,9 @@ public override void ExecuteCmdlet()
122122
{
123123
ExecuteClientAction(() =>
124124
{
125+
WriteWarning("Update-AzureRmDisk: A property of the output of this cmdlet will change in an upcoming breaking change release. " +
126+
"The Name property for a Sku will return Standard_LRS and Premium_LRS");
127+
125128
if (ShouldProcess(this.DiskName, VerbsData.Update))
126129
{
127130
string resourceGroupName = this.ResourceGroupName;

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/Config/AddAzureRmVmssAdditionalUnattendContentCommand.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
//
1+
//
22
// Copyright (c) Microsoft and contributors. All rights reserved.
3-
//
3+
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
66
// You may obtain a copy of the License at
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
//
12+
//
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
15-
//
15+
//
1616

1717
// Warning: This code was generated by a tool.
18-
//
18+
//
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

@@ -74,6 +74,9 @@ protected override void ProcessRecord()
7474

7575
private void Run()
7676
{
77+
WriteWarning("Add-AzureRmVmssAdditionalUnattendContent: A property of the output of this cmdlet will change in an upcoming breaking change release. " +
78+
"The StorageAccountType property for a DataDisk will return Standard_LRS and Premium_LRS");
79+
7780
// VirtualMachineProfile
7881
if (this.VirtualMachineScaleSet.VirtualMachineProfile == null)
7982
{

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/Config/AddAzureRmVmssDataDiskCommand.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ protected override void ProcessRecord()
9191

9292
private void Run()
9393
{
94+
WriteWarning("Add-AzureRmVmssDataDisk: A property of the output of this cmdlet will change in an upcoming breaking change release. " +
95+
"The StorageAccountType property for a DataDisk will return Standard_LRS and Premium_LRS");
96+
9497
// VirtualMachineProfile
9598
if (this.VirtualMachineScaleSet.VirtualMachineProfile == null)
9699
{

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/Config/AddAzureRmVmssExtensionCommand.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
//
1+
//
22
// Copyright (c) Microsoft and contributors. All rights reserved.
3-
//
3+
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
66
// You may obtain a copy of the License at
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
//
12+
//
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
15-
//
15+
//
1616

1717
// Warning: This code was generated by a tool.
18-
//
18+
//
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

@@ -97,6 +97,9 @@ protected override void ProcessRecord()
9797

9898
private void Run()
9999
{
100+
WriteWarning("Add-AzureRmVmssExtension: A property of the output of this cmdlet will change in an upcoming breaking change release. " +
101+
"The StorageAccountType property for a DataDisk will return Standard_LRS and Premium_LRS");
102+
100103
// VirtualMachineProfile
101104
if (this.VirtualMachineScaleSet.VirtualMachineProfile == null)
102105
{

src/ResourceManager/Compute/Commands.Compute/Generated/VirtualMachineScaleSet/Config/AddAzureRmVmssNetworkInterfaceConfigurationCommand.cs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
//
1+
//
22
// Copyright (c) Microsoft and contributors. All rights reserved.
3-
//
3+
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
66
// You may obtain a copy of the License at
77
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
8+
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
//
12+
//
1313
// See the License for the specific language governing permissions and
1414
// limitations under the License.
15-
//
15+
//
1616

1717
// Warning: This code was generated by a tool.
18-
//
18+
//
1919
// Changes to this file may cause incorrect behavior and will be lost if the
2020
// code is regenerated.
2121

@@ -93,6 +93,9 @@ protected override void ProcessRecord()
9393

9494
private void Run()
9595
{
96+
WriteWarning("Add-AzureRmVmssNetworkInterfaceConfiguration: A property of the output of this cmdlet will change in an upcoming breaking change release. " +
97+
"The StorageAccountType property for a DataDisk will return Standard_LRS and Premium_LRS");
98+
9699
// VirtualMachineProfile
97100
if (this.VirtualMachineScaleSet.VirtualMachineProfile == null)
98101
{

0 commit comments

Comments
 (0)