Skip to content

Commit a7ce9bd

Browse files
authored
[Az.Compute] The code base is going to be refactored, the following cmdlet adds a BreakingChange announcement (#28315)
1 parent 458689e commit a7ce9bd

File tree

10 files changed

+84
-21
lines changed

10 files changed

+84
-21
lines changed

src/Compute/Compute.Autorest/README.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,4 +281,58 @@ directive:
281281
parameter-name: SpotPlacementScoresInput
282282
set:
283283
alias: SpotPlacementRecommenderInput
284+
285+
- where:
286+
verb: Get
287+
subject: GalleryApplicationVersion
288+
set:
289+
breaking-change:
290+
deprecated-output-properties:
291+
- PublishingProfileTargetExtendedLocation
292+
- ReplicationStatusSummary
293+
- TargetRegion
294+
new-output-properties:
295+
- PublishingProfileTargetExtendedLocation
296+
- ReplicationStatusSummary
297+
- TargetRegion
298+
change-description: The types of the properties 'PublishingProfileTargetExtendedLocation', 'ReplicationStatusSummary' and 'TargetRegion' will be changed from single object to 'List'.
299+
deprecated-by-version: 9.0.0
300+
deprecated-by-azversion: 15.0.0
301+
change-effective-date: 2025/11/03
302+
303+
- where:
304+
verb: Invoke
305+
subject: SpotPlacementScore
306+
set:
307+
breaking-change:
308+
deprecated-output-properties:
309+
- PlacementScore
310+
- DesiredSize
311+
- DesiredLocation
312+
new-output-properties:
313+
- PlacementScore
314+
- DesiredSize
315+
- DesiredLocation
316+
change-description: The types of the properties 'PlacementScore', 'DesiredSize' and 'DesiredLocation' will be changed from single object to 'List'.
317+
deprecated-by-version: 9.0.0
318+
deprecated-by-azversion: 15.0.0
319+
change-effective-date: 2025/11/03
320+
321+
- where:
322+
verb: Set
323+
subject: VMRunCommand|VmssVMRunCommand
324+
set:
325+
breaking-change:
326+
deprecated-output-properties:
327+
- InstanceViewStatuses
328+
- ProtectedParameter
329+
- Parameter
330+
new-output-properties:
331+
- InstanceViewStatuses
332+
- ProtectedParameter
333+
- Parameter
334+
change-description: The types of the properties 'InstanceViewStatuses', 'ProtectedParameter' and 'Parameter' will be changed from single object to 'List'.
335+
deprecated-by-version: 9.0.0
336+
deprecated-by-azversion: 15.0.0
337+
change-effective-date: 2025/11/03
284338
```

src/Compute/Compute.Autorest/custom/New-AzGalleryApplicationVersion.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Create or update a gallery Application Version.
1414
#>
1515
function New-AzGalleryApplicationVersion {
1616
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion])]
17+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IGalleryApplicationVersion", DeprecatedOutputProperties = ("PublishingProfileTargetExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IGalleryTargetExtendedLocation", "ReplicationStatusSummary Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IRegionalReplicationStatus", "TargetRegion Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.ITargetRegion", "EncryptionDataDiskImage Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IDataDiskImageEncryption"), NewOutputProperties = ("PublishingProfileTargetExtendedLocation System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IGalleryTargetExtendedLocation]", "ReplicationStatusSummary System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IRegionalReplicationStatus]", "TargetRegion System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.ITargetRegion]", "EncryptionDataDiskImage System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IDataDiskImageEncryption]"))]
1718
[CmdletBinding(DefaultParameterSetName = 'CreateExpanded', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
1819
param(
1920
[Parameter(Mandatory)]

src/Compute/Compute.Autorest/custom/Update-AzGalleryApplicationVersion.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Update a gallery Application Version.
1515

1616
function Update-AzGalleryApplicationVersion {
1717
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion])]
18+
[Microsoft.Azure.PowerShell.Cmdlets.Compute.Runtime.OutputBreakingChangeAttribute("Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20220103.IGalleryApplicationVersion", "15.0.0", "9.0.0", "2025/11/03", ReplacementCmdletOutputType = "Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IGalleryApplicationVersion", DeprecatedOutputProperties = ("PublishingProfileTargetExtendedLocation Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IGalleryTargetExtendedLocation", "ReplicationStatusSummary Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IRegionalReplicationStatus", "TargetRegion Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.ITargetRegion"), NewOutputProperties = ("PublishingProfileTargetExtendedLocation System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IGalleryTargetExtendedLocation]", "ReplicationStatusSummary System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.IRegionalReplicationStatus]", "TargetRegion System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.ITargetRegion]"))]
1819
[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
1920
param(
2021
[Parameter(ParameterSetName='UpdateExpanded', Mandatory)]

src/Compute/Compute.Autorest/docs/Az.Compute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.Compute
3-
Module Guid: 6efa7baa-fa76-4740-bf80-bafbbd1b0b65
3+
Module Guid: 969c43c4-cc53-4871-b660-e3afb5b5796b
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.compute
55
Help Version: 1.0.0.0
66
Locale: en-US
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "926fc75a-f3b2-4f73-aff1-e949e3a4023d"
2+
"generate_Id": "721e76b4-562a-4c6c-a968-79a86bbb3336"
33
}

src/Compute/Compute.sln

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ManagedServiceIdentity",
4949
EndProject
5050
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Compute.Autorest", "Compute.Autorest", "{18C4E64E-9E36-9EC3-08A5-34B2FE79BAE7}"
5151
EndProject
52-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Compute", "..\..\generated\Compute\Compute.Autorest\Az.Compute.csproj", "{D2DD9E1F-9509-4157-8493-F5CFC393FAC3}"
52+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Compute", "..\..\generated\Compute\Compute.Autorest\Az.Compute.csproj", "{059EADF3-9281-4557-A80B-367109F10C1F}"
5353
EndProject
5454
Global
5555
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -289,18 +289,18 @@ Global
289289
{443B0412-6B55-4F5B-B6C3-9B26C6F49ECB}.Release|x64.Build.0 = Release|Any CPU
290290
{443B0412-6B55-4F5B-B6C3-9B26C6F49ECB}.Release|x86.ActiveCfg = Release|Any CPU
291291
{443B0412-6B55-4F5B-B6C3-9B26C6F49ECB}.Release|x86.Build.0 = Release|Any CPU
292-
{D2DD9E1F-9509-4157-8493-F5CFC393FAC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
293-
{D2DD9E1F-9509-4157-8493-F5CFC393FAC3}.Debug|Any CPU.Build.0 = Debug|Any CPU
294-
{D2DD9E1F-9509-4157-8493-F5CFC393FAC3}.Debug|x64.ActiveCfg = Debug|Any CPU
295-
{D2DD9E1F-9509-4157-8493-F5CFC393FAC3}.Debug|x64.Build.0 = Debug|Any CPU
296-
{D2DD9E1F-9509-4157-8493-F5CFC393FAC3}.Debug|x86.ActiveCfg = Debug|Any CPU
297-
{D2DD9E1F-9509-4157-8493-F5CFC393FAC3}.Debug|x86.Build.0 = Debug|Any CPU
298-
{D2DD9E1F-9509-4157-8493-F5CFC393FAC3}.Release|Any CPU.ActiveCfg = Release|Any CPU
299-
{D2DD9E1F-9509-4157-8493-F5CFC393FAC3}.Release|Any CPU.Build.0 = Release|Any CPU
300-
{D2DD9E1F-9509-4157-8493-F5CFC393FAC3}.Release|x64.ActiveCfg = Release|Any CPU
301-
{D2DD9E1F-9509-4157-8493-F5CFC393FAC3}.Release|x64.Build.0 = Release|Any CPU
302-
{D2DD9E1F-9509-4157-8493-F5CFC393FAC3}.Release|x86.ActiveCfg = Release|Any CPU
303-
{D2DD9E1F-9509-4157-8493-F5CFC393FAC3}.Release|x86.Build.0 = Release|Any CPU
292+
{059EADF3-9281-4557-A80B-367109F10C1F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
293+
{059EADF3-9281-4557-A80B-367109F10C1F}.Debug|Any CPU.Build.0 = Debug|Any CPU
294+
{059EADF3-9281-4557-A80B-367109F10C1F}.Debug|x64.ActiveCfg = Debug|Any CPU
295+
{059EADF3-9281-4557-A80B-367109F10C1F}.Debug|x64.Build.0 = Debug|Any CPU
296+
{059EADF3-9281-4557-A80B-367109F10C1F}.Debug|x86.ActiveCfg = Debug|Any CPU
297+
{059EADF3-9281-4557-A80B-367109F10C1F}.Debug|x86.Build.0 = Debug|Any CPU
298+
{059EADF3-9281-4557-A80B-367109F10C1F}.Release|Any CPU.ActiveCfg = Release|Any CPU
299+
{059EADF3-9281-4557-A80B-367109F10C1F}.Release|Any CPU.Build.0 = Release|Any CPU
300+
{059EADF3-9281-4557-A80B-367109F10C1F}.Release|x64.ActiveCfg = Release|Any CPU
301+
{059EADF3-9281-4557-A80B-367109F10C1F}.Release|x64.Build.0 = Release|Any CPU
302+
{059EADF3-9281-4557-A80B-367109F10C1F}.Release|x86.ActiveCfg = Release|Any CPU
303+
{059EADF3-9281-4557-A80B-367109F10C1F}.Release|x86.Build.0 = Release|Any CPU
304304
EndGlobalSection
305305
GlobalSection(SolutionProperties) = preSolution
306306
HideSolutionNode = FALSE
@@ -320,6 +320,6 @@ Global
320320
{DAD5BF2B-686B-4269-8FFA-5A86D7C23A31} = {6781D587-D8BB-48B9-9952-B05F3D237606}
321321
{F45CEC09-0408-43D6-A679-5149715D9904} = {E9336DDF-EEF7-474E-BCF1-ED87313F4D17}
322322
{2B0B2D44-5207-4192-894E-9AB8DEE6F791} = {6781D587-D8BB-48B9-9952-B05F3D237606}
323-
{D2DD9E1F-9509-4157-8493-F5CFC393FAC3} = {18C4E64E-9E36-9EC3-08A5-34B2FE79BAE7}
323+
{059EADF3-9281-4557-A80B-367109F10C1F} = {18C4E64E-9E36-9EC3-08A5-34B2FE79BAE7}
324324
EndGlobalSection
325325
EndGlobal

src/Compute/Compute/Az.Compute.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 7/30/2025
6+
# Generated on: 2025-07-31
77
#
88

99
@{

src/Compute/Compute/ChangeLog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
2121
-->
2222
## Upcoming Release
23+
* Added BreakingChange announcements for commands below:
24+
* `Get-GalleryApplicationVersion`
25+
* `New-GalleryApplicationVersion`
26+
* `Update-GalleryApplicationVersion`
27+
* `Invoke-AzSpotPlacementScore`
28+
* `Set-AzVMRunCommand`
29+
* `Set-AzVmssVMRunCommand`
2330

2431
## Version 10.2.0
2532
* Compute DiskRP related cmdlets will now use 2025-01-02 version of the DiskRP API.

src/Compute/Compute/help/Set-AzVMRunCommand.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The operation to create or update the run command.
4747

4848
### Example 1: Create or update Run Command on a VM using a storage blob SAS URL
4949
```powershell
50-
Set-AzVMRunCommand -ResourceGroupName MyRG0 -VMName MyVMEE -RunCommandName MyRunCommand -Location EastUS2EUAP -SourceScriptUri "https://myst.blob.core.windows.net/mycontainer/myscript.ps1?sp=r&st=2022-10-27T21:02:35Z&se=2022-10-28T05:02:35Z&spr=https&sv=2021-06-08&sr=b&sig=0I%2FIiYayRwHasfasasfdasdfasdeTsQjLnpZjA%3D"
50+
Set-AzVMRunCommand -ResourceGroupName MyRG0 -VMName MyVMEE -RunCommandName MyRunCommand -Location EastUS2EUAP -SourceScriptUri "https://myst.blob.core.windows.net/mycontainer/myscript.ps1?sp=r&st=2022-10-27T21:02:35Z&se=2022-10-28T05:02:35Z&spr=https&sv=2021-06-08&sr=b&sig=******"
5151
```
5252

5353
```output
@@ -105,7 +105,7 @@ Available commandIds can be retrieved using Get-AzVMRunCommandDocument.
105105

106106
### Example 5: Create or update Run Command on a VM and stream standard output and standard error messages to output and error Append blobs.
107107
```powershell
108-
Set-AzVMRunCommand -ResourceGroupName MyRG0 -VMName MyVML -RunCommandName MyRunCommand3 -Location EastUS2EUAP -ScriptLocalPath "C:\MyScriptsDir\MyScript.ps1" -OutputBlobUri "https://vivst.blob.core.windows.net/vivcontainer/output.txt?sp=racw&st=2022-10-27T22:18:36Z&se=2022-10-28T06:18:36Z&spr=https&sv=2021-06-08&sr=b&sig=HQAu3Bl%2BKMofYTjMo8o5hasfadsfasdF4jIkRJra4S5FlEo%3D" -ErrorBlobUri "https://vivst.blob.core.windows.net/vivcontainer/error.txt?sp=racw&st=2022-10-27T22:18:36Z&se=2022-10-28T06:18:36Z&spr=https&sv=2021-06-08&sr=b&sig=HQAu3Bl%2BKMofYTjMo8o5h%asfasdfgdT%2F4jasfasdf5FlEo%3D"
108+
Set-AzVMRunCommand -ResourceGroupName MyRG0 -VMName MyVML -RunCommandName MyRunCommand3 -Location EastUS2EUAP -ScriptLocalPath "C:\MyScriptsDir\MyScript.ps1" -OutputBlobUri "https://vivst.blob.core.windows.net/vivcontainer/output.txt?sp=racw&st=2022-10-27T22:18:36Z&se=2022-10-28T06:18:36Z&spr=https&sv=2021-06-08&sr=b&sig=******" -ErrorBlobUri "https://vivst.blob.core.windows.net/vivcontainer/error.txt?sp=racw&st=2022-10-27T22:18:36Z&se=2022-10-28T06:18:36Z&spr=https&sv=2021-06-08&sr=b&sig=******"
109109
```
110110

111111
```output

src/Compute/Compute/help/Set-AzVmssVMRunCommand.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The operation to create or update the VMSS VM run command.
4848

4949
### Example 1: Create or update Run Command on a VMSS VM instance using a storage blob SAS URL
5050
```powershell
51-
Set-AzVmssVMRunCommand -ResourceGroupName MyRG0 -VMScaleSetName MyVMSS -InstanceId 0 -RunCommandName MyRunCommand -Location EastUS2EUAP -SourceScriptUri "https://myst.blob.core.windows.net/mycontainer/myscript.ps1?sp=r&st=2022-10-27T21:02:35Z&se=2022-10-28T05:02:35Z&spr=https&sv=2021-06-08&sr=b&sig=0I%2FIiYayRwHasfasasfdasdfasdeTsQjLnpZjA%3D"
51+
Set-AzVmssVMRunCommand -ResourceGroupName MyRG0 -VMScaleSetName MyVMSS -InstanceId 0 -RunCommandName MyRunCommand -Location EastUS2EUAP -SourceScriptUri "https://myst.blob.core.windows.net/mycontainer/myscript.ps1?sp=r&st=2022-10-27T21:02:35Z&se=2022-10-28T05:02:35Z&spr=https&sv=2021-06-08&sr=b&sig=******"
5252
```
5353

5454
```output
@@ -106,7 +106,7 @@ Available commandIds can be retrieved using Get-AzVMRunCommandDocument.
106106

107107
### Example 5: Create or update Run Command on a VMSS VM instance and stream standard output and standard error messages to output and error Append blobs.
108108
```powershell
109-
Set-AzVmssVMRunCommand -ResourceGroupName MyRG0 -VMScaleSetName MyVMSS -InstanceId 1 -RunCommandName MyRunCommand3 -Location EastUS2EUAP -ScriptLocalPath "C:\MyScriptsDir\MyScript.ps1" -OutputBlobUri "https://vivst.blob.core.windows.net/vivcontainer/output.txt?sp=racw&st=2022-10-27T22:18:36Z&se=2022-10-28T06:18:36Z&spr=https&sv=2021-06-08&sr=b&sig=HQAu3Bl%2BKMofYTjMo8o5hasfadsfasdF4jIkRJra4S5FlEo%3D" -ErrorBlobUri "https://vivst.blob.core.windows.net/vivcontainer/error.txt?sp=racw&st=2022-10-27T22:18:36Z&se=2022-10-28T06:18:36Z&spr=https&sv=2021-06-08&sr=b&sig=HQAu3Bl%2BKMofYTjMo8o5h%asfasdfgdT%2F4jasfasdf5FlEo%3D"
109+
Set-AzVmssVMRunCommand -ResourceGroupName MyRG0 -VMScaleSetName MyVMSS -InstanceId 1 -RunCommandName MyRunCommand3 -Location EastUS2EUAP -ScriptLocalPath "C:\MyScriptsDir\MyScript.ps1" -OutputBlobUri "https://vivst.blob.core.windows.net/vivcontainer/output.txt?sp=racw&st=2022-10-27T22:18:36Z&se=2022-10-28T06:18:36Z&spr=https&sv=2021-06-08&sr=b&sig=******" -ErrorBlobUri "https://vivst.blob.core.windows.net/vivcontainer/error.txt?sp=racw&st=2022-10-27T22:18:36Z&se=2022-10-28T06:18:36Z&spr=https&sv=2021-06-08&sr=b&sig=******"
110110
```
111111

112112
```output

0 commit comments

Comments
 (0)