Skip to content

Commit 27f36cb

Browse files
SandidoVeryEarly
andauthored
Remove messaging of removed unversioned linux aliases (#22950)
* remove ubutnults test * remove all aliases and tests * compute tests fix * recoveryservices tests fixed * help doc updates and changelog * cleanup examples * Update ChangeLog.md * removed messaging * Update ChangeLog.md --------- Co-authored-by: Yabo Hu <[email protected]>
1 parent 9700c78 commit 27f36cb

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

src/Compute/Compute/Manual/VirtualMachineScaleSetCreateOrUpdateMethod.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434

3535
namespace Microsoft.Azure.Commands.Compute.Automation
3636
{
37-
[GenericBreakingChangeWithVersion("Consider using the image alias including the version of the distribution you want to use in the \"-ImageName\" parameter of the \"New-AzVmss\" cmdlet. On April 30, 2023, the image deployed using `UbuntuLTS` will reach its end of life. In November 2023, the aliases `UbuntuLTS`, `CentOS`, `Debian`, and `RHEL` will be removed.", "11.0.0", "7.0.0")]
3837
public partial class NewAzureRmVmss : ComputeAutomationBaseCmdlet
3938
{
4039
private const string flexibleOrchestrationMode = "Flexible", uniformOrchestrationMode = "Uniform";
@@ -299,14 +298,6 @@ public async Task<ResourceConfig<VirtualMachineScaleSet>> CreateConfigAsync()
299298

300299
private async Task<ResourceConfig<VirtualMachineScaleSet>> SimpleParameterSetNormalMode()
301300
{
302-
// Temporary message until after the Ignite 2023 release that should remove these outdated image aliases.
303-
if ((_cmdlet.ImageName == "CentOS" || _cmdlet.ImageName == "Debian" || _cmdlet.ImageName == "RHEL"
304-
|| _cmdlet.ImageName == "UbuntuLTS"))
305-
{
306-
string ImageOutdatedMessage = "You are using the image " + _cmdlet.ImageName + ", which is outdated and this image name will be removed in October 2023. Please update to a newer versioned image alias as seen here, [Find and use Azure Marketplace VM images with Azure PowerShell](https://learn.microsoft.com/en-us/azure/virtual-machines/windows/cli-ps-findimage#default-images).";
307-
_cmdlet.WriteInformation(ImageOutdatedMessage, new string[] { "PSHOST" });
308-
}
309-
310301
ImageAndOsType = await _client.UpdateImageAndOsTypeAsync(
311302
ImageAndOsType, _cmdlet.ResourceGroupName, _cmdlet.ImageName, Location);
312303

src/Compute/Compute/VirtualMachine/Operation/NewAzureVMCommand.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454

5555
namespace Microsoft.Azure.Commands.Compute
5656
{
57-
[GenericBreakingChangeWithVersion("Consider using the image alias including the version of the distribution you want to use in the \"-Image\" parameter of the \"New-AzVM\" cmdlet. On April 30, 2023, the image deployed using `UbuntuLTS` will reach its end of life. In October 2023, the aliases `UbuntuLTS`, `CentOS`, `Debian`, and `RHEL` will be removed.", "11.0.0", "7.0.0")]
5857
[GenericBreakingChangeWithVersion("Starting in November 2023 the \"New-AzVM\" cmdlet will deploy with the Trusted Launch configuration by default. To know more about Trusted Launch, please visit https://aka.ms/TLaD", "11.0.0", "7.0.0")]
5958
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VM", SupportsShouldProcess = true, DefaultParameterSetName = "SimpleParameterSet")]
6059
[OutputType(typeof(PSAzureOperationResponse), typeof(PSVirtualMachine))]
@@ -534,14 +533,6 @@ public async Task<ResourceConfig<VirtualMachine>> CreateConfigAsync()
534533

535534
if (_cmdlet.DiskFile == null)
536535
{
537-
// Temporary message until after the Ignite 2023 release that should remove these outdated image aliases.
538-
if ((_cmdlet.Image == "CentOS" || _cmdlet.Image == "Debian" || _cmdlet.Image == "RHEL"
539-
|| _cmdlet.Image == "UbuntuLTS"))
540-
{
541-
string ImageOutdatedMessage = "You are using the image " + _cmdlet.Image + ", which is outdated and this image name will be removed in October 2023. Please update to a newer versioned image alias as seen here, [Find and use Azure Marketplace VM images with Azure PowerShell](https://learn.microsoft.com/en-us/azure/virtual-machines/windows/cli-ps-findimage#default-images).";
542-
_cmdlet.WriteInformation(ImageOutdatedMessage, new string[] { "PSHOST" });
543-
}
544-
545536
ImageAndOsType = await _client.UpdateImageAndOsTypeAsync(
546537
ImageAndOsType, _cmdlet.ResourceGroupName, _cmdlet.Image, Location);
547538
}

0 commit comments

Comments
 (0)