Skip to content

Commit 184550d

Browse files
haaghaVeryEarly
andauthored
[Compute] Adding ImageDeprecationStatus to Get-AzVmImage (#21375)
* [release] Polish changelog for release-2023-04-04 (#21354) * Update ChangeLog.md * Update ChangeLog.md * ImageDeprecationStatus changes --------- Co-authored-by: Yabo Hu <[email protected]>
1 parent 84dcac7 commit 184550d

File tree

6 files changed

+23
-8
lines changed

6 files changed

+23
-8
lines changed

src/Compute/Compute/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
* Removed the image alias `CoreOS` as the publisher CoreOS no longer has any images for Azure.
2626
Updated the names of the `openSUSE-Leap` and `SLES` aliases to `OpenSuseLeap154` and `SuseSles15SP4` respectively. Updated these aliases to point to an image that actually exists.
2727
* Added a breaking change warning to `New-AzVM` and `New-AzVmss` for future planned image alias removals due to the images reaching their End of Support date.
28-
* Added new descriptive and versioned alias names for the Linux image aliases, including a new alias for the `Kinvolk` publisher.
28+
* Added new descriptive and versioned alias names for the Linux image aliases, including a new alias for the `Kinvolk` publisher.
29+
* Added 'ImageDeprecationStatus' to the output of Get-AzVmImage.
2930

3031
## Version 5.6.0
3132
* Added `-NetworkAccessPolicy` parameter to `New-AzSnapshotUpdateConfig`.

src/Compute/Compute/Compute.format.ps1xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@
267267
<Label>DataDiskImages</Label>
268268
<PropertyName>DataDiskImagesText</PropertyName>
269269
</ListItem>
270+
<ListItem>
271+
<Label>ImageDeprecationStatus</Label>
272+
<PropertyName>ImageDeprecationStatusText</PropertyName>
273+
</ListItem>
270274
</ListItems>
271275
</ListEntry>
272276
</ListEntries>

src/Compute/Compute/Images/GetAzureVMImageCommand.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ public override void ExecuteCmdlet()
159159
DataDiskImages = response.Body.DataDiskImages,
160160
PurchasePlan = response.Body.Plan,
161161
AutomaticOSUpgradeProperties = response.Body.AutomaticOSUpgradeProperties,
162-
HyperVGeneration = response.Body.HyperVGeneration
162+
HyperVGeneration = response.Body.HyperVGeneration,
163+
ImageDeprecationStatus = response.Body.ImageDeprecationStatus
163164
};
164165

165166
WriteObject(image);
@@ -238,10 +239,11 @@ public override void ExecuteCmdlet()
238239
Offer = this.Offer,
239240
Skus = this.Skus,
240241
OSDiskImage = response.Body.OsDiskImage,
242+
ImageDeprecationStatus = response.Body.ImageDeprecationStatus,
241243
DataDiskImages = response.Body.DataDiskImages,
242244
PurchasePlan = response.Body.Plan,
243245
AutomaticOSUpgradeProperties = response.Body.AutomaticOSUpgradeProperties,
244-
HyperVGeneration = response.Body.HyperVGeneration
246+
HyperVGeneration = response.Body.HyperVGeneration
245247
};
246248

247249
WriteObject(image);

src/Compute/Compute/Models/PSVirtualMachineImage.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ public string OSDiskImageText
6666

6767
public PurchasePlan PurchasePlan { get; set; }
6868

69+
public ImageDeprecationStatus ImageDeprecationStatus { get; set; }
70+
71+
[JsonIgnore]
72+
public string ImageDeprecationStatusText
73+
{
74+
get { return JsonConvert.SerializeObject(ImageDeprecationStatus, Formatting.Indented); }
75+
}
76+
6977
[JsonIgnore]
7078
public string PurchasePlanText
7179
{

src/EventGrid/EventGrid/ChangeLog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21-
* Adding fix for DeliveryAttributeMapping
22-
* Adding validation for StorageQueueTtl
21+
* Added fix for DeliveryAttributeMapping
22+
* Added validation for StorageQueueTtl
2323

2424
## Version 1.5.0
2525
* Updated to use the 2022-06-15 API version.

src/Websites/Websites/ChangeLog.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Fixed `Edit-AzWebAppBackupConfiguration` to pass backup configuration enabled or not
22+
* Added a new parameter `-SoftRestart` for `Restart-AzWebApp` and `Restart-AzWebApp` to perform a soft restart
23+
* Updated `Get-AzWebApp` and `Get-AzWebAppSlot` to expose `VirtualNetwork Integration Info` [#10665]
2124
* Set default value for `-RepositoryUrl` of `New-AzStaticWebApp` [#21202]
2225

2326
## Version 2.13.0
24-
* Fixed `Edit-AzWebAppBackupConfiguration` to pass backup configuration enabled or not
25-
* Added a new parametre `-SoftRestart` for `Restart-AzWebApp` and `Restart-AzWebApp` to perform a soft restart
26-
* Updated `Get-AzWebApp` and `Get-AzWebAppSlot` to expose `VirtualNetwork Integration Info` [#10665]
2727
* Added a new parameter `-CopyIdentity` for `New-AzWebAppSlot` to copy the identity from the parent app to the slot.
2828
* Updated `New-AzWebAppSSLBinding` to support -WhatIf parameter
2929

0 commit comments

Comments
 (0)