Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,13 @@ process {
{
$null = $PSBoundParameters.Add("IPAddressPort", $Container.Port)
}



if(!$PSBoundParameters.ContainsKey("StandbyPoolProfileId")) {
if(!$PSBoundParameters.ContainsKey("OSType")) {
$null = $PSBoundParameters.Add("OSType", "Linux")
}
}

Az.ContainerInstance.internal\New-AzContainerGroup @PSBoundParameters
} catch {
throw
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,16 @@ function New-MetadataForParameterSet()
$cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name
$description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description
[object[]]$example = New-ExampleForParameterSet $ParameterSetInfo
if ($Null -eq $example)
{
$example = @()
}

[string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo
if ($Null -eq $signature)
{
$signature = @()
}

return @{
Path = $httpPath
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/6/2024
# Generated on: 11/14/2024
#

@{
Expand Down Expand Up @@ -51,7 +51,7 @@ DotNetFrameworkVersion = '4.7.2'
# ProcessorArchitecture = ''

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

# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = 'ContainerInstance.Autorest/bin/Az.ContainerInstance.private.dll'
Expand Down
1 change: 0 additions & 1 deletion src/ContainerInstance/ContainerInstance/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* Added ConfigMapKeyValuePair to Container object properties.
* Added new cmdlet to define container without using the preset default properties New-AzContainerInstanceNoDefaultObject
* Added new cmdlets for Container Group Profile - Get-AzContainerInstanceContainerGroupProfile, New-AzContainerInstanceContainerGroupProfile, Remove-AzContainerInstanceContainerGroupProfile, Update-AzContainerInstanceContainerGroupProfile, Get-AzContainerInstanceContainerGroupProfileRevision
* For Container Group properties, the default value for OsType is no longer preset to Linux and has to be explicitly specified.

## Version 4.0.2
* Fixed secrets exposure in example documentation.
Expand Down