Skip to content

Commit 9c5828f

Browse files
Migrate ContainerInstance from generation to main (#26879)
* Move ContainerInstance to main * Update Add-AzContainerInstanceOutput.Recording.json * Update ChangeLog.md --------- Co-authored-by: Yabo Hu <[email protected]>
1 parent b80e893 commit 9c5828f

File tree

36 files changed

+518
-54
lines changed

36 files changed

+518
-54
lines changed

src/ContainerInstance/ContainerInstance.Autorest/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,16 @@ directive:
116116
verb: Invoke
117117
subject: Command
118118
hide: true
119+
# Breaking change for OSType parameter
120+
- where:
121+
parameter-name: OSType
122+
set:
123+
breaking-change:
124+
become-mandatory: false
125+
change-description: Removing the default value of OSType parameter.
126+
deprecated-by-version: 5.0.0
127+
deprecated-by-azversion: 14.0.0
128+
change-effective-date: 2025/05/21
119129
# Alias long name: Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint
120130
- where:
121131
verb: Get

src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroup.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ param(
5959
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes])]
6060
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
6161
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes]
62+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ParameterBreakingChangeAttribute("OSType", "14.0.0", "5.0.0", "2025/05/21")]
6263
# The operating system type required by the containers in the container group.
6364
${OSType},
6465

src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/NewAzContainerGroup_CreateExpanded.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem
438438
Description = @"The operating system type required by the containers in the container group.",
439439
SerializedName = @"osType",
440440
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) })]
441+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ParameterBreakingChange("OSType", "14.0.0", "5.0.0", "2025/05/21", ChangeDescription="Removing the default value of OSType parameter.")]
441442
[global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes))]
442443
public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get => _containerGroupBody.OSType ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes)""); set => _containerGroupBody.OSType = value; }
443444

src/ContainerInstance/ContainerInstance.Autorest/generated/cmdlets/NewAzContainerInstanceContainerGroupProfile_CreateExpanded.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ public partial class NewAzContainerInstanceContainerGroupProfile_CreateExpanded
338338
Description = @"The operating system type required by the containers in the container group.",
339339
SerializedName = @"osType",
340340
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) })]
341+
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ParameterBreakingChange("OSType", "14.0.0", "5.0.0", "2025/05/21", ChangeDescription="Removing the default value of OSType parameter.")]
341342
[global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes))]
342343
public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get => _containerGroupProfileBody.OSType; set => _containerGroupProfileBody.OSType = value; }
343344

src/ContainerInstance/ContainerInstance/Az.ContainerInstance.psd1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 11/15/2024
6+
# Generated on: 12/17/2024
77
#
88

99
@{
@@ -57,10 +57,10 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.0'; })
5757
RequiredAssemblies = 'ContainerInstance.Autorest/bin/Az.ContainerInstance.private.dll'
5858

5959
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60-
# ScriptsToProcess = @()
60+
ScriptsToProcess = @()
6161

6262
# Type files (.ps1xml) to be loaded when importing this module
63-
# TypesToProcess = @()
63+
TypesToProcess = @()
6464

6565
# Format files (.ps1xml) to be loaded when importing this module
6666
FormatsToProcess = 'ContainerInstance.Autorest/Az.ContainerInstance.format.ps1xml'
@@ -119,7 +119,7 @@ PrivateData = @{
119119
PSData = @{
120120

121121
# Tags applied to this module. These help with module discovery in online galleries.
122-
Tags = 'Azure','ResourceManager','ARM','PSModule','ContainerInstance'
122+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ContainerInstance'
123123

124124
# A URL to the license for this module.
125125
LicenseUri = 'https://aka.ms/azps-license'
@@ -147,7 +147,7 @@ PrivateData = @{
147147

148148
} # End of PSData hashtable
149149

150-
} # End of PrivateData hashtable
150+
} # End of PrivateData hashtable
151151

152152
# HelpInfo URI of this module
153153
# HelpInfoURI = ''

src/ContainerInstance/ContainerInstance/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020

2121
## Upcoming Release
22+
* Added breaking change warning for removing default value for OsType `New-AzContainerGroup`
2223

2324
## Version 4.1.0
2425
* Added ContainerGroupProfileId ContainerGroupProfileRevision StandbyPoolProfileFailContainerGroupCreateOnReuseFailure StandbyPoolProfileId to Container Group properties.

src/ContainerInstance/ContainerInstance/help/Add-AzContainerInstanceOutput.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Attach to the output stream of a specific container instance in a specified reso
1414

1515
```
1616
Add-AzContainerInstanceOutput -GroupName <String> -Name <String> -ResourceGroupName <String>
17-
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-WhatIf]
17+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [-WhatIf]
1818
[-Confirm] [<CommonParameters>]
1919
```
2020

@@ -86,6 +86,21 @@ Accept pipeline input: False
8686
Accept wildcard characters: False
8787
```
8888
89+
### -ProgressAction
90+
{{ Fill ProgressAction Description }}
91+
92+
```yaml
93+
Type: System.Management.Automation.ActionPreference
94+
Parameter Sets: (All)
95+
Aliases: proga
96+
97+
Required: False
98+
Position: Named
99+
Default value: None
100+
Accept pipeline input: False
101+
Accept wildcard characters: False
102+
```
103+
89104
### -ResourceGroupName
90105
The name of the resource group.
91106
The name is case insensitive.

src/ContainerInstance/ContainerInstance/help/Get-AzContainerGroup.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@ The operation returns the properties of each container group including container
1616
### List (Default)
1717
```
1818
Get-AzContainerGroup [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
19-
[<CommonParameters>]
19+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
2020
```
2121

2222
### Get
2323
```
2424
Get-AzContainerGroup -Name <String> -ResourceGroupName <String> [-SubscriptionId <String[]>]
25-
[-DefaultProfile <PSObject>] [<CommonParameters>]
25+
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
2626
```
2727

2828
### List1
2929
```
3030
Get-AzContainerGroup -ResourceGroupName <String> [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
31-
[<CommonParameters>]
31+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
3232
```
3333

3434
### GetViaIdentity
3535
```
3636
Get-AzContainerGroup -InputObject <IContainerInstanceIdentity> [-DefaultProfile <PSObject>]
37-
[<CommonParameters>]
37+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
3838
```
3939

4040
## DESCRIPTION
@@ -191,6 +191,21 @@ Accept pipeline input: False
191191
Accept wildcard characters: False
192192
```
193193
194+
### -ProgressAction
195+
{{ Fill ProgressAction Description }}
196+
197+
```yaml
198+
Type: System.Management.Automation.ActionPreference
199+
Parameter Sets: (All)
200+
Aliases: proga
201+
202+
Required: False
203+
Position: Named
204+
Default value: None
205+
Accept pipeline input: False
206+
Accept wildcard characters: False
207+
```
208+
194209
### -ResourceGroupName
195210
The name of the resource group.
196211
The name is case insensitive.

src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceCachedImage.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Get the list of cached images on specific OS type for a subscription in a region
1414

1515
```
1616
Get-AzContainerInstanceCachedImage -Location <String> [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
17-
[<CommonParameters>]
17+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
1818
```
1919

2020
## DESCRIPTION
@@ -71,6 +71,21 @@ Accept pipeline input: False
7171
Accept wildcard characters: False
7272
```
7373
74+
### -ProgressAction
75+
{{ Fill ProgressAction Description }}
76+
77+
```yaml
78+
Type: System.Management.Automation.ActionPreference
79+
Parameter Sets: (All)
80+
Aliases: proga
81+
82+
Required: False
83+
Position: Named
84+
Default value: None
85+
Accept pipeline input: False
86+
Accept wildcard characters: False
87+
```
88+
7489
### -SubscriptionId
7590
The ID of the target subscription.
7691
The value must be an UUID.

src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceCapability.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Get the list of CPU/memory/GPU capabilities of a region.
1414

1515
```
1616
Get-AzContainerInstanceCapability -Location <String> [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
17-
[<CommonParameters>]
17+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
1818
```
1919

2020
## DESCRIPTION
@@ -75,6 +75,21 @@ Accept pipeline input: False
7575
Accept wildcard characters: False
7676
```
7777
78+
### -ProgressAction
79+
{{ Fill ProgressAction Description }}
80+
81+
```yaml
82+
Type: System.Management.Automation.ActionPreference
83+
Parameter Sets: (All)
84+
Aliases: proga
85+
86+
Required: False
87+
Position: Named
88+
Default value: None
89+
Accept pipeline input: False
90+
Accept wildcard characters: False
91+
```
92+
7893
### -SubscriptionId
7994
The ID of the target subscription.
8095
The value must be an UUID.

0 commit comments

Comments
 (0)