diff --git a/src/ContainerInstance/ContainerInstance.Autorest/Properties/AssemblyInfo.cs b/src/ContainerInstance/ContainerInstance.Autorest/Properties/AssemblyInfo.cs
new file mode 100644
index 000000000000..1cbcabe3e3c7
--- /dev/null
+++ b/src/ContainerInstance/ContainerInstance.Autorest/Properties/AssemblyInfo.cs
@@ -0,0 +1,27 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the Apache License, Version 2.0 (the ""License"");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an ""AS IS"" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+// is regenerated.
+
+using System;
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
+[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
+[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
+[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - ContainerInstance")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("4.1.1")]
+[assembly: System.Reflection.AssemblyVersionAttribute("4.1.1")]
+[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
+[assembly: System.CLSCompliantAttribute(false)]
+
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/README.md b/src/ContainerInstance/ContainerInstance.Autorest/README.md
index 54294c1b2a25..368a21a3271e 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/README.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/README.md
@@ -42,24 +42,16 @@ module-version: 1.0.3
# Normally, title is the service name
title: ContainerInstance
subject-prefix: $(service-name)
-identity-correction-for-post: true
-nested-object-to-string: true
-resourcegroup-append: true
-
-# If there are post APIs for some kinds of actions in the RP, you may need to
-# uncomment following line to support viaIdentity for these post APIs
-# identity-correctiEXon-for-post: true
-
-# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
-use-extension:
- "@autorest/powershell": "3.x"
directive:
# Following is two common directive which are normally required in all the RPs
# 1. Remove the unexpanded parameter set
# 2. For New-* cmdlets, ViaIdentity is not required, so CreateViaIdentityExpanded is removed as well
- where:
- variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^Execute$|^ExecuteViaIdentity$|^ExecuteViaIdentityExpanded$|^AttachViaIdentity$
+ variant: ^(Create|Update|Execute)(?!.*?(Expanded|JsonFilePath|JsonString))
+ remove: true
+ - where:
+ variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$|^ExecuteViaIdentityExpanded$|^AttachViaIdentity$
remove: true
# Remove the set-* cmdlet
- where:
@@ -153,8 +145,6 @@ directive:
"type": "object",
"additionalProperties": true
}
- # - model-cmdlet:
- # - Volume # Hide to customize AzureFileStorageAccountKey from string to securestring
# Fix Typo: Parameters starting with PreviouState will be corrected as PreviousState.
- where:
@@ -168,4 +158,27 @@ directive:
property-name: ^PreviouState
set:
property-name: PreviousState
+
+# Hide to customize AzureFileStorageAccountKey from string to securestring
+ - model-cmdlet:
+ # - model-name: ImageRegistryCredential
+ # cmdlet-name: New-AzContainerGroupImageRegistryCredentialObject
+ - model-name: Port
+ cmdlet-name: New-AzContainerGroupPortObject
+ # - model-name: Volume
+ # cmdlet-name: New-AzContainerGroupVolumeObject
+ # - model-name: EnvironmentVariable
+ # cmdlet-name: New-AzContainerInstanceEnvironmentVariableObject
+ - model-name: HttpHeader
+ cmdlet-name: New-AzContainerInstanceHttpHeaderObject
+ - model-name: InitContainerDefinition
+ cmdlet-name: New-AzContainerInstanceInitDefinitionObject
+ - model-name: Container
+ cmdlet-name: New-AzContainerInstanceNoDefaultObject
+ - model-name: Container
+ cmdlet-name: New-AzContainerInstanceObject
+ - model-name: ContainerPort
+ cmdlet-name: New-AzContainerInstancePortObject
+ - model-name: VolumeMount
+ cmdlet-name: New-AzContainerInstanceVolumeMountObject
```
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroups.json b/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroups.json
index bb18e66c6cfe..f8875c1283c3 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroups.json
+++ b/src/ContainerInstance/ContainerInstance.Autorest/UX/Microsoft.ContainerInstance/containerGroups.json
@@ -121,7 +121,7 @@
},
{
"name": "Restart-AzContainerGroup",
- "description": "Restarts all containers in a container group in place.\nIf container image has updates, new image will be downloaded.",
+ "description": "Restarts all containers in a container group in place.\nIf container image has restart new image will be downloaded.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart",
"help": {
"learnMore": {
@@ -139,7 +139,7 @@
},
"examples": [
{
- "description": "Restarts all containers in a container group in place. If container image has updates, new image will be downloaded.",
+ "description": "Restarts all containers in a container group in place. If container image has restart new image will be downloaded.",
"parameters": [
{
"name": "-Name",
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/Invoke-AzContainerInstanceCommand.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/Invoke-AzContainerInstanceCommand.ps1
index bbb101cae16f..788fc9d180bb 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/custom/Invoke-AzContainerInstanceCommand.ps1
+++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/Invoke-AzContainerInstanceCommand.ps1
@@ -42,14 +42,15 @@ function Invoke-AzContainerInstanceCommand {
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')]
[System.String]
# The name of the resource group.
+ # The name is case insensitive.
${ResourceGroupName},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
- # Subscription credentials which uniquely identify Microsoft Azure subscription.
- # The subscription ID forms part of the URI for every service call.
+ # The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
[Parameter(Mandatory)]
@@ -83,42 +84,43 @@ function Invoke-AzContainerInstanceCommand {
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
-
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
# Wait for .NET debugger to attach
${Break},
-
+
[Parameter(DontShow)]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]]
# SendAsync Pipeline Steps to be appended to the front of the pipeline
${HttpPipelineAppend},
-
+
[Parameter(DontShow)]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.SendAsyncStep[]]
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
-
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')]
[System.Uri]
# The URI for the proxy server to use
${Proxy},
-
+
[Parameter(DontShow)]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')]
[System.Management.Automation.PSCredential]
# Credentials for a proxy server to use for the remote call
${ProxyCredential},
-
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs b/src/ContainerInstance/ContainerInstance.Autorest/custom/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs
index 071931a4d0c8..3fc531a50189 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/custom/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs
+++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/InvokeAzContainerInstanceCommand_ExecuteExpanded.cs
@@ -28,11 +28,11 @@ public partial class InvokeAzContainerInstanceCommand_ExecuteExpanded : global::
/// on that response. Implement this method in a partial class to enable this behavior
///
/// the raw response message as an global::System.Net.Http.HttpResponseMessage.
- /// the body result as a the body result as a from the remote call
/// /// Determines if the rest of the onOk method should be processed, or if the method should return
/// immediately (set to true to skip further processing )
- partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow)
+ partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow)
{
var containerExecResponse = response.ConfigureAwait(false).GetAwaiter().GetResult();
socket = new System.Net.WebSockets.ClientWebSocket();
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroup.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroup.ps1
index cf46d46ea29e..4a7d04cedcf6 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroup.ps1
+++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroup.ps1
@@ -23,7 +23,7 @@ Create or update container groups with specified configurations.
https://learn.microsoft.com/powershell/module/az.containerinstance/new-azcontainergroup
#>
function New-AzContainerGroup {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerGroup])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(Mandatory)]
@@ -37,242 +37,277 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')]
[System.String]
# The name of the resource group.
+ # The name is case insensitive.
${ResourceGroupName},
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
- # Subscription credentials which uniquely identify Microsoft Azure subscription.
- # The subscription ID forms part of the URI for every service call.
+ # The ID of the target subscription.
+ # The value must be an UUID.
${SubscriptionId},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainer[]]
# The containers within the container group.
- # To construct, see NOTES section for CONTAINER properties and create a hash table.
${Container},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes])]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleterAttribute("Windows", "Linux")]
[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")]
+ [System.String]
# The operating system type required by the containers in the container group.
${OSType},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
+ [System.String]
+ # The base64 encoded confidential compute enforcement policy
+ ${ConfidentialComputePropertyCcePolicy},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.String]
# The container group profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}'.
${ContainerGroupProfileId},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.Int32]
# The container group profile reference revision.
${ContainerGroupProfileRevision},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.String[]]
# The DNS servers for the container group.
${DnsConfigNameServer},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.String]
# The DNS options for the container group.
${DnsConfigOption},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.String]
# The DNS search domains for hostname lookup in the container group.
${DnsConfigSearchDomain},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Determines whether to enable a system-assigned identity for the resource.
+ ${EnableSystemAssignedIdentity},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
+ [System.String]
+ # The keyvault managed identity.
+ ${EncryptionPropertyIdentity},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.String]
# The encryption key name.
${EncryptionPropertyKeyName},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.String]
# The encryption key version.
${EncryptionPropertyKeyVersion},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.String]
# The keyvault base url.
${EncryptionPropertyVaultBaseUrl},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IDeploymentExtensionSpec[]]
+ # extensions used by virtual kubelet
+ ${Extension},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleterAttribute("Unsecure", "TenantReuse", "SubscriptionReuse", "ResourceGroupReuse", "Noreuse")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
+ [System.String]
+ # The value representing the security enum.
+ # The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover.
+ # The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant.
+ # The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription.
+ # The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group.
+ # The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant.
+ ${IPAddressAutoGeneratedDomainNameLabelScope},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.String]
# The Dns name label for the IP.
${IPAddressDnsNameLabel},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.String]
# The IP exposed to the public internet.
${IPAddressIP},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IPort[]]
# The list of ports exposed on the container group.
- # To construct, see NOTES section for IPADDRESSPORT properties and create a hash table.
${IPAddressPort},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType])]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleterAttribute("Public", "Private")]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType]
+ [System.String]
# Specifies if the IP is exposed to the public internet or private VNET.
${IPAddressType},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType])]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType]
- # The type of identity used for the container group.
- # The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities.
- # The type 'None' will remove any identities from the container group.
- ${IdentityType},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupIdentityUserAssignedIdentities]))]
- [System.Collections.Hashtable]
- # The list of user identities associated with the container group.
- # The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- ${IdentityUserAssignedIdentity},
-
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IImageRegistryCredential[]]
# The image registry credentials by which the container group is created from.
- # To construct, see NOTES section for IMAGEREGISTRYCREDENTIAL properties and create a hash table.
${ImageRegistryCredential},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IInitContainerDefinition[]]
# The init containers for a container group.
- # To construct, see NOTES section for INITCONTAINER properties and create a hash table.
${InitContainer},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.String]
# The resource location.
${Location},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType])]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleterAttribute("ContainerInsights", "ContainerInstanceLogs")]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType]
+ [System.String]
# The log type to be used.
${LogAnalyticLogType},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ILogAnalyticsMetadata]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.ILogAnalyticsMetadata]))]
[System.Collections.Hashtable]
# Metadata for log analytics.
${LogAnalyticMetadata},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.String]
# The workspace id for log analytics
${LogAnalyticWorkspaceId},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.String]
# The workspace key for log analytics
${LogAnalyticWorkspaceKey},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.String]
# The workspace resource id for log analytics
${LogAnalyticWorkspaceResourceId},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy])]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleterAttribute("Always", "OnFailure", "Never")]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy]
+ [System.String]
# Restart policy for all containers within the container group.
# - `Always` Always restart- `OnFailure` Restart on failure- `Never` Never restart
${RestartPolicy},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku])]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleterAttribute("Standard", "Dedicated", "Confidential")]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku]
+ [System.String]
# The SKU for a container group.
${Sku},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.Management.Automation.SwitchParameter]
# The flag to determine whether ACI should fail the create request if the container group can not be obtained from standby pool.
${StandbyPoolProfileFailContainerGroupCreateOnReuseFailure},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.String]
# The standby pool profile reference id.This will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StandbyPool/standbyContainerGroupPools/{standbyPoolName}'.
${StandbyPoolProfileId},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerGroupSubnetId[]]
# The subnet resource IDs for a container group.
- # To construct, see NOTES section for SUBNETID properties and create a hash table.
${SubnetId},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IResourceTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IResourceTags]))]
[System.Collections.Hashtable]
# The resource tags.
${Tag},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
+ [System.String[]]
+ # The array of user assigned identities associated with the resource.
+ # The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
+ ${UserAssignedIdentity},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IVolume[]]
# The list of volumes that can be mounted by containers in this container group.
- # To construct, see NOTES section for VOLUME properties and create a hash table.
${Volume},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.String[]]
# The zones for the container group.
${Zone},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter()]
@@ -281,10 +316,11 @@ param(
# Run the command as a job
${AsJob},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleterAttribute("Regular", "Spot")]
[Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')]
[System.String]
- # The priority of the Container Group.
+ # The priority of the container group.
${Priority},
[Parameter(DontShow)]
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupImageRegistryCredentialObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupImageRegistryCredentialObject.ps1
index d8ac8bf594a1..c334ee962fcf 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupImageRegistryCredentialObject.ps1
+++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupImageRegistryCredentialObject.ps1
@@ -22,7 +22,7 @@ Create a in-memory object for ImageRegistryCredential
https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerGroupImageRegistryCredentialObject
#>
function New-AzContainerGroupImageRegistryCredentialObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredential')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.ImageRegistryCredential')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -41,7 +41,7 @@ function New-AzContainerGroupImageRegistryCredentialObject {
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredential]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.ImageRegistryCredential]::New()
if ($PSBoundParameters.ContainsKey('Password')) {
$psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['Password']
}
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupVolumeObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupVolumeObject.ps1
index 9a3f23dff228..58c691b12bd8 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupVolumeObject.ps1
+++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupVolumeObject.ps1
@@ -21,12 +21,12 @@ Create an in-memory object for Volume.
Create an in-memory object for Volume.
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Volume
+Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Volume
.Link
https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerGroupVolumeObject
#>
function New-AzContainerGroupVolumeObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Volume')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Volume')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -43,7 +43,7 @@ function New-AzContainerGroupVolumeObject {
[string]
$AzureFileStorageAccountName,
[Parameter(HelpMessage="The empty directory volume.")]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IVolumeEmptyDir]
$EmptyDir,
[Parameter(HelpMessage="Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.")]
[string]
@@ -58,12 +58,12 @@ function New-AzContainerGroupVolumeObject {
[string]
$Name,
[Parameter(HelpMessage="The secret volume.")]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.ISecretVolume]
$Secret
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Volume]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Volume]::New()
if ($PSBoundParameters.ContainsKey('AzureFileReadOnly')) {
$Object.AzureFileReadOnly = $AzureFileReadOnly
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceEnvironmentVariableObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceEnvironmentVariableObject.ps1
index 85c9cacccc75..59bcd288ac81 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceEnvironmentVariableObject.ps1
+++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceEnvironmentVariableObject.ps1
@@ -22,7 +22,7 @@ Create a in-memory object for EnvironmentVariable
https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceEnvironmentVariableObject
#>
function New-AzContainerInstanceEnvironmentVariableObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariable')]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.EnvironmentVariable')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -38,7 +38,7 @@ function New-AzContainerInstanceEnvironmentVariableObject {
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariable]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.EnvironmentVariable]::New()
if ($PSBoundParameters.ContainsKey('SecureValue')) {
$psTxt = . "$PSScriptRoot/../utils/Unprotect-SecureString.ps1" $PSBoundParameters['SecureValue']
}
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceHttpHeaderObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceHttpHeaderObject.ps1
deleted file mode 100644
index 23571598db83..000000000000
--- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceHttpHeaderObject.ps1
+++ /dev/null
@@ -1,45 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
-# Licensed under the Apache License, Version 2.0 (the \"License\");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# http://www.apache.org/licenses/LICENSE-2.0
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an \"AS IS\" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-Create a in-memory object for HttpHeader
-.Description
-Create a in-memory object for HttpHeader
-.Link
-https://learn.microsoft.com/powershell/module/az.ContainerInstance/New-AzContainerInstanceHttpHeaderObject
-#>
-function New-AzContainerInstanceHttpHeaderObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeader')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(Mandatory, HelpMessage="The header name.")]
- [string]
- $Name,
- [Parameter(HelpMessage="The header value..")]
- [string]
- $Value
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeader]::New()
-
- $Object.Name = $Name
- $Object.Value = $Value
- return $Object
- }
-}
-
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceInitDefinitionObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceInitDefinitionObject.ps1
deleted file mode 100644
index 931c28de1704..000000000000
--- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceInitDefinitionObject.ps1
+++ /dev/null
@@ -1,57 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
-# Licensed under the Apache License, Version 2.0 (the \"License\");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# http://www.apache.org/licenses/LICENSE-2.0
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an \"AS IS\" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-Create a in-memory object for InitContainerDefinition
-.Description
-Create a in-memory object for InitContainerDefinition
-.Link
-https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceInitDefinitionObject
-#>
-function New-AzContainerInstanceInitDefinitionObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinition')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The command to execute within the init container in exec form.")]
- [string[]]
- $Command,
- [Parameter(HelpMessage="The environment variables to set in the init container.")]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]]
- $EnvironmentVariable,
- [Parameter(HelpMessage="The image of the init container.")]
- [string]
- $Image,
- [Parameter(Mandatory, HelpMessage="The name for the init container.")]
- [string]
- $Name,
- [Parameter(HelpMessage="The volume mounts available to the init container.")]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]]
- $VolumeMount
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinition]::New()
-
- $Object.Command = $Command
- $Object.EnvironmentVariable = $EnvironmentVariable
- $Object.Image = $Image
- $Object.Name = $Name
- $Object.VolumeMount = $VolumeMount
- return $Object
- }
-}
-
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceNoDefaultObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceNoDefaultObject.ps1
deleted file mode 100644
index 2ff0d6ed017d..000000000000
--- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceNoDefaultObject.ps1
+++ /dev/null
@@ -1,196 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
-# Licensed under the Apache License, Version 2.0 (the \"License\");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# http://www.apache.org/licenses/LICENSE-2.0
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an \"AS IS\" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-Create a in-memory object for Container with no default values
-.Description
-Create a in-memory object for Container with no default values
-.Link
-https://learn.microsoft.com/powershell/module/az.ContainerInstance/New-AzContainerInstanceNoDefaultObject
-#>
-function New-AzContainerInstanceNoDefaultObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The commands to execute within the container instance in exec form.")]
- [string[]]
- $Command,
- [Parameter(HelpMessage="The key value pairs dictionary in the config map to set in the container instance.")]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs]
- $ConfigMapKeyValuePair,
- [Parameter(HelpMessage="The environment variables to set in the container instance.")]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]]
- $EnvironmentVariable,
- [Parameter(HelpMessage="The name of the image used to create the container instance.")]
- [string]
- $Image,
- [Parameter(HelpMessage="The CPU limit of this container instance.")]
- [double]
- $LimitCpu,
- [Parameter(HelpMessage="The memory limit in GB of this container instance.")]
- [double]
- $LimitMemoryInGb,
- [Parameter(HelpMessage="The count of the GPU resource.")]
- [int]
- $LimitsGpuCount,
- [Parameter(HelpMessage="The SKU of the GPU resource.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku])]
- [string]
- $LimitsGpuSku,
- [Parameter(HelpMessage="The commands to execute within the container.")]
- [string[]]
- $LivenessProbeExecCommand,
- [Parameter(HelpMessage="The failure threshold.")]
- [int]
- $LivenessProbeFailureThreshold,
- [Parameter(HelpMessage="The HTTP headers for liveness probe.")]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]]
- $LivenessProbeHttpGetHttpHeader,
- [Parameter(HelpMessage="The path to probe.")]
- [string]
- $LivenessProbeHttpGetPath,
- [Parameter(HelpMessage="The port number to probe.")]
- [int]
- $LivenessProbeHttpGetPort,
- [Parameter(HelpMessage="The scheme.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme])]
- [string]
- $LivenessProbeHttpGetScheme,
- [Parameter(HelpMessage="The initial delay seconds.")]
- [int]
- $LivenessProbeInitialDelaySecond,
- [Parameter(HelpMessage="The period seconds.")]
- [int]
- $LivenessProbePeriodSecond,
- [Parameter(HelpMessage="The success threshold.")]
- [int]
- $LivenessProbeSuccessThreshold,
- [Parameter(HelpMessage="The timeout seconds.")]
- [int]
- $LivenessProbeTimeoutSecond,
- [Parameter(Mandatory, HelpMessage="The user-provided name of the container instance.")]
- [string]
- $Name,
- [Parameter(HelpMessage="The exposed ports on the container instance.")]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[]]
- $Port,
- [Parameter(HelpMessage="The commands to execute within the container.")]
- [string[]]
- $ReadinessProbeExecCommand,
- [Parameter(HelpMessage="The failure threshold.")]
- [int]
- $ReadinessProbeFailureThreshold,
- [Parameter(HelpMessage="The HTTP headers for readiness probe.")]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]]
- $ReadinessProbeHttpGetHttpHeader,
- [Parameter(HelpMessage="The path to probe.")]
- [string]
- $ReadinessProbeHttpGetPath,
- [Parameter(HelpMessage="The port number to probe.")]
- [int]
- $ReadinessProbeHttpGetPort,
- [Parameter(HelpMessage="The scheme.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme])]
- [string]
- $ReadinessProbeHttpGetScheme,
- [Parameter(HelpMessage="The initial delay seconds.")]
- [int]
- $ReadinessProbeInitialDelaySecond,
- [Parameter(HelpMessage="The period seconds.")]
- [int]
- $ReadinessProbePeriodSecond,
- [Parameter(HelpMessage="The success threshold.")]
- [int]
- $ReadinessProbeSuccessThreshold,
- [Parameter(HelpMessage="The timeout seconds.")]
- [int]
- $ReadinessProbeTimeoutSecond,
- [Parameter(HelpMessage="The CPU request of this container instance.")]
- [double]
- $RequestCpu,
- [Parameter(HelpMessage="The memory request in GB of this container instance.")]
- [double]
- $RequestMemoryInGb,
- [Parameter(HelpMessage="The count of the GPU resource.")]
- [int]
- $RequestsGpuCount,
- [Parameter(HelpMessage="The SKU of the GPU resource.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku])]
- [string]
- $RequestsGpuSku,
- [Parameter(HelpMessage="The volume mounts available to the container instance.")]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]]
- $VolumeMount
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container]::New()
-
- $Object.Command = $Command
- $Object.ConfigMapKeyValuePair = $ConfigMapKeyValuePair
- $Object.EnvironmentVariable = $EnvironmentVariable
- if($PSBoundParameters.ContainsKey("Image")) {
-
- $Object.Image = $Image
- }
- $Object.LimitCpu = $LimitCpu
- $Object.LimitMemoryInGb = $LimitMemoryInGb
- $Object.LimitsGpuCount = $LimitsGpuCount
- $Object.LimitsGpuSku = $LimitsGpuSku
- $Object.LivenessProbeExecCommand = $LivenessProbeExecCommand
- $Object.LivenessProbeFailureThreshold = $LivenessProbeFailureThreshold
- $Object.LivenessProbeHttpGetHttpHeader = $LivenessProbeHttpGetHttpHeader
- $Object.LivenessProbeHttpGetPath = $LivenessProbeHttpGetPath
- $Object.LivenessProbeHttpGetPort = $LivenessProbeHttpGetPort
- $Object.LivenessProbeHttpGetScheme = $LivenessProbeHttpGetScheme
- $Object.LivenessProbeInitialDelaySecond = $LivenessProbeInitialDelaySecond
- $Object.LivenessProbePeriodSecond = $LivenessProbePeriodSecond
- $Object.LivenessProbeSuccessThreshold = $LivenessProbeSuccessThreshold
- $Object.LivenessProbeTimeoutSecond = $LivenessProbeTimeoutSecond
- $Object.Name = $Name
- $Object.Port = $Port
- $Object.ReadinessProbeExecCommand = $ReadinessProbeExecCommand
- $Object.ReadinessProbeFailureThreshold = $ReadinessProbeFailureThreshold
- $Object.ReadinessProbeHttpGetHttpHeader = $ReadinessProbeHttpGetHttpHeader
- $Object.ReadinessProbeHttpGetPath = $ReadinessProbeHttpGetPath
- $Object.ReadinessProbeHttpGetPort = $ReadinessProbeHttpGetPort
- $Object.ReadinessProbeHttpGetScheme = $ReadinessProbeHttpGetScheme
- $Object.ReadinessProbeInitialDelaySecond = $ReadinessProbeInitialDelaySecond
- $Object.ReadinessProbePeriodSecond = $ReadinessProbePeriodSecond
- $Object.ReadinessProbeSuccessThreshold = $ReadinessProbeSuccessThreshold
- $Object.ReadinessProbeTimeoutSecond = $ReadinessProbeTimeoutSecond
- if($PSBoundParameters.ContainsKey("RequestCpu")) {
-
- $Object.RequestCpu = $RequestCpu
- }
- if($PSBoundParameters.ContainsKey("RequestMemoryInGb")) {
-
- $Object.RequestMemoryInGb = $RequestMemoryInGb
- }
- if($PSBoundParameters.ContainsKey("RequestsGpuCount")) {
-
- $Object.RequestsGpuCount = $RequestsGpuCount
- }
- if($PSBoundParameters.ContainsKey("RequestsGpuSku")) {
-
- $Object.RequestsGpuSku = $RequestsGpuSku
- }
- $Object.VolumeMount = $VolumeMount
- return $Object
- }
-}
-
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceObject.ps1
deleted file mode 100644
index d94458cc6a2f..000000000000
--- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceObject.ps1
+++ /dev/null
@@ -1,192 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
-# Licensed under the Apache License, Version 2.0 (the \"License\");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# http://www.apache.org/licenses/LICENSE-2.0
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an \"AS IS\" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-Create a in-memory object for Container
-.Description
-Create a in-memory object for Container
-.Link
-https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceObject
-#>
-function New-AzContainerInstanceObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container')]
- [CmdletBinding(PositionalBinding=$false)]
- Param(
-
- [Parameter(HelpMessage="The commands to execute within the container instance in exec form.")]
- [string[]]
- $Command,
- [Parameter(HelpMessage="The key value pairs dictionary in the config map to set in the container instance.")]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs]
- $ConfigMapKeyValuePair,
- [Parameter(HelpMessage="The environment variables to set in the container instance.")]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]]
- $EnvironmentVariable,
- [Parameter(Mandatory, HelpMessage="The name of the image used to create the container instance.")]
- [string]
- $Image,
- [Parameter(HelpMessage="The CPU limit of this container instance.")]
- [double]
- $LimitCpu,
- [Parameter(HelpMessage="The memory limit in GB of this container instance.")]
- [double]
- $LimitMemoryInGb,
- [Parameter(HelpMessage="The count of the GPU resource.")]
- [int]
- $LimitsGpuCount,
- [Parameter(HelpMessage="The SKU of the GPU resource.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku])]
- [string]
- $LimitsGpuSku,
- [Parameter(HelpMessage="The commands to execute within the container.")]
- [string[]]
- $LivenessProbeExecCommand,
- [Parameter(HelpMessage="The failure threshold.")]
- [int]
- $LivenessProbeFailureThreshold,
- [Parameter(HelpMessage="The HTTP headers for liveness probe.")]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]]
- $LivenessProbeHttpGetHttpHeader,
- [Parameter(HelpMessage="The path to probe.")]
- [string]
- $LivenessProbeHttpGetPath,
- [Parameter(HelpMessage="The port number to probe.")]
- [int]
- $LivenessProbeHttpGetPort,
- [Parameter(HelpMessage="The scheme.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme])]
- [string]
- $LivenessProbeHttpGetScheme,
- [Parameter(HelpMessage="The initial delay seconds.")]
- [int]
- $LivenessProbeInitialDelaySecond,
- [Parameter(HelpMessage="The period seconds.")]
- [int]
- $LivenessProbePeriodSecond,
- [Parameter(HelpMessage="The success threshold.")]
- [int]
- $LivenessProbeSuccessThreshold,
- [Parameter(HelpMessage="The timeout seconds.")]
- [int]
- $LivenessProbeTimeoutSecond,
- [Parameter(Mandatory, HelpMessage="The user-provided name of the container instance.")]
- [string]
- $Name,
- [Parameter(HelpMessage="The exposed ports on the container instance.")]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[]]
- $Port,
- [Parameter(HelpMessage="The commands to execute within the container.")]
- [string[]]
- $ReadinessProbeExecCommand,
- [Parameter(HelpMessage="The failure threshold.")]
- [int]
- $ReadinessProbeFailureThreshold,
- [Parameter(HelpMessage="The HTTP headers for readiness probe.")]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]]
- $ReadinessProbeHttpGetHttpHeader,
- [Parameter(HelpMessage="The path to probe.")]
- [string]
- $ReadinessProbeHttpGetPath,
- [Parameter(HelpMessage="The port number to probe.")]
- [int]
- $ReadinessProbeHttpGetPort,
- [Parameter(HelpMessage="The scheme.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme])]
- [string]
- $ReadinessProbeHttpGetScheme,
- [Parameter(HelpMessage="The initial delay seconds.")]
- [int]
- $ReadinessProbeInitialDelaySecond,
- [Parameter(HelpMessage="The period seconds.")]
- [int]
- $ReadinessProbePeriodSecond,
- [Parameter(HelpMessage="The success threshold.")]
- [int]
- $ReadinessProbeSuccessThreshold,
- [Parameter(HelpMessage="The timeout seconds.")]
- [int]
- $ReadinessProbeTimeoutSecond,
- [Parameter(HelpMessage="The CPU request of this container instance.")]
- [double]
- $RequestCpu,
- [Parameter(HelpMessage="The memory request in GB of this container instance.")]
- [double]
- $RequestMemoryInGb,
- [Parameter(HelpMessage="The count of the GPU resource.")]
- [int]
- $RequestsGpuCount,
- [Parameter(HelpMessage="The SKU of the GPU resource.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku])]
- [string]
- $RequestsGpuSku,
- [Parameter(HelpMessage="The volume mounts available to the container instance.")]
- [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]]
- $VolumeMount
- )
-
- process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container]::New()
-
- $Object.Command = $Command
- $Object.ConfigMapKeyValuePair = $ConfigMapKeyValuePair
- $Object.EnvironmentVariable = $EnvironmentVariable
- $Object.Image = $Image
- $Object.LimitCpu = $LimitCpu
- $Object.LimitMemoryInGb = $LimitMemoryInGb
- $Object.LimitsGpuCount = $LimitsGpuCount
- $Object.LimitsGpuSku = $LimitsGpuSku
- $Object.LivenessProbeExecCommand = $LivenessProbeExecCommand
- $Object.LivenessProbeFailureThreshold = $LivenessProbeFailureThreshold
- $Object.LivenessProbeHttpGetHttpHeader = $LivenessProbeHttpGetHttpHeader
- $Object.LivenessProbeHttpGetPath = $LivenessProbeHttpGetPath
- $Object.LivenessProbeHttpGetPort = $LivenessProbeHttpGetPort
- $Object.LivenessProbeHttpGetScheme = $LivenessProbeHttpGetScheme
- $Object.LivenessProbeInitialDelaySecond = $LivenessProbeInitialDelaySecond
- $Object.LivenessProbePeriodSecond = $LivenessProbePeriodSecond
- $Object.LivenessProbeSuccessThreshold = $LivenessProbeSuccessThreshold
- $Object.LivenessProbeTimeoutSecond = $LivenessProbeTimeoutSecond
- $Object.Name = $Name
- if(!$PSBoundParameters.ContainsKey("Port"))
- {
- $Port = New-AzContainerInstancePortObject -Port 80
- }
- $Object.Port = $Port
- $Object.ReadinessProbeExecCommand = $ReadinessProbeExecCommand
- $Object.ReadinessProbeFailureThreshold = $ReadinessProbeFailureThreshold
- $Object.ReadinessProbeHttpGetHttpHeader = $ReadinessProbeHttpGetHttpHeader
- $Object.ReadinessProbeHttpGetPath = $ReadinessProbeHttpGetPath
- $Object.ReadinessProbeHttpGetPort = $ReadinessProbeHttpGetPort
- $Object.ReadinessProbeHttpGetScheme = $ReadinessProbeHttpGetScheme
- $Object.ReadinessProbeInitialDelaySecond = $ReadinessProbeInitialDelaySecond
- $Object.ReadinessProbePeriodSecond = $ReadinessProbePeriodSecond
- $Object.ReadinessProbeSuccessThreshold = $ReadinessProbeSuccessThreshold
- $Object.ReadinessProbeTimeoutSecond = $ReadinessProbeTimeoutSecond
- if(!$PSBoundParameters.ContainsKey("RequestCpu"))
- {
- $RequestCpu = 1.0
- }
- $Object.RequestCpu = $RequestCpu
- if(!$PSBoundParameters.ContainsKey("RequestMemoryInGb"))
- {
- $RequestMemoryInGb = 1.5
- }
- $Object.RequestMemoryInGb = $RequestMemoryInGb
- $Object.RequestsGpuCount = $RequestsGpuCount
- $Object.RequestsGpuSku = $RequestsGpuSku
- $Object.VolumeMount = $VolumeMount
- return $Object
- }
-}
\ No newline at end of file
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/SpecialHandlerToRemoveDefaultValue.cs b/src/ContainerInstance/ContainerInstance.Autorest/custom/SpecialHandlerToRemoveDefaultValue.cs
index f2c5e35d18ea..51503d518cb3 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/custom/SpecialHandlerToRemoveDefaultValue.cs
+++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/SpecialHandlerToRemoveDefaultValue.cs
@@ -1,4 +1,4 @@
-namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview
+namespace Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models
{
using static Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Extensions;
/// The GPU resource.
@@ -106,11 +106,11 @@ public partial class ContainerProperties
{
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow)
{
- if(this._readinessProbe?.ExecCommand?.Length == 0 && this._readinessProbe?.HttpGetPort == null)
+ if(this._readinessProbe?.ExecCommand?.Count == 0 && this._readinessProbe?.HttpGetPort == null)
{
this._readinessProbe = null;
}
- if(this._livenessProbe?.ExecCommand?.Length == 0 && this._livenessProbe?.HttpGetPort == null)
+ if(this._livenessProbe?.ExecCommand?.Count == 0 && this._livenessProbe?.HttpGetPort == null)
{
this._livenessProbe = null;
}
@@ -190,7 +190,7 @@ public partial class InitContainerDefinition
{
partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Json.JsonObject container, ref bool returnNow)
{
- if(this._property?.Image ==null && this.VolumeMount?.Length == 0 && this.EnvironmentVariable?.Length == 0 && this.Command?.Length == 0)
+ if(this._property?.Image == null && this.VolumeMount?.Count == 0 && this.EnvironmentVariable?.Count == 0 && this.Command?.Count == 0)
{
this._property = null;
}
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupPortObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerGroupPortObject.ps1
similarity index 50%
rename from src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupPortObject.ps1
rename to src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerGroupPortObject.ps1
index 392c8973474a..4597e51077c6 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerGroupPortObject.ps1
+++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerGroupPortObject.ps1
@@ -1,45 +1,54 @@
# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
-# Licensed under the Apache License, Version 2.0 (the \"License\");
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an \"AS IS\" BASIS,
+# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
# ----------------------------------------------------------------------------------
<#
.Synopsis
-Create a in-memory object for Port
+Create an in-memory object for Port.
.Description
-Create a in-memory object for Port
+Create an in-memory object for Port.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Port
.Link
-https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerGroupPortObject
+https://learn.microsoft.com/powershell/module/Az.ContainerInstance/new-azcontainergroupportobject
#>
function New-AzContainerGroupPortObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Port')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Port')]
[CmdletBinding(PositionalBinding=$false)]
Param(
[Parameter(Mandatory, HelpMessage="The port number.")]
[int]
- $Port,
+ $Port1,
[Parameter(HelpMessage="The protocol associated with the port.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupNetworkProtocol])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleterAttribute("TCP", "UDP")]
[string]
$Protocol
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Port]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Port]::New()
- $Object.Port1 = $Port
- $Object.Protocol = $Protocol
+ if ($PSBoundParameters.ContainsKey('Port1')) {
+ $Object.Port1 = $Port1
+ }
+ if ($PSBoundParameters.ContainsKey('Protocol')) {
+ $Object.Protocol = $Protocol
+ }
return $Object
}
}
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstanceHttpHeaderObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstanceHttpHeaderObject.ps1
new file mode 100644
index 000000000000..e87b4c063093
--- /dev/null
+++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstanceHttpHeaderObject.ps1
@@ -0,0 +1,54 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for HttpHeader.
+.Description
+Create an in-memory object for HttpHeader.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.HttpHeader
+.Link
+https://learn.microsoft.com/powershell/module/Az.ContainerInstance/new-azcontainerinstancehttpheaderobject
+#>
+function New-AzContainerInstanceHttpHeaderObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.HttpHeader')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The header name.")]
+ [string]
+ $Name,
+ [Parameter(HelpMessage="The header value.")]
+ [string]
+ $Value
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.HttpHeader]::New()
+
+ if ($PSBoundParameters.ContainsKey('Name')) {
+ $Object.Name = $Name
+ }
+ if ($PSBoundParameters.ContainsKey('Value')) {
+ $Object.Value = $Value
+ }
+ return $Object
+ }
+}
+
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstanceInitDefinitionObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstanceInitDefinitionObject.ps1
new file mode 100644
index 000000000000..6e70b88a3f82
--- /dev/null
+++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstanceInitDefinitionObject.ps1
@@ -0,0 +1,114 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for InitContainerDefinition.
+.Description
+Create an in-memory object for InitContainerDefinition.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.InitContainerDefinition
+.Link
+https://learn.microsoft.com/powershell/module/Az.ContainerInstance/new-azcontainerinstanceinitdefinitionobject
+#>
+function New-AzContainerInstanceInitDefinitionObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.InitContainerDefinition')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The capabilities to add to the container.")]
+ [string[]]
+ $CapabilityAdd,
+ [Parameter(HelpMessage="The capabilities to drop from the container.")]
+ [string[]]
+ $CapabilityDrop,
+ [Parameter(HelpMessage="The command to execute within the init container in exec form.")]
+ [string[]]
+ $Command,
+ [Parameter(HelpMessage="The environment variables to set in the init container.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IEnvironmentVariable[]]
+ $EnvironmentVariable,
+ [Parameter(HelpMessage="The image of the init container.")]
+ [string]
+ $Image,
+ [Parameter(Mandatory, HelpMessage="The name for the init container.")]
+ [string]
+ $Name,
+ [Parameter(HelpMessage="A boolean value indicating whether the init process can elevate its privileges.")]
+ [bool]
+ $SecurityContextAllowPrivilegeEscalation,
+ [Parameter(HelpMessage="The flag to determine if the container permissions is elevated to Privileged.")]
+ [bool]
+ $SecurityContextPrivileged,
+ [Parameter(HelpMessage="Sets the User GID for the container.")]
+ [int]
+ $SecurityContextRunAsGroup,
+ [Parameter(HelpMessage="Sets the User UID for the container.")]
+ [int]
+ $SecurityContextRunAsUser,
+ [Parameter(HelpMessage="a base64 encoded string containing the contents of the JSON in the seccomp profile.")]
+ [string]
+ $SecurityContextSeccompProfile,
+ [Parameter(HelpMessage="The volume mounts available to the init container.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IVolumeMount[]]
+ $VolumeMount
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.InitContainerDefinition]::New()
+
+ if ($PSBoundParameters.ContainsKey('CapabilityAdd')) {
+ $Object.CapabilityAdd = $CapabilityAdd
+ }
+ if ($PSBoundParameters.ContainsKey('CapabilityDrop')) {
+ $Object.CapabilityDrop = $CapabilityDrop
+ }
+ if ($PSBoundParameters.ContainsKey('Command')) {
+ $Object.Command = $Command
+ }
+ if ($PSBoundParameters.ContainsKey('EnvironmentVariable')) {
+ $Object.EnvironmentVariable = $EnvironmentVariable
+ }
+ if ($PSBoundParameters.ContainsKey('Image')) {
+ $Object.Image = $Image
+ }
+ if ($PSBoundParameters.ContainsKey('Name')) {
+ $Object.Name = $Name
+ }
+ if ($PSBoundParameters.ContainsKey('SecurityContextAllowPrivilegeEscalation')) {
+ $Object.SecurityContextAllowPrivilegeEscalation = $SecurityContextAllowPrivilegeEscalation
+ }
+ if ($PSBoundParameters.ContainsKey('SecurityContextPrivileged')) {
+ $Object.SecurityContextPrivileged = $SecurityContextPrivileged
+ }
+ if ($PSBoundParameters.ContainsKey('SecurityContextRunAsGroup')) {
+ $Object.SecurityContextRunAsGroup = $SecurityContextRunAsGroup
+ }
+ if ($PSBoundParameters.ContainsKey('SecurityContextRunAsUser')) {
+ $Object.SecurityContextRunAsUser = $SecurityContextRunAsUser
+ }
+ if ($PSBoundParameters.ContainsKey('SecurityContextSeccompProfile')) {
+ $Object.SecurityContextSeccompProfile = $SecurityContextSeccompProfile
+ }
+ if ($PSBoundParameters.ContainsKey('VolumeMount')) {
+ $Object.VolumeMount = $VolumeMount
+ }
+ return $Object
+ }
+}
+
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstanceNoDefaultObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstanceNoDefaultObject.ps1
new file mode 100644
index 000000000000..fea4417df109
--- /dev/null
+++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstanceNoDefaultObject.ps1
@@ -0,0 +1,298 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for Container.
+.Description
+Create an in-memory object for Container.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Container
+.Link
+https://learn.microsoft.com/powershell/module/Az.ContainerInstance/new-azcontainerinstancenodefaultobject
+#>
+function New-AzContainerInstanceNoDefaultObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Container')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The capabilities to add to the container.")]
+ [string[]]
+ $CapabilityAdd,
+ [Parameter(HelpMessage="The capabilities to drop from the container.")]
+ [string[]]
+ $CapabilityDrop,
+ [Parameter(HelpMessage="The commands to execute within the container instance in exec form.")]
+ [string[]]
+ $Command,
+ [Parameter(HelpMessage="The key value pairs dictionary in the config map.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IConfigMapKeyValuePairs]
+ $ConfigMapKeyValuePair,
+ [Parameter(HelpMessage="The environment variables to set in the container instance.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IEnvironmentVariable[]]
+ $EnvironmentVariable,
+ [Parameter(HelpMessage="The name of the image used to create the container instance.")]
+ [string]
+ $Image,
+ [Parameter(HelpMessage="The CPU limit of this container instance.")]
+ [double]
+ $LimitCpu,
+ [Parameter(HelpMessage="The memory limit in GB of this container instance.")]
+ [double]
+ $LimitMemoryInGb,
+ [Parameter(HelpMessage="The count of the GPU resource.")]
+ [int]
+ $LimitsGpuCount,
+ [Parameter(HelpMessage="The SKU of the GPU resource.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleterAttribute("K80", "P100", "V100")]
+ [string]
+ $LimitsGpuSku,
+ [Parameter(HelpMessage="The commands to execute within the container.")]
+ [string[]]
+ $LivenessProbeExecCommand,
+ [Parameter(HelpMessage="The failure threshold.")]
+ [int]
+ $LivenessProbeFailureThreshold,
+ [Parameter(HelpMessage="The HTTP headers.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IHttpHeader[]]
+ $LivenessProbeHttpGetHttpHeader,
+ [Parameter(HelpMessage="The path to probe.")]
+ [string]
+ $LivenessProbeHttpGetPath,
+ [Parameter(HelpMessage="The port number to probe.")]
+ [int]
+ $LivenessProbeHttpGetPort,
+ [Parameter(HelpMessage="The scheme.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleterAttribute("http", "https")]
+ [string]
+ $LivenessProbeHttpGetScheme,
+ [Parameter(HelpMessage="The initial delay seconds.")]
+ [int]
+ $LivenessProbeInitialDelaySecond,
+ [Parameter(HelpMessage="The period seconds.")]
+ [int]
+ $LivenessProbePeriodSecond,
+ [Parameter(HelpMessage="The success threshold.")]
+ [int]
+ $LivenessProbeSuccessThreshold,
+ [Parameter(HelpMessage="The timeout seconds.")]
+ [int]
+ $LivenessProbeTimeoutSecond,
+ [Parameter(Mandatory, HelpMessage="The user-provided name of the container instance.")]
+ [string]
+ $Name,
+ [Parameter(HelpMessage="The exposed ports on the container instance.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerPort[]]
+ $Port,
+ [Parameter(HelpMessage="The commands to execute within the container.")]
+ [string[]]
+ $ReadinessProbeExecCommand,
+ [Parameter(HelpMessage="The failure threshold.")]
+ [int]
+ $ReadinessProbeFailureThreshold,
+ [Parameter(HelpMessage="The HTTP headers.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IHttpHeader[]]
+ $ReadinessProbeHttpGetHttpHeader,
+ [Parameter(HelpMessage="The path to probe.")]
+ [string]
+ $ReadinessProbeHttpGetPath,
+ [Parameter(HelpMessage="The port number to probe.")]
+ [int]
+ $ReadinessProbeHttpGetPort,
+ [Parameter(HelpMessage="The scheme.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleterAttribute("http", "https")]
+ [string]
+ $ReadinessProbeHttpGetScheme,
+ [Parameter(HelpMessage="The initial delay seconds.")]
+ [int]
+ $ReadinessProbeInitialDelaySecond,
+ [Parameter(HelpMessage="The period seconds.")]
+ [int]
+ $ReadinessProbePeriodSecond,
+ [Parameter(HelpMessage="The success threshold.")]
+ [int]
+ $ReadinessProbeSuccessThreshold,
+ [Parameter(HelpMessage="The timeout seconds.")]
+ [int]
+ $ReadinessProbeTimeoutSecond,
+ [Parameter(HelpMessage="The CPU request of this container instance.")]
+ [double]
+ $RequestCpu,
+ [Parameter(HelpMessage="The memory request in GB of this container instance.")]
+ [double]
+ $RequestMemoryInGb,
+ [Parameter(HelpMessage="The count of the GPU resource.")]
+ [int]
+ $RequestsGpuCount,
+ [Parameter(HelpMessage="The SKU of the GPU resource.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleterAttribute("K80", "P100", "V100")]
+ [string]
+ $RequestsGpuSku,
+ [Parameter(HelpMessage="A boolean value indicating whether the init process can elevate its privileges.")]
+ [bool]
+ $SecurityContextAllowPrivilegeEscalation,
+ [Parameter(HelpMessage="The flag to determine if the container permissions is elevated to Privileged.")]
+ [bool]
+ $SecurityContextPrivileged,
+ [Parameter(HelpMessage="Sets the User GID for the container.")]
+ [int]
+ $SecurityContextRunAsGroup,
+ [Parameter(HelpMessage="Sets the User UID for the container.")]
+ [int]
+ $SecurityContextRunAsUser,
+ [Parameter(HelpMessage="a base64 encoded string containing the contents of the JSON in the seccomp profile.")]
+ [string]
+ $SecurityContextSeccompProfile,
+ [Parameter(HelpMessage="The volume mounts available to the container instance.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IVolumeMount[]]
+ $VolumeMount
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Container]::New()
+
+ if ($PSBoundParameters.ContainsKey('CapabilityAdd')) {
+ $Object.CapabilityAdd = $CapabilityAdd
+ }
+ if ($PSBoundParameters.ContainsKey('CapabilityDrop')) {
+ $Object.CapabilityDrop = $CapabilityDrop
+ }
+ if ($PSBoundParameters.ContainsKey('Command')) {
+ $Object.Command = $Command
+ }
+ if ($PSBoundParameters.ContainsKey('ConfigMapKeyValuePair')) {
+ $Object.ConfigMapKeyValuePair = $ConfigMapKeyValuePair
+ }
+ if ($PSBoundParameters.ContainsKey('EnvironmentVariable')) {
+ $Object.EnvironmentVariable = $EnvironmentVariable
+ }
+ if ($PSBoundParameters.ContainsKey('Image')) {
+ $Object.Image = $Image
+ }
+ if ($PSBoundParameters.ContainsKey('LimitCpu')) {
+ $Object.LimitCpu = $LimitCpu
+ }
+ if ($PSBoundParameters.ContainsKey('LimitMemoryInGb')) {
+ $Object.LimitMemoryInGb = $LimitMemoryInGb
+ }
+ if ($PSBoundParameters.ContainsKey('LimitsGpuCount')) {
+ $Object.LimitsGpuCount = $LimitsGpuCount
+ }
+ if ($PSBoundParameters.ContainsKey('LimitsGpuSku')) {
+ $Object.LimitsGpuSku = $LimitsGpuSku
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeExecCommand')) {
+ $Object.LivenessProbeExecCommand = $LivenessProbeExecCommand
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeFailureThreshold')) {
+ $Object.LivenessProbeFailureThreshold = $LivenessProbeFailureThreshold
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeHttpGetHttpHeader')) {
+ $Object.LivenessProbeHttpGetHttpHeader = $LivenessProbeHttpGetHttpHeader
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeHttpGetPath')) {
+ $Object.LivenessProbeHttpGetPath = $LivenessProbeHttpGetPath
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeHttpGetPort')) {
+ $Object.LivenessProbeHttpGetPort = $LivenessProbeHttpGetPort
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeHttpGetScheme')) {
+ $Object.LivenessProbeHttpGetScheme = $LivenessProbeHttpGetScheme
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeInitialDelaySecond')) {
+ $Object.LivenessProbeInitialDelaySecond = $LivenessProbeInitialDelaySecond
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbePeriodSecond')) {
+ $Object.LivenessProbePeriodSecond = $LivenessProbePeriodSecond
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeSuccessThreshold')) {
+ $Object.LivenessProbeSuccessThreshold = $LivenessProbeSuccessThreshold
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeTimeoutSecond')) {
+ $Object.LivenessProbeTimeoutSecond = $LivenessProbeTimeoutSecond
+ }
+ if ($PSBoundParameters.ContainsKey('Name')) {
+ $Object.Name = $Name
+ }
+ if ($PSBoundParameters.ContainsKey('Port')) {
+ $Object.Port = $Port
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeExecCommand')) {
+ $Object.ReadinessProbeExecCommand = $ReadinessProbeExecCommand
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeFailureThreshold')) {
+ $Object.ReadinessProbeFailureThreshold = $ReadinessProbeFailureThreshold
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeHttpGetHttpHeader')) {
+ $Object.ReadinessProbeHttpGetHttpHeader = $ReadinessProbeHttpGetHttpHeader
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeHttpGetPath')) {
+ $Object.ReadinessProbeHttpGetPath = $ReadinessProbeHttpGetPath
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeHttpGetPort')) {
+ $Object.ReadinessProbeHttpGetPort = $ReadinessProbeHttpGetPort
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeHttpGetScheme')) {
+ $Object.ReadinessProbeHttpGetScheme = $ReadinessProbeHttpGetScheme
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeInitialDelaySecond')) {
+ $Object.ReadinessProbeInitialDelaySecond = $ReadinessProbeInitialDelaySecond
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbePeriodSecond')) {
+ $Object.ReadinessProbePeriodSecond = $ReadinessProbePeriodSecond
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeSuccessThreshold')) {
+ $Object.ReadinessProbeSuccessThreshold = $ReadinessProbeSuccessThreshold
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeTimeoutSecond')) {
+ $Object.ReadinessProbeTimeoutSecond = $ReadinessProbeTimeoutSecond
+ }
+ if ($PSBoundParameters.ContainsKey('RequestCpu')) {
+ $Object.RequestCpu = $RequestCpu
+ }
+ if ($PSBoundParameters.ContainsKey('RequestMemoryInGb')) {
+ $Object.RequestMemoryInGb = $RequestMemoryInGb
+ }
+ if ($PSBoundParameters.ContainsKey('RequestsGpuCount')) {
+ $Object.RequestsGpuCount = $RequestsGpuCount
+ }
+ if ($PSBoundParameters.ContainsKey('RequestsGpuSku')) {
+ $Object.RequestsGpuSku = $RequestsGpuSku
+ }
+ if ($PSBoundParameters.ContainsKey('SecurityContextAllowPrivilegeEscalation')) {
+ $Object.SecurityContextAllowPrivilegeEscalation = $SecurityContextAllowPrivilegeEscalation
+ }
+ if ($PSBoundParameters.ContainsKey('SecurityContextPrivileged')) {
+ $Object.SecurityContextPrivileged = $SecurityContextPrivileged
+ }
+ if ($PSBoundParameters.ContainsKey('SecurityContextRunAsGroup')) {
+ $Object.SecurityContextRunAsGroup = $SecurityContextRunAsGroup
+ }
+ if ($PSBoundParameters.ContainsKey('SecurityContextRunAsUser')) {
+ $Object.SecurityContextRunAsUser = $SecurityContextRunAsUser
+ }
+ if ($PSBoundParameters.ContainsKey('SecurityContextSeccompProfile')) {
+ $Object.SecurityContextSeccompProfile = $SecurityContextSeccompProfile
+ }
+ if ($PSBoundParameters.ContainsKey('VolumeMount')) {
+ $Object.VolumeMount = $VolumeMount
+ }
+ return $Object
+ }
+}
+
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstanceObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstanceObject.ps1
new file mode 100644
index 000000000000..e0aa1ccff54d
--- /dev/null
+++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstanceObject.ps1
@@ -0,0 +1,298 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for Container.
+.Description
+Create an in-memory object for Container.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Container
+.Link
+https://learn.microsoft.com/powershell/module/Az.ContainerInstance/new-azcontainerinstanceobject
+#>
+function New-AzContainerInstanceObject {
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Container')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The capabilities to add to the container.")]
+ [string[]]
+ $CapabilityAdd,
+ [Parameter(HelpMessage="The capabilities to drop from the container.")]
+ [string[]]
+ $CapabilityDrop,
+ [Parameter(HelpMessage="The commands to execute within the container instance in exec form.")]
+ [string[]]
+ $Command,
+ [Parameter(HelpMessage="The key value pairs dictionary in the config map.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IConfigMapKeyValuePairs]
+ $ConfigMapKeyValuePair,
+ [Parameter(HelpMessage="The environment variables to set in the container instance.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IEnvironmentVariable[]]
+ $EnvironmentVariable,
+ [Parameter(HelpMessage="The name of the image used to create the container instance.")]
+ [string]
+ $Image,
+ [Parameter(HelpMessage="The CPU limit of this container instance.")]
+ [double]
+ $LimitCpu,
+ [Parameter(HelpMessage="The memory limit in GB of this container instance.")]
+ [double]
+ $LimitMemoryInGb,
+ [Parameter(HelpMessage="The count of the GPU resource.")]
+ [int]
+ $LimitsGpuCount,
+ [Parameter(HelpMessage="The SKU of the GPU resource.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleterAttribute("K80", "P100", "V100")]
+ [string]
+ $LimitsGpuSku,
+ [Parameter(HelpMessage="The commands to execute within the container.")]
+ [string[]]
+ $LivenessProbeExecCommand,
+ [Parameter(HelpMessage="The failure threshold.")]
+ [int]
+ $LivenessProbeFailureThreshold,
+ [Parameter(HelpMessage="The HTTP headers.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IHttpHeader[]]
+ $LivenessProbeHttpGetHttpHeader,
+ [Parameter(HelpMessage="The path to probe.")]
+ [string]
+ $LivenessProbeHttpGetPath,
+ [Parameter(HelpMessage="The port number to probe.")]
+ [int]
+ $LivenessProbeHttpGetPort,
+ [Parameter(HelpMessage="The scheme.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleterAttribute("http", "https")]
+ [string]
+ $LivenessProbeHttpGetScheme,
+ [Parameter(HelpMessage="The initial delay seconds.")]
+ [int]
+ $LivenessProbeInitialDelaySecond,
+ [Parameter(HelpMessage="The period seconds.")]
+ [int]
+ $LivenessProbePeriodSecond,
+ [Parameter(HelpMessage="The success threshold.")]
+ [int]
+ $LivenessProbeSuccessThreshold,
+ [Parameter(HelpMessage="The timeout seconds.")]
+ [int]
+ $LivenessProbeTimeoutSecond,
+ [Parameter(Mandatory, HelpMessage="The user-provided name of the container instance.")]
+ [string]
+ $Name,
+ [Parameter(HelpMessage="The exposed ports on the container instance.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerPort[]]
+ $Port,
+ [Parameter(HelpMessage="The commands to execute within the container.")]
+ [string[]]
+ $ReadinessProbeExecCommand,
+ [Parameter(HelpMessage="The failure threshold.")]
+ [int]
+ $ReadinessProbeFailureThreshold,
+ [Parameter(HelpMessage="The HTTP headers.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IHttpHeader[]]
+ $ReadinessProbeHttpGetHttpHeader,
+ [Parameter(HelpMessage="The path to probe.")]
+ [string]
+ $ReadinessProbeHttpGetPath,
+ [Parameter(HelpMessage="The port number to probe.")]
+ [int]
+ $ReadinessProbeHttpGetPort,
+ [Parameter(HelpMessage="The scheme.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleterAttribute("http", "https")]
+ [string]
+ $ReadinessProbeHttpGetScheme,
+ [Parameter(HelpMessage="The initial delay seconds.")]
+ [int]
+ $ReadinessProbeInitialDelaySecond,
+ [Parameter(HelpMessage="The period seconds.")]
+ [int]
+ $ReadinessProbePeriodSecond,
+ [Parameter(HelpMessage="The success threshold.")]
+ [int]
+ $ReadinessProbeSuccessThreshold,
+ [Parameter(HelpMessage="The timeout seconds.")]
+ [int]
+ $ReadinessProbeTimeoutSecond,
+ [Parameter(HelpMessage="The CPU request of this container instance.")]
+ [double]
+ $RequestCpu,
+ [Parameter(HelpMessage="The memory request in GB of this container instance.")]
+ [double]
+ $RequestMemoryInGb,
+ [Parameter(HelpMessage="The count of the GPU resource.")]
+ [int]
+ $RequestsGpuCount,
+ [Parameter(HelpMessage="The SKU of the GPU resource.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleterAttribute("K80", "P100", "V100")]
+ [string]
+ $RequestsGpuSku,
+ [Parameter(HelpMessage="A boolean value indicating whether the init process can elevate its privileges.")]
+ [bool]
+ $SecurityContextAllowPrivilegeEscalation,
+ [Parameter(HelpMessage="The flag to determine if the container permissions is elevated to Privileged.")]
+ [bool]
+ $SecurityContextPrivileged,
+ [Parameter(HelpMessage="Sets the User GID for the container.")]
+ [int]
+ $SecurityContextRunAsGroup,
+ [Parameter(HelpMessage="Sets the User UID for the container.")]
+ [int]
+ $SecurityContextRunAsUser,
+ [Parameter(HelpMessage="a base64 encoded string containing the contents of the JSON in the seccomp profile.")]
+ [string]
+ $SecurityContextSeccompProfile,
+ [Parameter(HelpMessage="The volume mounts available to the container instance.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IVolumeMount[]]
+ $VolumeMount
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Container]::New()
+
+ if ($PSBoundParameters.ContainsKey('CapabilityAdd')) {
+ $Object.CapabilityAdd = $CapabilityAdd
+ }
+ if ($PSBoundParameters.ContainsKey('CapabilityDrop')) {
+ $Object.CapabilityDrop = $CapabilityDrop
+ }
+ if ($PSBoundParameters.ContainsKey('Command')) {
+ $Object.Command = $Command
+ }
+ if ($PSBoundParameters.ContainsKey('ConfigMapKeyValuePair')) {
+ $Object.ConfigMapKeyValuePair = $ConfigMapKeyValuePair
+ }
+ if ($PSBoundParameters.ContainsKey('EnvironmentVariable')) {
+ $Object.EnvironmentVariable = $EnvironmentVariable
+ }
+ if ($PSBoundParameters.ContainsKey('Image')) {
+ $Object.Image = $Image
+ }
+ if ($PSBoundParameters.ContainsKey('LimitCpu')) {
+ $Object.LimitCpu = $LimitCpu
+ }
+ if ($PSBoundParameters.ContainsKey('LimitMemoryInGb')) {
+ $Object.LimitMemoryInGb = $LimitMemoryInGb
+ }
+ if ($PSBoundParameters.ContainsKey('LimitsGpuCount')) {
+ $Object.LimitsGpuCount = $LimitsGpuCount
+ }
+ if ($PSBoundParameters.ContainsKey('LimitsGpuSku')) {
+ $Object.LimitsGpuSku = $LimitsGpuSku
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeExecCommand')) {
+ $Object.LivenessProbeExecCommand = $LivenessProbeExecCommand
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeFailureThreshold')) {
+ $Object.LivenessProbeFailureThreshold = $LivenessProbeFailureThreshold
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeHttpGetHttpHeader')) {
+ $Object.LivenessProbeHttpGetHttpHeader = $LivenessProbeHttpGetHttpHeader
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeHttpGetPath')) {
+ $Object.LivenessProbeHttpGetPath = $LivenessProbeHttpGetPath
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeHttpGetPort')) {
+ $Object.LivenessProbeHttpGetPort = $LivenessProbeHttpGetPort
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeHttpGetScheme')) {
+ $Object.LivenessProbeHttpGetScheme = $LivenessProbeHttpGetScheme
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeInitialDelaySecond')) {
+ $Object.LivenessProbeInitialDelaySecond = $LivenessProbeInitialDelaySecond
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbePeriodSecond')) {
+ $Object.LivenessProbePeriodSecond = $LivenessProbePeriodSecond
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeSuccessThreshold')) {
+ $Object.LivenessProbeSuccessThreshold = $LivenessProbeSuccessThreshold
+ }
+ if ($PSBoundParameters.ContainsKey('LivenessProbeTimeoutSecond')) {
+ $Object.LivenessProbeTimeoutSecond = $LivenessProbeTimeoutSecond
+ }
+ if ($PSBoundParameters.ContainsKey('Name')) {
+ $Object.Name = $Name
+ }
+ if ($PSBoundParameters.ContainsKey('Port')) {
+ $Object.Port = $Port
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeExecCommand')) {
+ $Object.ReadinessProbeExecCommand = $ReadinessProbeExecCommand
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeFailureThreshold')) {
+ $Object.ReadinessProbeFailureThreshold = $ReadinessProbeFailureThreshold
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeHttpGetHttpHeader')) {
+ $Object.ReadinessProbeHttpGetHttpHeader = $ReadinessProbeHttpGetHttpHeader
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeHttpGetPath')) {
+ $Object.ReadinessProbeHttpGetPath = $ReadinessProbeHttpGetPath
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeHttpGetPort')) {
+ $Object.ReadinessProbeHttpGetPort = $ReadinessProbeHttpGetPort
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeHttpGetScheme')) {
+ $Object.ReadinessProbeHttpGetScheme = $ReadinessProbeHttpGetScheme
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeInitialDelaySecond')) {
+ $Object.ReadinessProbeInitialDelaySecond = $ReadinessProbeInitialDelaySecond
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbePeriodSecond')) {
+ $Object.ReadinessProbePeriodSecond = $ReadinessProbePeriodSecond
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeSuccessThreshold')) {
+ $Object.ReadinessProbeSuccessThreshold = $ReadinessProbeSuccessThreshold
+ }
+ if ($PSBoundParameters.ContainsKey('ReadinessProbeTimeoutSecond')) {
+ $Object.ReadinessProbeTimeoutSecond = $ReadinessProbeTimeoutSecond
+ }
+ if ($PSBoundParameters.ContainsKey('RequestCpu')) {
+ $Object.RequestCpu = $RequestCpu
+ }
+ if ($PSBoundParameters.ContainsKey('RequestMemoryInGb')) {
+ $Object.RequestMemoryInGb = $RequestMemoryInGb
+ }
+ if ($PSBoundParameters.ContainsKey('RequestsGpuCount')) {
+ $Object.RequestsGpuCount = $RequestsGpuCount
+ }
+ if ($PSBoundParameters.ContainsKey('RequestsGpuSku')) {
+ $Object.RequestsGpuSku = $RequestsGpuSku
+ }
+ if ($PSBoundParameters.ContainsKey('SecurityContextAllowPrivilegeEscalation')) {
+ $Object.SecurityContextAllowPrivilegeEscalation = $SecurityContextAllowPrivilegeEscalation
+ }
+ if ($PSBoundParameters.ContainsKey('SecurityContextPrivileged')) {
+ $Object.SecurityContextPrivileged = $SecurityContextPrivileged
+ }
+ if ($PSBoundParameters.ContainsKey('SecurityContextRunAsGroup')) {
+ $Object.SecurityContextRunAsGroup = $SecurityContextRunAsGroup
+ }
+ if ($PSBoundParameters.ContainsKey('SecurityContextRunAsUser')) {
+ $Object.SecurityContextRunAsUser = $SecurityContextRunAsUser
+ }
+ if ($PSBoundParameters.ContainsKey('SecurityContextSeccompProfile')) {
+ $Object.SecurityContextSeccompProfile = $SecurityContextSeccompProfile
+ }
+ if ($PSBoundParameters.ContainsKey('VolumeMount')) {
+ $Object.VolumeMount = $VolumeMount
+ }
+ return $Object
+ }
+}
+
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstancePortObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstancePortObject.ps1
similarity index 51%
rename from src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstancePortObject.ps1
rename to src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstancePortObject.ps1
index 725d62a2433d..24c23921e1b7 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstancePortObject.ps1
+++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstancePortObject.ps1
@@ -1,28 +1,33 @@
# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
-# Licensed under the Apache License, Version 2.0 (the \"License\");
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an \"AS IS\" BASIS,
+# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
# ----------------------------------------------------------------------------------
<#
.Synopsis
-Create a in-memory object for ContainerPort
+Create an in-memory object for ContainerPort.
.Description
-Create a in-memory object for ContainerPort
+Create an in-memory object for ContainerPort.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.ContainerPort
.Link
-https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstancePortObject
+https://learn.microsoft.com/powershell/module/Az.ContainerInstance/new-azcontainerinstanceportobject
#>
function New-AzContainerInstancePortObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPort')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.ContainerPort')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -30,16 +35,20 @@ function New-AzContainerInstancePortObject {
[int]
$Port,
[Parameter(HelpMessage="The protocol associated with the port.")]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerNetworkProtocol])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.PSArgumentCompleterAttribute("TCP", "UDP")]
[string]
$Protocol
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPort]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.ContainerPort]::New()
- $Object.Port = $Port
- $Object.Protocol = $Protocol
+ if ($PSBoundParameters.ContainsKey('Port')) {
+ $Object.Port = $Port
+ }
+ if ($PSBoundParameters.ContainsKey('Protocol')) {
+ $Object.Protocol = $Protocol
+ }
return $Object
}
}
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceVolumeMountObject.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstanceVolumeMountObject.ps1
similarity index 54%
rename from src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceVolumeMountObject.ps1
rename to src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstanceVolumeMountObject.ps1
index 3d7aaaf53358..bf989d604f38 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/custom/New-AzContainerInstanceVolumeMountObject.ps1
+++ b/src/ContainerInstance/ContainerInstance.Autorest/custom/autogen-model-cmdlets/New-AzContainerInstanceVolumeMountObject.ps1
@@ -1,28 +1,33 @@
# ----------------------------------------------------------------------------------
-#
-# Copyright Microsoft Corporation
-# Licensed under the Apache License, Version 2.0 (the \"License\");
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an \"AS IS\" BASIS,
+# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
# ----------------------------------------------------------------------------------
<#
.Synopsis
-Create a in-memory object for VolumeMount
+Create an in-memory object for VolumeMount.
.Description
-Create a in-memory object for VolumeMount
+Create an in-memory object for VolumeMount.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.VolumeMount
.Link
-https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceVolumeMountObject
+https://learn.microsoft.com/powershell/module/Az.ContainerInstance/new-azcontainerinstancevolumemountobject
#>
function New-AzContainerInstanceVolumeMountObject {
- [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMount')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.ModelCmdletAttribute()]
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.VolumeMount')]
[CmdletBinding(PositionalBinding=$false)]
Param(
@@ -38,11 +43,17 @@ function New-AzContainerInstanceVolumeMountObject {
)
process {
- $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMount]::New()
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.VolumeMount]::New()
- $Object.MountPath = $MountPath
- $Object.Name = $Name
- $Object.ReadOnly = $ReadOnly
+ if ($PSBoundParameters.ContainsKey('MountPath')) {
+ $Object.MountPath = $MountPath
+ }
+ if ($PSBoundParameters.ContainsKey('Name')) {
+ $Object.Name = $Name
+ }
+ if ($PSBoundParameters.ContainsKey('ReadOnly')) {
+ $Object.ReadOnly = $ReadOnly
+ }
return $Object
}
}
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/Add-AzContainerInstanceOutput.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Add-AzContainerInstanceOutput.md
index 379ba0cfb49f..19ab825d15ec 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Add-AzContainerInstanceOutput.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Add-AzContainerInstanceOutput.md
@@ -12,11 +12,18 @@ Attach to the output stream of a specific container instance in a specified reso
## SYNTAX
+### Attach (Default)
```
Add-AzContainerInstanceOutput -GroupName -Name -ResourceGroupName
[-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] []
```
+### AttachViaIdentityContainerGroup
+```
+Add-AzContainerInstanceOutput -ContainerGroupInputObject -Name
+ [-DefaultProfile ] [-Confirm] [-WhatIf] []
+```
+
## DESCRIPTION
Attach to the output stream of a specific container instance in a specified resource group and container group.
@@ -39,6 +46,21 @@ Please send `Password` as an Authorization header value when connecting to the `
## PARAMETERS
+### -ContainerGroupInputObject
+Identity Parameter
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity
+Parameter Sets: AttachViaIdentityContainerGroup
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
### -DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
@@ -60,7 +82,7 @@ The name of the container group.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: Attach
Aliases: ContainerGroupName
Required: True
@@ -91,7 +113,7 @@ The name is case insensitive.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: Attach
Aliases:
Required: True
@@ -107,7 +129,7 @@ The value must be an UUID.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: Attach
Aliases:
Required: False
@@ -153,9 +175,11 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## INPUTS
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity
+
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerAttachResponse
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerAttachResponse
## NOTES
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/Az.ContainerInstance.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Az.ContainerInstance.md
index 391efb6800f2..1e63f4a30bc0 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Az.ContainerInstance.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Az.ContainerInstance.md
@@ -1,6 +1,6 @@
---
Module Name: Az.ContainerInstance
-Module Guid: 78f5cd97-9a2c-4258-bf37-7a8820083684
+Module Guid: fdbbc1c5-c7d6-4575-bfaa-7104130100a4
Download Help Link: https://learn.microsoft.com/powershell/module/az.containerinstance
Help Version: 1.0.0.0
Locale: en-US
@@ -52,34 +52,34 @@ Create or update container groups with specified configurations.
Create a in-memory object for ImageRegistryCredential
### [New-AzContainerGroupPortObject](New-AzContainerGroupPortObject.md)
-Create a in-memory object for Port
+Create an in-memory object for Port.
### [New-AzContainerGroupVolumeObject](New-AzContainerGroupVolumeObject.md)
Create an in-memory object for Volume.
### [New-AzContainerInstanceContainerGroupProfile](New-AzContainerInstanceContainerGroupProfile.md)
-Create or update container group profiles with specified configurations.
+Create container group profiles with specified configurations.
### [New-AzContainerInstanceEnvironmentVariableObject](New-AzContainerInstanceEnvironmentVariableObject.md)
Create a in-memory object for EnvironmentVariable
### [New-AzContainerInstanceHttpHeaderObject](New-AzContainerInstanceHttpHeaderObject.md)
-Create a in-memory object for HttpHeader
+Create an in-memory object for HttpHeader.
### [New-AzContainerInstanceInitDefinitionObject](New-AzContainerInstanceInitDefinitionObject.md)
-Create a in-memory object for InitContainerDefinition
+Create an in-memory object for InitContainerDefinition.
### [New-AzContainerInstanceNoDefaultObject](New-AzContainerInstanceNoDefaultObject.md)
-Create a in-memory object for Container with no default values
+Create an in-memory object for Container.
### [New-AzContainerInstanceObject](New-AzContainerInstanceObject.md)
-Create a in-memory object for Container
+Create an in-memory object for Container.
### [New-AzContainerInstancePortObject](New-AzContainerInstancePortObject.md)
-Create a in-memory object for ContainerPort
+Create an in-memory object for ContainerPort.
### [New-AzContainerInstanceVolumeMountObject](New-AzContainerInstanceVolumeMountObject.md)
-Create a in-memory object for VolumeMount
+Create an in-memory object for VolumeMount.
### [Remove-AzContainerGroup](Remove-AzContainerGroup.md)
Delete the specified container group in the specified subscription and resource group.
@@ -95,7 +95,7 @@ The operation does not delete other resources provided by the user.
### [Restart-AzContainerGroup](Restart-AzContainerGroup.md)
Restarts all containers in a container group in place.
-If container image has updates, new image will be downloaded.
+If container image has restart new image will be downloaded.
### [Start-AzContainerGroup](Start-AzContainerGroup.md)
Starts all containers in a container group.
@@ -106,7 +106,7 @@ Stops all containers in a container group.
Compute resources will be deallocated and billing will stop.
### [Update-AzContainerGroup](Update-AzContainerGroup.md)
-Updates container group tags with specified values.
+Update container group tags with specified values.
### [Update-AzContainerInstanceContainerGroupProfile](Update-AzContainerInstanceContainerGroupProfile.md)
Patches container group profile with specified properties.
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerGroup.md
index f1854beccd2a..46c6050c9f90 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerGroup.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerGroup.md
@@ -161,7 +161,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
-To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity
@@ -231,7 +230,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerGroup
## NOTES
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceCachedImage.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceCachedImage.md
index 18fe5e707b86..f876a5430b35 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceCachedImage.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceCachedImage.md
@@ -94,7 +94,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICachedImages
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.ICachedImages
## NOTES
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceCapability.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceCapability.md
index 7a576db9eb35..c44531ffa150 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceCapability.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceCapability.md
@@ -98,7 +98,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ICapabilities
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.ICapabilities
## NOTES
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md
index 0845ea571066..79cc68cebadc 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md
@@ -78,7 +78,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
-To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceContainerGroupProfile.md
index 98e9474a473f..121be2d3297c 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceContainerGroupProfile.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceContainerGroupProfile.md
@@ -43,6 +43,12 @@ Get-AzContainerInstanceContainerGroupProfile -InputObject ] []
```
+### GetViaIdentityContainerGroupProfile
+```
+Get-AzContainerInstanceContainerGroupProfile -ContainerGroupProfileInputObject
+ -RevisionNumber [-DefaultProfile ] []
+```
+
### List1
```
Get-AzContainerInstanceContainerGroupProfile -ResourceGroupName [-SubscriptionId ]
@@ -189,6 +195,21 @@ The command gets the first revision of the container group profile `test-cgp` in
## PARAMETERS
+### -ContainerGroupProfileInputObject
+Identity Parameter
+
+```yaml
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity
+Parameter Sets: GetViaIdentityContainerGroupProfile
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: True (ByValue)
+Accept wildcard characters: False
+```
+
### -DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
@@ -207,7 +228,6 @@ Accept wildcard characters: False
### -InputObject
Identity Parameter
-To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity
@@ -257,7 +277,7 @@ The revision number of the container group profile.
```yaml
Type: System.String
-Parameter Sets: Get1
+Parameter Sets: Get1, GetViaIdentityContainerGroupProfile
Aliases:
Required: True
@@ -292,7 +312,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerGroupProfile
## NOTES
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceContainerGroupProfileRevision.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceContainerGroupProfileRevision.md
index 41d9c290e8b2..9ae556226c66 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceContainerGroupProfileRevision.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceContainerGroupProfileRevision.md
@@ -110,7 +110,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerGroupProfile
## NOTES
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceLog.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceLog.md
index 85aaa42bd50d..38a1bc2d3e41 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceLog.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceLog.md
@@ -172,7 +172,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### System.String
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.ILogs
## NOTES
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceUsage.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceUsage.md
index aa6e4c5449eb..542ead9cf61d 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceUsage.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Get-AzContainerInstanceUsage.md
@@ -97,7 +97,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IUsage
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IUsage
## NOTES
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/Invoke-AzContainerInstanceCommand.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Invoke-AzContainerInstanceCommand.md
index 3f6e371bb57b..2adb8f4201f7 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Invoke-AzContainerInstanceCommand.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Invoke-AzContainerInstanceCommand.md
@@ -82,7 +82,8 @@ Accept wildcard characters: False
```
### -DefaultProfile
-The credentials, account, tenant, and subscription used for communication with Azure.
+The DefaultProfile parameter is not functional.
+Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
```yaml
Type: System.Management.Automation.PSObject
@@ -114,6 +115,7 @@ Accept wildcard characters: False
### -ResourceGroupName
The name of the resource group.
+The name is case insensitive.
```yaml
Type: System.String
@@ -128,8 +130,8 @@ Accept wildcard characters: False
```
### -SubscriptionId
-Subscription credentials which uniquely identify Microsoft Azure subscription.
-The subscription ID forms part of the URI for every service call.
+The ID of the target subscription.
+The value must be an UUID.
```yaml
Type: System.String
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerGroup.md
index e8ac0bc71d68..39444f65c6db 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerGroup.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerGroup.md
@@ -12,22 +12,38 @@ Create or update container groups with specified configurations.
## SYNTAX
+### CreateExpanded (Default)
```
-New-AzContainerGroup -Name -ResourceGroupName -Location [-SubscriptionId ]
- [-Container ] [-ContainerGroupProfileId ] [-ContainerGroupProfileRevision ]
+New-AzContainerGroup -Name -ResourceGroupName -Container -Location
+ [-SubscriptionId ] [-ConfidentialComputePropertyCcePolicy ]
+ [-ContainerGroupProfileId ] [-ContainerGroupProfileRevision ]
[-DnsConfigNameServer ] [-DnsConfigOption ] [-DnsConfigSearchDomain ]
- [-EncryptionPropertyKeyName ] [-EncryptionPropertyKeyVersion ]
- [-EncryptionPropertyVaultBaseUrl ] [-IdentityType ]
- [-IdentityUserAssignedIdentity ] [-ImageRegistryCredential ]
- [-InitContainer ] [-IPAddressDnsNameLabel ] [-IPAddressIP ]
- [-IPAddressPort ] [-IPAddressType ]
- [-LogAnalyticLogType ] [-LogAnalyticMetadata ]
+ [-EnableSystemAssignedIdentity] [-EncryptionPropertyIdentity ] [-EncryptionPropertyKeyName ]
+ [-EncryptionPropertyKeyVersion ] [-EncryptionPropertyVaultBaseUrl ]
+ [-Extension ] [-ImageRegistryCredential ]
+ [-InitContainer ] [-IPAddressAutoGeneratedDomainNameLabelScope ]
+ [-IPAddressDnsNameLabel ] [-IPAddressIP ] [-IPAddressPort ]
+ [-IPAddressType ] [-LogAnalyticLogType ] [-LogAnalyticMetadata ]
[-LogAnalyticWorkspaceId ] [-LogAnalyticWorkspaceKey ]
- [-LogAnalyticWorkspaceResourceId ] [-OSType ] [-Priority ]
- [-RestartPolicy ] [-Sku ]
- [-StandbyPoolProfileFailContainerGroupCreateOnReuseFailure] [-StandbyPoolProfileId ]
- [-SubnetId ] [-Tag ] [-Volume ] [-Zone ]
- [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] []
+ [-LogAnalyticWorkspaceResourceId ] [-OSType ] [-Priority ] [-RestartPolicy ]
+ [-Sku ] [-StandbyPoolProfileFailContainerGroupCreateOnReuseFailure] [-StandbyPoolProfileId ]
+ [-SubnetId ] [-Tag ] [-UserAssignedIdentity ]
+ [-Volume ] [-Zone ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
+ []
+```
+
+### CreateViaJsonFilePath
+```
+New-AzContainerGroup -Name -ResourceGroupName -JsonFilePath
+ [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
+ []
+```
+
+### CreateViaJsonString
+```
+New-AzContainerGroup -Name -ResourceGroupName -JsonString
+ [-SubscriptionId ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf]
+ []
```
## DESCRIPTION
@@ -162,16 +178,30 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -ConfidentialComputePropertyCcePolicy
+The base64 encoded confidential compute enforcement policy
+
+```yaml
+Type: System.String
+Parameter Sets: CreateExpanded
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -Container
The containers within the container group.
-To construct, see NOTES section for CONTAINER properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]
-Parameter Sets: (All)
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainer[]
+Parameter Sets: CreateExpanded
Aliases:
-Required: False
+Required: True
Position: Named
Default value: None
Accept pipeline input: False
@@ -183,7 +213,7 @@ The container group profile reference id.This will be an ARM resource id in the
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -198,7 +228,7 @@ The container group profile reference revision.
```yaml
Type: System.Int32
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -209,7 +239,8 @@ Accept wildcard characters: False
```
### -DefaultProfile
-The credentials, account, tenant, and subscription used for communication with Azure.
+The DefaultProfile parameter is not functional.
+Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
```yaml
Type: System.Management.Automation.PSObject
@@ -228,7 +259,7 @@ The DNS servers for the container group.
```yaml
Type: System.String[]
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -243,7 +274,7 @@ The DNS options for the container group.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -258,7 +289,37 @@ The DNS search domains for hostname lookup in the container group.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -EnableSystemAssignedIdentity
+Determines whether to enable a system-assigned identity for the resource.
+
+```yaml
+Type: System.Management.Automation.SwitchParameter
+Parameter Sets: CreateExpanded
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -EncryptionPropertyIdentity
+The keyvault managed identity.
+
+```yaml
+Type: System.String
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -273,7 +334,7 @@ The encryption key name.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -288,7 +349,7 @@ The encryption key version.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -303,7 +364,7 @@ The keyvault base url.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -313,14 +374,12 @@ Accept pipeline input: False
Accept wildcard characters: False
```
-### -IdentityType
-The type of identity used for the container group.
-The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities.
-The type 'None' will remove any identities from the container group.
+### -Extension
+extensions used by virtual kubelet
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ResourceIdentityType
-Parameter Sets: (All)
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IDeploymentExtensionSpec[]
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -330,13 +389,12 @@ Accept pipeline input: False
Accept wildcard characters: False
```
-### -IdentityUserAssignedIdentity
-The list of user identities associated with the container group.
-The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
+### -ImageRegistryCredential
+The image registry credentials by which the container group is created from.
```yaml
-Type: System.Collections.Hashtable
-Parameter Sets: (All)
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IImageRegistryCredential[]
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -346,13 +404,12 @@ Accept pipeline input: False
Accept wildcard characters: False
```
-### -ImageRegistryCredential
-The image registry credentials by which the container group is created from.
-To construct, see NOTES section for IMAGEREGISTRYCREDENTIAL properties and create a hash table.
+### -InitContainer
+The init containers for a container group.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]
-Parameter Sets: (All)
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IInitContainerDefinition[]
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -362,13 +419,17 @@ Accept pipeline input: False
Accept wildcard characters: False
```
-### -InitContainer
-The init containers for a container group.
-To construct, see NOTES section for INITCONTAINER properties and create a hash table.
+### -IPAddressAutoGeneratedDomainNameLabelScope
+The value representing the security enum.
+The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover.
+The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant.
+The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription.
+The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group.
+The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]
-Parameter Sets: (All)
+Type: System.String
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -383,7 +444,7 @@ The Dns name label for the IP.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -398,7 +459,7 @@ The IP exposed to the public internet.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -410,11 +471,10 @@ Accept wildcard characters: False
### -IPAddressPort
The list of ports exposed on the container group.
-To construct, see NOTES section for IPADDRESSPORT properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]
-Parameter Sets: (All)
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IPort[]
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -428,8 +488,8 @@ Accept wildcard characters: False
Specifies if the IP is exposed to the public internet or private VNET.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType
-Parameter Sets: (All)
+Type: System.String
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -439,12 +499,42 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -JsonFilePath
+Path of Json file supplied to the Create operation
+
+```yaml
+Type: System.String
+Parameter Sets: CreateViaJsonFilePath
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -JsonString
+Json string supplied to the Create operation
+
+```yaml
+Type: System.String
+Parameter Sets: CreateViaJsonString
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -Location
The resource location.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: True
@@ -458,8 +548,8 @@ Accept wildcard characters: False
The log type to be used.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType
-Parameter Sets: (All)
+Type: System.String
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -474,7 +564,7 @@ Metadata for log analytics.
```yaml
Type: System.Collections.Hashtable
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -489,7 +579,7 @@ The workspace id for log analytics
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -504,7 +594,7 @@ The workspace key for log analytics
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -519,7 +609,7 @@ The workspace resource id for log analytics
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -563,8 +653,8 @@ Accept wildcard characters: False
The operating system type required by the containers in the container group.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes
-Parameter Sets: (All)
+Type: System.String
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -575,11 +665,11 @@ Accept wildcard characters: False
```
### -Priority
-The priority of the Container Group.
+The priority of the container group.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -591,6 +681,7 @@ Accept wildcard characters: False
### -ResourceGroupName
The name of the resource group.
+The name is case insensitive.
```yaml
Type: System.String
@@ -609,8 +700,8 @@ Restart policy for all containers within the container group.
- `Always` Always restart- `OnFailure` Restart on failure- `Never` Never restart
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy
-Parameter Sets: (All)
+Type: System.String
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -624,8 +715,8 @@ Accept wildcard characters: False
The SKU for a container group.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku
-Parameter Sets: (All)
+Type: System.String
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -640,7 +731,7 @@ The flag to determine whether ACI should fail the create request if the containe
```yaml
Type: System.Management.Automation.SwitchParameter
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -655,7 +746,7 @@ The standby pool profile reference id.This will be an ARM resource id in the for
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -667,11 +758,10 @@ Accept wildcard characters: False
### -SubnetId
The subnet resource IDs for a container group.
-To construct, see NOTES section for SUBNETID properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupSubnetId[]
-Parameter Sets: (All)
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerGroupSubnetId[]
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -682,8 +772,8 @@ Accept wildcard characters: False
```
### -SubscriptionId
-Subscription credentials which uniquely identify Microsoft Azure subscription.
-The subscription ID forms part of the URI for every service call.
+The ID of the target subscription.
+The value must be an UUID.
```yaml
Type: System.String
@@ -702,7 +792,23 @@ The resource tags.
```yaml
Type: System.Collections.Hashtable
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -UserAssignedIdentity
+The array of user assigned identities associated with the resource.
+The elements in array will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.'
+
+```yaml
+Type: System.String[]
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -714,11 +820,10 @@ Accept wildcard characters: False
### -Volume
The list of volumes that can be mounted by containers in this container group.
-To construct, see NOTES section for VOLUME properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]
-Parameter Sets: (All)
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IVolume[]
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -733,7 +838,7 @@ The zones for the container group.
```yaml
Type: System.String[]
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -781,7 +886,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroup
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerGroup
## NOTES
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerGroupImageRegistryCredentialObject.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerGroupImageRegistryCredentialObject.md
index 77acb5864972..cd0b729022fb 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerGroupImageRegistryCredentialObject.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerGroupImageRegistryCredentialObject.md
@@ -105,7 +105,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ImageRegistryCredential
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.ImageRegistryCredential
## NOTES
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerGroupPortObject.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerGroupPortObject.md
index 05ccfdabb19b..b256ff8818d9 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerGroupPortObject.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerGroupPortObject.md
@@ -1,23 +1,23 @@
---
external help file:
Module Name: Az.ContainerInstance
-online version: https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerGroupPortObject
+online version: https://learn.microsoft.com/powershell/module/Az.ContainerInstance/new-azcontainergroupportobject
schema: 2.0.0
---
# New-AzContainerGroupPortObject
## SYNOPSIS
-Create a in-memory object for Port
+Create an in-memory object for Port.
## SYNTAX
```
-New-AzContainerGroupPortObject -Port [-Protocol ] []
+New-AzContainerGroupPortObject -Port1 [-Protocol ] []
```
## DESCRIPTION
-Create a in-memory object for Port
+Create an in-memory object for Port.
## EXAMPLES
@@ -36,7 +36,7 @@ This command specifies port 8000 exposed on a container group with TCP protocol.
## PARAMETERS
-### -Port
+### -Port1
The port number.
```yaml
@@ -73,7 +73,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Port
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Port
## NOTES
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerGroupVolumeObject.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerGroupVolumeObject.md
index ae2b74e29e20..0b4b6321f381 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerGroupVolumeObject.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerGroupVolumeObject.md
@@ -124,10 +124,9 @@ Accept wildcard characters: False
### -EmptyDir
The empty directory volume.
-To construct, see NOTES section for EMPTYDIR properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeEmptyDir
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IVolumeEmptyDir
Parameter Sets: (All)
Aliases:
@@ -203,10 +202,9 @@ Accept wildcard characters: False
### -Secret
The secret volume.
-To construct, see NOTES section for SECRET properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ISecretVolume
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.ISecretVolume
Parameter Sets: (All)
Aliases:
@@ -224,7 +222,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Volume
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Volume
## NOTES
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceContainerGroupProfile.md
index 11d2cac97844..cbd46d1b79b5 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceContainerGroupProfile.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceContainerGroupProfile.md
@@ -8,29 +8,40 @@ schema: 2.0.0
# New-AzContainerInstanceContainerGroupProfile
## SYNOPSIS
-Create or update container group profiles with specified configurations.
+Create container group profiles with specified configurations.
## SYNTAX
+### CreateExpanded (Default)
```
New-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName
- -Container -OSType [-SubscriptionId ]
+ -Container -OSType [-SubscriptionId ]
[-ConfidentialComputePropertyCcePolicy ] [-EncryptionPropertyIdentity ]
[-EncryptionPropertyKeyName ] [-EncryptionPropertyKeyVersion ]
[-EncryptionPropertyVaultBaseUrl ] [-Extension ]
[-ImageRegistryCredential ] [-InitContainer ]
- [-IPAddressAutoGeneratedDomainNameLabelScope ] [-IPAddressDnsNameLabel ]
- [-IPAddressIP ] [-IPAddressPort ] [-IPAddressType ]
- [-Location ] [-LogAnalyticLogType ] [-LogAnalyticMetadata ]
- [-LogAnalyticWorkspaceId ] [-LogAnalyticWorkspaceKey ]
- [-LogAnalyticWorkspaceResourceId ] [-Priority ]
- [-RestartPolicy ] [-Sku ] [-Tag ]
- [-Volume ] [-Zone ] [-DefaultProfile ] [-Confirm] [-WhatIf]
- []
+ [-IPAddressAutoGeneratedDomainNameLabelScope ] [-IPAddressDnsNameLabel ]
+ [-IPAddressIP ] [-IPAddressPort ] [-IPAddressType ] [-Location ]
+ [-LogAnalyticLogType ] [-LogAnalyticMetadata ] [-LogAnalyticWorkspaceId ]
+ [-LogAnalyticWorkspaceKey ] [-LogAnalyticWorkspaceResourceId ] [-Priority ]
+ [-RestartPolicy ] [-Sku ] [-Tag ] [-Volume ] [-Zone ]
+ [-DefaultProfile ] [-Confirm] [-WhatIf] []
+```
+
+### CreateViaJsonFilePath
+```
+New-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName -JsonFilePath
+ [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] []
+```
+
+### CreateViaJsonString
+```
+New-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName -JsonString
+ [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] []
```
## DESCRIPTION
-Create or update container group profiles with specified configurations.
+Create container group profiles with specified configurations.
## EXAMPLES
@@ -104,7 +115,7 @@ The base64 encoded confidential compute enforcement policy
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -116,11 +127,10 @@ Accept wildcard characters: False
### -Container
The containers within the container group.
-To construct, see NOTES section for CONTAINER properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainer[]
-Parameter Sets: (All)
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainer[]
+Parameter Sets: CreateExpanded
Aliases:
Required: True
@@ -151,7 +161,7 @@ The keyvault managed identity.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -166,7 +176,7 @@ The encryption key name.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -181,7 +191,7 @@ The encryption key version.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -196,7 +206,7 @@ The keyvault base url.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -208,11 +218,10 @@ Accept wildcard characters: False
### -Extension
extensions used by virtual kubelet
-To construct, see NOTES section for EXTENSION properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IDeploymentExtensionSpec[]
-Parameter Sets: (All)
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IDeploymentExtensionSpec[]
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -224,11 +233,10 @@ Accept wildcard characters: False
### -ImageRegistryCredential
The image registry credentials by which the container group is created from.
-To construct, see NOTES section for IMAGEREGISTRYCREDENTIAL properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IImageRegistryCredential[]
-Parameter Sets: (All)
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IImageRegistryCredential[]
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -240,11 +248,10 @@ Accept wildcard characters: False
### -InitContainer
The init containers for a container group.
-To construct, see NOTES section for INITCONTAINER properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IInitContainerDefinition[]
-Parameter Sets: (All)
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IInitContainerDefinition[]
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -263,8 +270,8 @@ The 'ResourceGroupReuse' value means the object's domain name label can be reuse
The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.DnsNameLabelReusePolicy
-Parameter Sets: (All)
+Type: System.String
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -279,7 +286,7 @@ The Dns name label for the IP.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -294,7 +301,7 @@ The IP exposed to the public internet.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -306,11 +313,10 @@ Accept wildcard characters: False
### -IPAddressPort
The list of ports exposed on the container group.
-To construct, see NOTES section for IPADDRESSPORT properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IPort[]
-Parameter Sets: (All)
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IPort[]
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -324,8 +330,8 @@ Accept wildcard characters: False
Specifies if the IP is exposed to the public internet or private VNET.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupIPAddressType
-Parameter Sets: (All)
+Type: System.String
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -335,12 +341,42 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -JsonFilePath
+Path of Json file supplied to the Create operation
+
+```yaml
+Type: System.String
+Parameter Sets: CreateViaJsonFilePath
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -JsonString
+Json string supplied to the Create operation
+
+```yaml
+Type: System.String
+Parameter Sets: CreateViaJsonString
+Aliases:
+
+Required: True
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -Location
The resource location.
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -354,8 +390,8 @@ Accept wildcard characters: False
The log type to be used.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType
-Parameter Sets: (All)
+Type: System.String
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -370,7 +406,7 @@ Metadata for log analytics.
```yaml
Type: System.Collections.Hashtable
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -385,7 +421,7 @@ The workspace id for log analytics
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -400,7 +436,7 @@ The workspace key for log analytics
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -415,7 +451,7 @@ The workspace resource id for log analytics
```yaml
Type: System.String
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -444,8 +480,8 @@ Accept wildcard characters: False
The operating system type required by the containers in the container group.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes
-Parameter Sets: (All)
+Type: System.String
+Parameter Sets: CreateExpanded
Aliases:
Required: True
@@ -459,8 +495,8 @@ Accept wildcard characters: False
The priority of the container group.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupPriority
-Parameter Sets: (All)
+Type: System.String
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -491,8 +527,8 @@ Restart policy for all containers within the container group.
- `Always` Always restart- `OnFailure` Restart on failure- `Never` Never restart
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy
-Parameter Sets: (All)
+Type: System.String
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -506,8 +542,8 @@ Accept wildcard characters: False
The SKU for a container group.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupSku
-Parameter Sets: (All)
+Type: System.String
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -538,7 +574,7 @@ The resource tags.
```yaml
Type: System.Collections.Hashtable
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -550,11 +586,10 @@ Accept wildcard characters: False
### -Volume
The list of volumes that can be mounted by containers in this container group.
-To construct, see NOTES section for VOLUME properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolume[]
-Parameter Sets: (All)
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IVolume[]
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -569,7 +604,7 @@ The zones for the container group.
```yaml
Type: System.String[]
-Parameter Sets: (All)
+Parameter Sets: CreateExpanded
Aliases:
Required: False
@@ -617,7 +652,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerGroupProfile
## NOTES
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceEnvironmentVariableObject.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceEnvironmentVariableObject.md
index 9879f4bda455..9bd2f9df12de 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceEnvironmentVariableObject.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceEnvironmentVariableObject.md
@@ -103,7 +103,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.EnvironmentVariable
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.EnvironmentVariable
## NOTES
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceHttpHeaderObject.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceHttpHeaderObject.md
index 3d590d7470bf..15354da627d1 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceHttpHeaderObject.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceHttpHeaderObject.md
@@ -1,23 +1,23 @@
---
external help file:
Module Name: Az.ContainerInstance
-online version: https://learn.microsoft.com/powershell/module/az.ContainerInstance/New-AzContainerInstanceHttpHeaderObject
+online version: https://learn.microsoft.com/powershell/module/Az.ContainerInstance/new-azcontainerinstancehttpheaderobject
schema: 2.0.0
---
# New-AzContainerInstanceHttpHeaderObject
## SYNOPSIS
-Create a in-memory object for HttpHeader
+Create an in-memory object for HttpHeader.
## SYNTAX
```
-New-AzContainerInstanceHttpHeaderObject -Name [-Value ] []
+New-AzContainerInstanceHttpHeaderObject [-Name ] [-Value ] []
```
## DESCRIPTION
-Create a in-memory object for HttpHeader
+Create an in-memory object for HttpHeader.
## EXAMPLES
@@ -44,7 +44,7 @@ Type: System.String
Parameter Sets: (All)
Aliases:
-Required: True
+Required: False
Position: Named
Default value: None
Accept pipeline input: False
@@ -52,7 +52,7 @@ Accept wildcard characters: False
```
### -Value
-The header value..
+The header value.
```yaml
Type: System.String
@@ -73,7 +73,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.HttpHeader
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.HttpHeader
## NOTES
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceInitDefinitionObject.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceInitDefinitionObject.md
index 5c080e4fb130..68328e8160df 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceInitDefinitionObject.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceInitDefinitionObject.md
@@ -1,25 +1,27 @@
---
external help file:
Module Name: Az.ContainerInstance
-online version: https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceInitDefinitionObject
+online version: https://learn.microsoft.com/powershell/module/Az.ContainerInstance/new-azcontainerinstanceinitdefinitionobject
schema: 2.0.0
---
# New-AzContainerInstanceInitDefinitionObject
## SYNOPSIS
-Create a in-memory object for InitContainerDefinition
+Create an in-memory object for InitContainerDefinition.
## SYNTAX
```
-New-AzContainerInstanceInitDefinitionObject -Name [-Command ]
- [-EnvironmentVariable ] [-Image ] [-VolumeMount ]
- []
+New-AzContainerInstanceInitDefinitionObject -Name [-CapabilityAdd ]
+ [-CapabilityDrop ] [-Command ] [-EnvironmentVariable ]
+ [-Image ] [-SecurityContextAllowPrivilegeEscalation ] [-SecurityContextPrivileged ]
+ [-SecurityContextRunAsGroup ] [-SecurityContextRunAsUser ]
+ [-SecurityContextSeccompProfile ] [-VolumeMount ] []
```
## DESCRIPTION
-Create a in-memory object for InitContainerDefinition
+Create an in-memory object for InitContainerDefinition.
## EXAMPLES
@@ -38,6 +40,36 @@ This command sets up the init container definition with command `/bin/sh -c mysc
## PARAMETERS
+### -CapabilityAdd
+The capabilities to add to the container.
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -CapabilityDrop
+The capabilities to drop from the container.
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -Command
The command to execute within the init container in exec form.
@@ -55,10 +87,9 @@ Accept wildcard characters: False
### -EnvironmentVariable
The environment variables to set in the init container.
-To construct, see NOTES section for ENVIRONMENTVARIABLE properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IEnvironmentVariable[]
Parameter Sets: (All)
Aliases:
@@ -99,12 +130,86 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -SecurityContextAllowPrivilegeEscalation
+A boolean value indicating whether the init process can elevate its privileges.
+
+```yaml
+Type: System.Boolean
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SecurityContextPrivileged
+The flag to determine if the container permissions is elevated to Privileged.
+
+```yaml
+Type: System.Boolean
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SecurityContextRunAsGroup
+Sets the User GID for the container.
+
+```yaml
+Type: System.Int32
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SecurityContextRunAsUser
+Sets the User UID for the container.
+
+```yaml
+Type: System.Int32
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SecurityContextSeccompProfile
+a base64 encoded string containing the contents of the JSON in the seccomp profile.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -VolumeMount
The volume mounts available to the init container.
-To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IVolumeMount[]
Parameter Sets: (All)
Aliases:
@@ -122,7 +227,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.InitContainerDefinition
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.InitContainerDefinition
## NOTES
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceNoDefaultObject.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceNoDefaultObject.md
index 1a4b413f327b..9bfd714961cf 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceNoDefaultObject.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceNoDefaultObject.md
@@ -1,22 +1,23 @@
---
external help file:
Module Name: Az.ContainerInstance
-online version: https://learn.microsoft.com/powershell/module/az.ContainerInstance/New-AzContainerInstanceNoDefaultObject
+online version: https://learn.microsoft.com/powershell/module/Az.ContainerInstance/new-azcontainerinstancenodefaultobject
schema: 2.0.0
---
# New-AzContainerInstanceNoDefaultObject
## SYNOPSIS
-Create a in-memory object for Container with no default values
+Create an in-memory object for Container.
## SYNTAX
```
-New-AzContainerInstanceNoDefaultObject -Name [-Command ]
- [-ConfigMapKeyValuePair ] [-EnvironmentVariable ]
- [-Image ] [-LimitCpu ] [-LimitMemoryInGb ] [-LimitsGpuCount ]
- [-LimitsGpuSku ] [-LivenessProbeExecCommand ] [-LivenessProbeFailureThreshold ]
+New-AzContainerInstanceNoDefaultObject -Name [-CapabilityAdd ] [-CapabilityDrop ]
+ [-Command ] [-ConfigMapKeyValuePair ]
+ [-EnvironmentVariable ] [-Image ] [-LimitCpu ]
+ [-LimitMemoryInGb ] [-LimitsGpuCount ] [-LimitsGpuSku ]
+ [-LivenessProbeExecCommand ] [-LivenessProbeFailureThreshold ]
[-LivenessProbeHttpGetHttpHeader ] [-LivenessProbeHttpGetPath ]
[-LivenessProbeHttpGetPort ] [-LivenessProbeHttpGetScheme ]
[-LivenessProbeInitialDelaySecond ] [-LivenessProbePeriodSecond ]
@@ -27,11 +28,13 @@ New-AzContainerInstanceNoDefaultObject -Name [-Command ]
[-ReadinessProbeInitialDelaySecond ] [-ReadinessProbePeriodSecond ]
[-ReadinessProbeSuccessThreshold ] [-ReadinessProbeTimeoutSecond ] [-RequestCpu ]
[-RequestMemoryInGb ] [-RequestsGpuCount ] [-RequestsGpuSku ]
- [-VolumeMount ] []
+ [-SecurityContextAllowPrivilegeEscalation ] [-SecurityContextPrivileged ]
+ [-SecurityContextRunAsGroup ] [-SecurityContextRunAsUser ]
+ [-SecurityContextSeccompProfile ] [-VolumeMount ] []
```
## DESCRIPTION
-Create a in-memory object for Container with no default values
+Create an in-memory object for Container.
## EXAMPLES
@@ -77,6 +80,36 @@ Create a container group with a container instance
## PARAMETERS
+### -CapabilityAdd
+The capabilities to add to the container.
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -CapabilityDrop
+The capabilities to drop from the container.
+
+```yaml
+Type: System.String[]
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -Command
The commands to execute within the container instance in exec form.
@@ -93,11 +126,10 @@ Accept wildcard characters: False
```
### -ConfigMapKeyValuePair
-The key value pairs dictionary in the config map to set in the container instance.
-To construct, see NOTES section for CONFIGMAPKEYVALUEPAIR properties and create a hash table.
+The key value pairs dictionary in the config map.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IConfigMapKeyValuePairs
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IConfigMapKeyValuePairs
Parameter Sets: (All)
Aliases:
@@ -110,10 +142,9 @@ Accept wildcard characters: False
### -EnvironmentVariable
The environment variables to set in the container instance.
-To construct, see NOTES section for ENVIRONMENTVARIABLE properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IEnvironmentVariable[]
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IEnvironmentVariable[]
Parameter Sets: (All)
Aliases:
@@ -230,11 +261,10 @@ Accept wildcard characters: False
```
### -LivenessProbeHttpGetHttpHeader
-The HTTP headers for liveness probe.
-To construct, see NOTES section for LIVENESSPROBEHTTPGETHTTPHEADER properties and create a hash table.
+The HTTP headers.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IHttpHeader[]
Parameter Sets: (All)
Aliases:
@@ -367,10 +397,9 @@ Accept wildcard characters: False
### -Port
The exposed ports on the container instance.
-To construct, see NOTES section for PORT properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerPort[]
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerPort[]
Parameter Sets: (All)
Aliases:
@@ -412,11 +441,10 @@ Accept wildcard characters: False
```
### -ReadinessProbeHttpGetHttpHeader
-The HTTP headers for readiness probe.
-To construct, see NOTES section for READINESSPROBEHTTPGETHTTPHEADER properties and create a hash table.
+The HTTP headers.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IHttpHeader[]
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IHttpHeader[]
Parameter Sets: (All)
Aliases:
@@ -592,12 +620,86 @@ Accept pipeline input: False
Accept wildcard characters: False
```
+### -SecurityContextAllowPrivilegeEscalation
+A boolean value indicating whether the init process can elevate its privileges.
+
+```yaml
+Type: System.Boolean
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SecurityContextPrivileged
+The flag to determine if the container permissions is elevated to Privileged.
+
+```yaml
+Type: System.Boolean
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SecurityContextRunAsGroup
+Sets the User GID for the container.
+
+```yaml
+Type: System.Int32
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SecurityContextRunAsUser
+Sets the User UID for the container.
+
+```yaml
+Type: System.Int32
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
+### -SecurityContextSeccompProfile
+a base64 encoded string containing the contents of the JSON in the seccomp profile.
+
+```yaml
+Type: System.String
+Parameter Sets: (All)
+Aliases:
+
+Required: False
+Position: Named
+Default value: None
+Accept pipeline input: False
+Accept wildcard characters: False
+```
+
### -VolumeMount
The volume mounts available to the container instance.
-To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table.
```yaml
-Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IVolumeMount[]
+Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IVolumeMount[]
Parameter Sets: (All)
Aliases:
@@ -615,7 +717,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
## OUTPUTS
-### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.Container
+### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Container
## NOTES
diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceObject.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceObject.md
index aa0674761f14..03ff55761910 100644
--- a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceObject.md
+++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstanceObject.md
@@ -1,21 +1,22 @@
---
external help file:
Module Name: Az.ContainerInstance
-online version: https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceObject
+online version: https://learn.microsoft.com/powershell/module/Az.ContainerInstance/new-azcontainerinstanceobject
schema: 2.0.0
---
# New-AzContainerInstanceObject
## SYNOPSIS
-Create a in-memory object for Container
+Create an in-memory object for Container.
## SYNTAX
```
-New-AzContainerInstanceObject -Image -Name