Skip to content

Commit 039b384

Browse files
Migrate ContainerInstance from generation to release-2024-11-19 (#26690)
* Move ContainerInstance to release-2024-11-19 * Remove ProgressAction and update change log * Reset recording --------- Co-authored-by: Vincent Dai <[email protected]>
1 parent 730a85a commit 039b384

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,13 @@ process {
338338
{
339339
$null = $PSBoundParameters.Add("IPAddressPort", $Container.Port)
340340
}
341-
342-
343341

342+
if(!$PSBoundParameters.ContainsKey("StandbyPoolProfileId")) {
343+
if(!$PSBoundParameters.ContainsKey("OSType")) {
344+
$null = $PSBoundParameters.Add("OSType", "Linux")
345+
}
346+
}
347+
344348
Az.ContainerInstance.internal\New-AzContainerGroup @PSBoundParameters
345349
} catch {
346350
throw

src/ContainerInstance/ContainerInstance.Autorest/generate-portal-ux.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,16 @@ function New-MetadataForParameterSet()
248248
$cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name
249249
$description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description
250250
[object[]]$example = New-ExampleForParameterSet $ParameterSetInfo
251+
if ($Null -eq $example)
252+
{
253+
$example = @()
254+
}
255+
251256
[string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo
257+
if ($Null -eq $signature)
258+
{
259+
$signature = @()
260+
}
252261

253262
return @{
254263
Path = $httpPath

src/ContainerInstance/ContainerInstance/Az.ContainerInstance.psd1

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

99
@{
@@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2'
5151
# ProcessorArchitecture = ''
5252

5353
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '3.0.4'; })
54+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '3.0.5'; })
5555

5656
# Assemblies that must be loaded prior to importing this module
5757
RequiredAssemblies = 'ContainerInstance.Autorest/bin/Az.ContainerInstance.private.dll'

src/ContainerInstance/ContainerInstance/ChangeLog.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
* Added ConfigMapKeyValuePair to Container object properties.
2424
* Added new cmdlet to define container without using the preset default properties New-AzContainerInstanceNoDefaultObject
2525
* Added new cmdlets for Container Group Profile - Get-AzContainerInstanceContainerGroupProfile, New-AzContainerInstanceContainerGroupProfile, Remove-AzContainerInstanceContainerGroupProfile, Update-AzContainerInstanceContainerGroupProfile, Get-AzContainerInstanceContainerGroupProfileRevision
26-
* For Container Group properties, the default value for OsType is no longer preset to Linux and has to be explicitly specified.
2726

2827
## Version 4.0.2
2928
* Fixed secrets exposure in example documentation.

0 commit comments

Comments
 (0)