Skip to content

Commit

Permalink
Migrate ContainerInstance from generation to main (#26879)
Browse files Browse the repository at this point in the history
* Move ContainerInstance to main

* Update Add-AzContainerInstanceOutput.Recording.json

* Update ChangeLog.md

---------

Co-authored-by: Yabo Hu <yabhu@microsoft.com>
  • Loading branch information
azure-powershell-bot and VeryEarly authored Dec 17, 2024
1 parent b80e893 commit 9c5828f
Show file tree
Hide file tree
Showing 36 changed files with 518 additions and 54 deletions.
10 changes: 10 additions & 0 deletions src/ContainerInstance/ContainerInstance.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,16 @@ directive:
verb: Invoke
subject: Command
hide: true
# Breaking change for OSType parameter
- where:
parameter-name: OSType
set:
breaking-change:
become-mandatory: false
change-description: Removing the default value of OSType parameter.
deprecated-by-version: 5.0.0
deprecated-by-azversion: 14.0.0
change-effective-date: 2025/05/21
# Alias long name: Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint
- where:
verb: Get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ param(
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes])]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.ParameterBreakingChangeAttribute("OSType", "14.0.0", "5.0.0", "2025/05/21")]
# The operating system type required by the containers in the container group.
${OSType},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ public partial class NewAzContainerGroup_CreateExpanded : global::System.Managem
Description = @"The operating system type required by the containers in the container group.",
SerializedName = @"osType",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) })]
[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.")]
[global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes))]
public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get => _containerGroupBody.OSType ?? ((Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes)""); set => _containerGroupBody.OSType = value; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ public partial class NewAzContainerInstanceContainerGroupProfile_CreateExpanded
Description = @"The operating system type required by the containers in the container group.",
SerializedName = @"osType",
PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes) })]
[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.")]
[global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes))]
public Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes OSType { get => _containerGroupProfileBody.OSType; set => _containerGroupProfileBody.OSType = value; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 11/15/2024
# Generated on: 12/17/2024
#

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

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

# Type files (.ps1xml) to be loaded when importing this module
# TypesToProcess = @()
TypesToProcess = @()

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

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

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

} # End of PSData hashtable

} # End of PrivateData hashtable
} # End of PrivateData hashtable

# HelpInfo URI of this module
# HelpInfoURI = ''
Expand Down
1 change: 1 addition & 0 deletions src/ContainerInstance/ContainerInstance/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-->

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

## Version 4.1.0
* Added ContainerGroupProfileId ContainerGroupProfileRevision StandbyPoolProfileFailContainerGroupCreateOnReuseFailure StandbyPoolProfileId to Container Group properties.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Attach to the output stream of a specific container instance in a specified reso

```
Add-AzContainerInstanceOutput -GroupName <String> -Name <String> -ResourceGroupName <String>
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-WhatIf]
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [-WhatIf]
[-Confirm] [<CommonParameters>]
```

Expand Down Expand Up @@ -86,6 +86,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
{{ Fill ProgressAction Description }}
```yaml
Type: System.Management.Automation.ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ResourceGroupName
The name of the resource group.
The name is case insensitive.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ The operation returns the properties of each container group including container
### List (Default)
```
Get-AzContainerGroup [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
[<CommonParameters>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### Get
```
Get-AzContainerGroup -Name <String> -ResourceGroupName <String> [-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### List1
```
Get-AzContainerGroup -ResourceGroupName <String> [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
[<CommonParameters>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### GetViaIdentity
```
Get-AzContainerGroup -InputObject <IContainerInstanceIdentity> [-DefaultProfile <PSObject>]
[<CommonParameters>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -191,6 +191,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
{{ Fill ProgressAction Description }}
```yaml
Type: System.Management.Automation.ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ResourceGroupName
The name of the resource group.
The name is case insensitive.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Get the list of cached images on specific OS type for a subscription in a region

```
Get-AzContainerInstanceCachedImage -Location <String> [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
[<CommonParameters>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -71,6 +71,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
{{ Fill ProgressAction Description }}
```yaml
Type: System.Management.Automation.ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -SubscriptionId
The ID of the target subscription.
The value must be an UUID.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Get the list of CPU/memory/GPU capabilities of a region.

```
Get-AzContainerInstanceCapability -Location <String> [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
[<CommonParameters>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -75,6 +75,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
{{ Fill ProgressAction Description }}
```yaml
Type: System.Management.Automation.ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -SubscriptionId
The ID of the target subscription.
The value must be an UUID.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ For container groups, this will always be an empty list.
```
Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint -ContainerGroupName <String>
-ResourceGroupName <String> [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
[<CommonParameters>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### GetViaIdentity
```
Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint
-InputObject <IContainerInstanceIdentity> [-DefaultProfile <PSObject>]
-InputObject <IContainerInstanceIdentity> [-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
```

Expand Down Expand Up @@ -94,6 +94,21 @@ Accept pipeline input: True (ByValue)
Accept wildcard characters: False
```
### -ProgressAction
{{ Fill ProgressAction Description }}
```yaml
Type: System.Management.Automation.ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ResourceGroupName
The name of the resource group.
The name is case insensitive.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,39 @@ The operation returns the properties of container group profile including contai
### List (Default)
```
Get-AzContainerInstanceContainerGroupProfile [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
[<CommonParameters>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### Get1
```
Get-AzContainerInstanceContainerGroupProfile -Name <String> -ResourceGroupName <String>
[-SubscriptionId <String[]>] -RevisionNumber <String> [-DefaultProfile <PSObject>]
[<CommonParameters>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### Get
```
Get-AzContainerInstanceContainerGroupProfile -Name <String> -ResourceGroupName <String>
[-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
[-SubscriptionId <String[]>] [-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
```

### List1
```
Get-AzContainerInstanceContainerGroupProfile -ResourceGroupName <String> [-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### GetViaIdentity1
```
Get-AzContainerInstanceContainerGroupProfile -InputObject <IContainerInstanceIdentity>
[-DefaultProfile <PSObject>] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### GetViaIdentity
```
Get-AzContainerInstanceContainerGroupProfile -InputObject <IContainerInstanceIdentity>
[-DefaultProfile <PSObject>] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -238,6 +238,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
{{ Fill ProgressAction Description }}
```yaml
Type: System.Management.Automation.ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ResourceGroupName
The name of the resource group.
The name is case insensitive.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This operation returns properties of each revision of the specified container gr
```
Get-AzContainerInstanceContainerGroupProfileRevision -ContainerGroupProfileName <String>
-ResourceGroupName <String> [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
[<CommonParameters>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -72,6 +72,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
{{ Fill ProgressAction Description }}
```yaml
Type: System.Management.Automation.ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ResourceGroupName
The name of the resource group.
The name is case insensitive.
Expand Down
Loading

0 comments on commit 9c5828f

Please sign in to comment.