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 [-Command ] - [-ConfigMapKeyValuePair ] [-EnvironmentVariable ] - [-LimitCpu ] [-LimitMemoryInGb ] [-LimitsGpuCount ] [-LimitsGpuSku ] +New-AzContainerInstanceObject -Name [-CapabilityAdd ] [-CapabilityDrop ] + [-Command ] [-ConfigMapKeyValuePair ] + [-EnvironmentVariable ] [-Image ] [-LimitCpu ] + [-LimitMemoryInGb ] [-LimitsGpuCount ] [-LimitsGpuSku ] [-LivenessProbeExecCommand ] [-LivenessProbeFailureThreshold ] [-LivenessProbeHttpGetHttpHeader ] [-LivenessProbeHttpGetPath ] [-LivenessProbeHttpGetPort ] [-LivenessProbeHttpGetScheme ] @@ -27,11 +28,13 @@ New-AzContainerInstanceObject -Image -Name [-Command ] [-ReadinessProbePeriodSecond ] [-ReadinessProbeSuccessThreshold ] [-ReadinessProbeTimeoutSecond ] [-RequestCpu ] [-RequestMemoryInGb ] [-RequestsGpuCount ] [-RequestsGpuSku ] - [-VolumeMount ] [] + [-SecurityContextAllowPrivilegeEscalation ] [-SecurityContextPrivileged ] + [-SecurityContextRunAsGroup ] [-SecurityContextRunAsUser ] + [-SecurityContextSeccompProfile ] [-VolumeMount ] [] ``` ## DESCRIPTION -Create a in-memory object for Container +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: @@ -132,7 +163,7 @@ Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -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-AzContainerInstancePortObject.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstancePortObject.md index 049f2f519f8f..a05a0094360d 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstancePortObject.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/New-AzContainerInstancePortObject.md @@ -1,14 +1,14 @@ --- external help file: Module Name: Az.ContainerInstance -online version: https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstancePortObject +online version: https://learn.microsoft.com/powershell/module/Az.ContainerInstance/new-azcontainerinstanceportobject schema: 2.0.0 --- # New-AzContainerInstancePortObject ## SYNOPSIS -Create a in-memory object for ContainerPort +Create an in-memory object for ContainerPort. ## SYNTAX @@ -17,7 +17,7 @@ New-AzContainerInstancePortObject -Port [-Protocol ] [ -Name [-Re ``` ## DESCRIPTION -Create a in-memory object for VolumeMount +Create an in-memory object for VolumeMount. ## EXAMPLES @@ -90,7 +90,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMount +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.VolumeMount ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/Remove-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Remove-AzContainerGroup.md index b00b10eb0bf2..0496fa7e5e8b 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Remove-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Remove-AzContainerGroup.md @@ -92,7 +92,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 @@ -223,7 +222,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/Remove-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Remove-AzContainerInstanceContainerGroupProfile.md index 2a26a696020e..97dd26101601 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Remove-AzContainerInstanceContainerGroupProfile.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Remove-AzContainerInstanceContainerGroupProfile.md @@ -65,7 +65,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/Remove-AzContainerInstanceSubnetServiceAssociationLink.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Remove-AzContainerInstanceSubnetServiceAssociationLink.md index 6818918479a7..73fd0de1e34b 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Remove-AzContainerInstanceSubnetServiceAssociationLink.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Remove-AzContainerInstanceSubnetServiceAssociationLink.md @@ -26,6 +26,13 @@ Remove-AzContainerInstanceSubnetServiceAssociationLink -InputObject ] [-AsJob] [-NoWait] [-PassThru] [-Confirm] [-WhatIf] [] ``` +### DeleteViaIdentityVirtualNetwork +``` +Remove-AzContainerInstanceSubnetServiceAssociationLink -SubnetName + -VirtualNetworkInputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION Delete container group virtual network association links. The operation does not delete other resources provided by the user. @@ -74,7 +81,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 @@ -139,7 +145,7 @@ The name of the subnet. ```yaml Type: System.String -Parameter Sets: Delete +Parameter Sets: Delete, DeleteViaIdentityVirtualNetwork Aliases: Required: True @@ -165,6 +171,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -VirtualNetworkInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity +Parameter Sets: DeleteViaIdentityVirtualNetwork +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -VirtualNetworkName The name of the virtual network. diff --git a/src/ContainerInstance/ContainerInstance.Autorest/docs/Restart-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Restart-AzContainerGroup.md index 5cf5c747578d..ffb440c0ba44 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Restart-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Restart-AzContainerGroup.md @@ -9,7 +9,7 @@ schema: 2.0.0 ## SYNOPSIS 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. ## SYNTAX @@ -27,7 +27,7 @@ Restart-AzContainerGroup -InputObject [-DefaultProf ## DESCRIPTION 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. ## EXAMPLES @@ -80,7 +80,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/Start-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Start-AzContainerGroup.md index 0bde48070b53..4df0617852cd 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Start-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Start-AzContainerGroup.md @@ -80,7 +80,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/Stop-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Stop-AzContainerGroup.md index d3a08d8b54c9..1239243522de 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Stop-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Stop-AzContainerGroup.md @@ -66,7 +66,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/Update-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Update-AzContainerGroup.md index fe94f7cf76ad..fe6627fdc6bd 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Update-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Update-AzContainerGroup.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzContainerGroup ## SYNOPSIS -Updates container group tags with specified values. +Update container group tags with specified values. ## SYNTAX @@ -25,8 +25,20 @@ Update-AzContainerGroup -InputObject [-Location ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` +### UpdateViaJsonFilePath +``` +Update-AzContainerGroup -Name -ResourceGroupName -JsonFilePath + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + +### UpdateViaJsonString +``` +Update-AzContainerGroup -Name -ResourceGroupName -JsonString + [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] +``` + ## DESCRIPTION -Updates container group tags with specified values. +Update container group tags with specified values. ## EXAMPLES @@ -80,7 +92,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 @@ -94,12 +105,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Update operation + +```yaml +Type: System.String +Parameter Sets: UpdateViaJsonString +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: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -114,7 +155,7 @@ The name of the container group. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: ContainerGroupName Required: True @@ -130,7 +171,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: True @@ -146,7 +187,7 @@ The value must be an UUID. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: UpdateExpanded, UpdateViaJsonFilePath, UpdateViaJsonString Aliases: Required: False @@ -161,7 +202,7 @@ The resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -176,7 +217,7 @@ The zones for the container group. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: UpdateExpanded, UpdateViaIdentityExpanded Aliases: Required: False @@ -226,7 +267,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/Update-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance.Autorest/docs/Update-AzContainerInstanceContainerGroupProfile.md index d9b5c80b396c..85fd053dac09 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/docs/Update-AzContainerInstanceContainerGroupProfile.md +++ b/src/ContainerInstance/ContainerInstance.Autorest/docs/Update-AzContainerInstanceContainerGroupProfile.md @@ -39,6 +39,20 @@ Update-AzContainerInstanceContainerGroupProfile -InputObject ] [-Confirm] [-WhatIf] [] ``` +### PatchViaJsonFilePath +``` +Update-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + -JsonFilePath [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + +### PatchViaJsonString +``` +Update-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + -JsonString [-SubscriptionId ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] +``` + ## DESCRIPTION Patches container group profile with specified properties. @@ -94,7 +108,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 @@ -108,12 +121,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Patch operation + +```yaml +Type: System.String +Parameter Sets: PatchViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Patch operation + +```yaml +Type: System.String +Parameter Sets: PatchViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The name of the container group profile. ```yaml Type: System.String -Parameter Sets: Patch, PatchExpanded +Parameter Sets: Patch, PatchExpanded, PatchViaJsonFilePath, PatchViaJsonString Aliases: ContainerGroupProfileName Required: True @@ -125,10 +168,9 @@ Accept wildcard characters: False ### -Property Properties of container group profile that need to be patched -To construct, see NOTES section for PROPERTY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerGroupProfilePatch Parameter Sets: Patch, PatchViaIdentity Aliases: @@ -145,7 +187,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: Patch, PatchExpanded +Parameter Sets: Patch, PatchExpanded, PatchViaJsonFilePath, PatchViaJsonString Aliases: Required: True @@ -161,7 +203,7 @@ The value must be an UUID. ```yaml Type: System.String -Parameter Sets: Patch, PatchExpanded +Parameter Sets: Patch, PatchExpanded, PatchViaJsonFilePath, PatchViaJsonString Aliases: Required: False @@ -222,13 +264,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerGroupProfilePatch ### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerGroupProfile ## NOTES diff --git a/src/ContainerInstance/ContainerInstance.Autorest/generate-info.json b/src/ContainerInstance/ContainerInstance.Autorest/generate-info.json index ee5f7e91579d..d701c6fcc74f 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/generate-info.json +++ b/src/ContainerInstance/ContainerInstance.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "1cd3a4b1-0452-4232-be7b-3957aad3ad7f" + "generate_Id": "7d8470a5-e528-4c3a-87c2-8f2fa69bc444" } diff --git a/src/ContainerInstance/ContainerInstance.Autorest/resources/README.md b/src/ContainerInstance/ContainerInstance.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/src/ContainerInstance/ContainerInstance.Autorest/resources/README.md @@ -0,0 +1,11 @@ +# Resources +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file diff --git a/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupPortObject.Tests.ps1 b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupPortObject.Tests.ps1 index d2f2973e209e..64a679dcd4bb 100644 --- a/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupPortObject.Tests.ps1 +++ b/src/ContainerInstance/ContainerInstance.Autorest/test/New-AzContainerGroupPortObject.Tests.ps1 @@ -14,7 +14,7 @@ while(-not $mockingPath) { Describe 'New-AzContainerGroupPortObject' { It '__AllParameterSets' { { - New-AzContainerGroupPortObject -Port 8001 -Protocol TCP + New-AzContainerGroupPortObject -Port1 8001 -Protocol TCP } | Should -Not -Throw } } diff --git a/src/ContainerInstance/ContainerInstance.sln b/src/ContainerInstance/ContainerInstance.sln index 3b6ab0d0396b..edd03a1025a8 100644 --- a/src/ContainerInstance/ContainerInstance.sln +++ b/src/ContainerInstance/ContainerInstance.sln @@ -1,4 +1,4 @@ - + Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.0.31903.59 @@ -19,49 +19,119 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accoun EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ContainerInstance", "ContainerInstance\ContainerInstance.csproj", "{A3A7B7C9-B81F-4358-B223-1E11C3B4A63E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ContainerInstance", "..\..\generated\ContainerInstance\ContainerInstance.Autorest\Az.ContainerInstance.csproj", "{95153300-E225-4AF2-BB15-BA09E3EA6B97}" +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ContainerInstance.Autorest", "ContainerInstance.Autorest", "{24763C8C-8FCC-1251-05EE-865E6FE39620}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.ContainerInstance", "..\..\generated\ContainerInstance\ContainerInstance.Autorest\Az.ContainerInstance.csproj", "{FE2F716B-8825-4575-B1DA-F7B4E1C7BA24}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE + Release|x64 = Release|x64 + Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {F77D573A-2A15-463F-86B6-6C137D16F14D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F77D573A-2A15-463F-86B6-6C137D16F14D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F77D573A-2A15-463F-86B6-6C137D16F14D}.Debug|x64.ActiveCfg = Debug|Any CPU + {F77D573A-2A15-463F-86B6-6C137D16F14D}.Debug|x64.Build.0 = Debug|Any CPU + {F77D573A-2A15-463F-86B6-6C137D16F14D}.Debug|x86.ActiveCfg = Debug|Any CPU + {F77D573A-2A15-463F-86B6-6C137D16F14D}.Debug|x86.Build.0 = Debug|Any CPU {F77D573A-2A15-463F-86B6-6C137D16F14D}.Release|Any CPU.ActiveCfg = Release|Any CPU {F77D573A-2A15-463F-86B6-6C137D16F14D}.Release|Any CPU.Build.0 = Release|Any CPU + {F77D573A-2A15-463F-86B6-6C137D16F14D}.Release|x64.ActiveCfg = Release|Any CPU + {F77D573A-2A15-463F-86B6-6C137D16F14D}.Release|x64.Build.0 = Release|Any CPU + {F77D573A-2A15-463F-86B6-6C137D16F14D}.Release|x86.ActiveCfg = Release|Any CPU + {F77D573A-2A15-463F-86B6-6C137D16F14D}.Release|x86.Build.0 = Release|Any CPU {4F8827D6-2F34-45F6-A859-3CFBD48BAF50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {4F8827D6-2F34-45F6-A859-3CFBD48BAF50}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4F8827D6-2F34-45F6-A859-3CFBD48BAF50}.Debug|x64.ActiveCfg = Debug|Any CPU + {4F8827D6-2F34-45F6-A859-3CFBD48BAF50}.Debug|x64.Build.0 = Debug|Any CPU + {4F8827D6-2F34-45F6-A859-3CFBD48BAF50}.Debug|x86.ActiveCfg = Debug|Any CPU + {4F8827D6-2F34-45F6-A859-3CFBD48BAF50}.Debug|x86.Build.0 = Debug|Any CPU {4F8827D6-2F34-45F6-A859-3CFBD48BAF50}.Release|Any CPU.ActiveCfg = Release|Any CPU {4F8827D6-2F34-45F6-A859-3CFBD48BAF50}.Release|Any CPU.Build.0 = Release|Any CPU + {4F8827D6-2F34-45F6-A859-3CFBD48BAF50}.Release|x64.ActiveCfg = Release|Any CPU + {4F8827D6-2F34-45F6-A859-3CFBD48BAF50}.Release|x64.Build.0 = Release|Any CPU + {4F8827D6-2F34-45F6-A859-3CFBD48BAF50}.Release|x86.ActiveCfg = Release|Any CPU + {4F8827D6-2F34-45F6-A859-3CFBD48BAF50}.Release|x86.Build.0 = Release|Any CPU {EB5903ED-D819-4D1A-B29D-A7CBDB72C7FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {EB5903ED-D819-4D1A-B29D-A7CBDB72C7FE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {EB5903ED-D819-4D1A-B29D-A7CBDB72C7FE}.Debug|x64.ActiveCfg = Debug|Any CPU + {EB5903ED-D819-4D1A-B29D-A7CBDB72C7FE}.Debug|x64.Build.0 = Debug|Any CPU + {EB5903ED-D819-4D1A-B29D-A7CBDB72C7FE}.Debug|x86.ActiveCfg = Debug|Any CPU + {EB5903ED-D819-4D1A-B29D-A7CBDB72C7FE}.Debug|x86.Build.0 = Debug|Any CPU {EB5903ED-D819-4D1A-B29D-A7CBDB72C7FE}.Release|Any CPU.ActiveCfg = Release|Any CPU {EB5903ED-D819-4D1A-B29D-A7CBDB72C7FE}.Release|Any CPU.Build.0 = Release|Any CPU + {EB5903ED-D819-4D1A-B29D-A7CBDB72C7FE}.Release|x64.ActiveCfg = Release|Any CPU + {EB5903ED-D819-4D1A-B29D-A7CBDB72C7FE}.Release|x64.Build.0 = Release|Any CPU + {EB5903ED-D819-4D1A-B29D-A7CBDB72C7FE}.Release|x86.ActiveCfg = Release|Any CPU + {EB5903ED-D819-4D1A-B29D-A7CBDB72C7FE}.Release|x86.Build.0 = Release|Any CPU {0874BD13-CA50-45D2-80AA-278C56F7CA1E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {0874BD13-CA50-45D2-80AA-278C56F7CA1E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0874BD13-CA50-45D2-80AA-278C56F7CA1E}.Debug|x64.ActiveCfg = Debug|Any CPU + {0874BD13-CA50-45D2-80AA-278C56F7CA1E}.Debug|x64.Build.0 = Debug|Any CPU + {0874BD13-CA50-45D2-80AA-278C56F7CA1E}.Debug|x86.ActiveCfg = Debug|Any CPU + {0874BD13-CA50-45D2-80AA-278C56F7CA1E}.Debug|x86.Build.0 = Debug|Any CPU {0874BD13-CA50-45D2-80AA-278C56F7CA1E}.Release|Any CPU.ActiveCfg = Release|Any CPU {0874BD13-CA50-45D2-80AA-278C56F7CA1E}.Release|Any CPU.Build.0 = Release|Any CPU + {0874BD13-CA50-45D2-80AA-278C56F7CA1E}.Release|x64.ActiveCfg = Release|Any CPU + {0874BD13-CA50-45D2-80AA-278C56F7CA1E}.Release|x64.Build.0 = Release|Any CPU + {0874BD13-CA50-45D2-80AA-278C56F7CA1E}.Release|x86.ActiveCfg = Release|Any CPU + {0874BD13-CA50-45D2-80AA-278C56F7CA1E}.Release|x86.Build.0 = Release|Any CPU {3928EBFF-F058-442E-99EB-4D60EA4BC421}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3928EBFF-F058-442E-99EB-4D60EA4BC421}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3928EBFF-F058-442E-99EB-4D60EA4BC421}.Debug|x64.ActiveCfg = Debug|Any CPU + {3928EBFF-F058-442E-99EB-4D60EA4BC421}.Debug|x64.Build.0 = Debug|Any CPU + {3928EBFF-F058-442E-99EB-4D60EA4BC421}.Debug|x86.ActiveCfg = Debug|Any CPU + {3928EBFF-F058-442E-99EB-4D60EA4BC421}.Debug|x86.Build.0 = Debug|Any CPU {3928EBFF-F058-442E-99EB-4D60EA4BC421}.Release|Any CPU.ActiveCfg = Release|Any CPU {3928EBFF-F058-442E-99EB-4D60EA4BC421}.Release|Any CPU.Build.0 = Release|Any CPU + {3928EBFF-F058-442E-99EB-4D60EA4BC421}.Release|x64.ActiveCfg = Release|Any CPU + {3928EBFF-F058-442E-99EB-4D60EA4BC421}.Release|x64.Build.0 = Release|Any CPU + {3928EBFF-F058-442E-99EB-4D60EA4BC421}.Release|x86.ActiveCfg = Release|Any CPU + {3928EBFF-F058-442E-99EB-4D60EA4BC421}.Release|x86.Build.0 = Release|Any CPU {CD70894F-8D33-41A9-8C9B-9483426FF7C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {CD70894F-8D33-41A9-8C9B-9483426FF7C7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CD70894F-8D33-41A9-8C9B-9483426FF7C7}.Debug|x64.ActiveCfg = Debug|Any CPU + {CD70894F-8D33-41A9-8C9B-9483426FF7C7}.Debug|x64.Build.0 = Debug|Any CPU + {CD70894F-8D33-41A9-8C9B-9483426FF7C7}.Debug|x86.ActiveCfg = Debug|Any CPU + {CD70894F-8D33-41A9-8C9B-9483426FF7C7}.Debug|x86.Build.0 = Debug|Any CPU {CD70894F-8D33-41A9-8C9B-9483426FF7C7}.Release|Any CPU.ActiveCfg = Release|Any CPU {CD70894F-8D33-41A9-8C9B-9483426FF7C7}.Release|Any CPU.Build.0 = Release|Any CPU + {CD70894F-8D33-41A9-8C9B-9483426FF7C7}.Release|x64.ActiveCfg = Release|Any CPU + {CD70894F-8D33-41A9-8C9B-9483426FF7C7}.Release|x64.Build.0 = Release|Any CPU + {CD70894F-8D33-41A9-8C9B-9483426FF7C7}.Release|x86.ActiveCfg = Release|Any CPU + {CD70894F-8D33-41A9-8C9B-9483426FF7C7}.Release|x86.Build.0 = Release|Any CPU {A3A7B7C9-B81F-4358-B223-1E11C3B4A63E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {A3A7B7C9-B81F-4358-B223-1E11C3B4A63E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {A3A7B7C9-B81F-4358-B223-1E11C3B4A63E}.Debug|x64.ActiveCfg = Debug|Any CPU + {A3A7B7C9-B81F-4358-B223-1E11C3B4A63E}.Debug|x64.Build.0 = Debug|Any CPU + {A3A7B7C9-B81F-4358-B223-1E11C3B4A63E}.Debug|x86.ActiveCfg = Debug|Any CPU + {A3A7B7C9-B81F-4358-B223-1E11C3B4A63E}.Debug|x86.Build.0 = Debug|Any CPU {A3A7B7C9-B81F-4358-B223-1E11C3B4A63E}.Release|Any CPU.ActiveCfg = Release|Any CPU {A3A7B7C9-B81F-4358-B223-1E11C3B4A63E}.Release|Any CPU.Build.0 = Release|Any CPU - {95153300-E225-4AF2-BB15-BA09E3EA6B97}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {95153300-E225-4AF2-BB15-BA09E3EA6B97}.Debug|Any CPU.Build.0 = Debug|Any CPU - {95153300-E225-4AF2-BB15-BA09E3EA6B97}.Release|Any CPU.ActiveCfg = Release|Any CPU - {95153300-E225-4AF2-BB15-BA09E3EA6B97}.Release|Any CPU.Build.0 = Release|Any CPU + {A3A7B7C9-B81F-4358-B223-1E11C3B4A63E}.Release|x64.ActiveCfg = Release|Any CPU + {A3A7B7C9-B81F-4358-B223-1E11C3B4A63E}.Release|x64.Build.0 = Release|Any CPU + {A3A7B7C9-B81F-4358-B223-1E11C3B4A63E}.Release|x86.ActiveCfg = Release|Any CPU + {A3A7B7C9-B81F-4358-B223-1E11C3B4A63E}.Release|x86.Build.0 = Release|Any CPU + {FE2F716B-8825-4575-B1DA-F7B4E1C7BA24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FE2F716B-8825-4575-B1DA-F7B4E1C7BA24}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FE2F716B-8825-4575-B1DA-F7B4E1C7BA24}.Debug|x64.ActiveCfg = Debug|Any CPU + {FE2F716B-8825-4575-B1DA-F7B4E1C7BA24}.Debug|x64.Build.0 = Debug|Any CPU + {FE2F716B-8825-4575-B1DA-F7B4E1C7BA24}.Debug|x86.ActiveCfg = Debug|Any CPU + {FE2F716B-8825-4575-B1DA-F7B4E1C7BA24}.Debug|x86.Build.0 = Debug|Any CPU + {FE2F716B-8825-4575-B1DA-F7B4E1C7BA24}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FE2F716B-8825-4575-B1DA-F7B4E1C7BA24}.Release|Any CPU.Build.0 = Release|Any CPU + {FE2F716B-8825-4575-B1DA-F7B4E1C7BA24}.Release|x64.ActiveCfg = Release|Any CPU + {FE2F716B-8825-4575-B1DA-F7B4E1C7BA24}.Release|x64.Build.0 = Release|Any CPU + {FE2F716B-8825-4575-B1DA-F7B4E1C7BA24}.Release|x86.ActiveCfg = Release|Any CPU + {FE2F716B-8825-4575-B1DA-F7B4E1C7BA24}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution {F77D573A-2A15-463F-86B6-6C137D16F14D} = {BEAB14E1-7B36-4191-AA9A-CE4EDB78022F} @@ -70,5 +140,6 @@ Global {0874BD13-CA50-45D2-80AA-278C56F7CA1E} = {BEAB14E1-7B36-4191-AA9A-CE4EDB78022F} {3928EBFF-F058-442E-99EB-4D60EA4BC421} = {BEAB14E1-7B36-4191-AA9A-CE4EDB78022F} {CD70894F-8D33-41A9-8C9B-9483426FF7C7} = {BEAB14E1-7B36-4191-AA9A-CE4EDB78022F} + {FE2F716B-8825-4575-B1DA-F7B4E1C7BA24} = {24763C8C-8FCC-1251-05EE-865E6FE39620} EndGlobalSection EndGlobal diff --git a/src/ContainerInstance/ContainerInstance/Az.ContainerInstance.psd1 b/src/ContainerInstance/ContainerInstance/Az.ContainerInstance.psd1 index 5161374f1154..31e3115950db 100644 --- a/src/ContainerInstance/ContainerInstance/Az.ContainerInstance.psd1 +++ b/src/ContainerInstance/ContainerInstance/Az.ContainerInstance.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 1/9/2025 +# Generated on: 2025-08-11 # @{ @@ -51,16 +51,16 @@ DotNetFrameworkVersion = '4.7.2' # ProcessorArchitecture = '' # Modules that must be imported into the global environment prior to importing this module -RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.1'; }) +RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.2.0'; }) # Assemblies that must be loaded prior to importing this module RequiredAssemblies = 'ContainerInstance.Autorest/bin/Az.ContainerInstance.private.dll' # Script files (.ps1) that are run in the caller's environment prior to importing this module. -# ScriptsToProcess = @() +ScriptsToProcess = @() # Type files (.ps1xml) to be loaded when importing this module -# TypesToProcess = @() +TypesToProcess = @() # Format files (.ps1xml) to be loaded when importing this module FormatsToProcess = 'ContainerInstance.Autorest/Az.ContainerInstance.format.ps1xml' @@ -119,7 +119,7 @@ PrivateData = @{ PSData = @{ # Tags applied to this module. These help with module discovery in online galleries. - Tags = 'Azure','ResourceManager','ARM','PSModule','ContainerInstance' + Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'ContainerInstance' # A URL to the license for this module. LicenseUri = 'https://aka.ms/azps-license' @@ -145,7 +145,7 @@ PrivateData = @{ } # End of PSData hashtable - } # End of PrivateData hashtable +} # End of PrivateData hashtable # HelpInfo URI of this module # HelpInfoURI = '' diff --git a/src/ContainerInstance/ContainerInstance/help/Add-AzContainerInstanceOutput.md b/src/ContainerInstance/ContainerInstance/help/Add-AzContainerInstanceOutput.md index 6c7884a82105..eebce7d1559b 100644 --- a/src/ContainerInstance/ContainerInstance/help/Add-AzContainerInstanceOutput.md +++ b/src/ContainerInstance/ContainerInstance/help/Add-AzContainerInstanceOutput.md @@ -12,12 +12,19 @@ Attach to the output stream of a specific container instance in a specified reso ## SYNTAX +### Attach (Default) ``` -Add-AzContainerInstanceOutput -GroupName -Name -ResourceGroupName +Add-AzContainerInstanceOutput -Name -GroupName -ResourceGroupName [-SubscriptionId ] [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` +### AttachViaIdentityContainerGroup +``` +Add-AzContainerInstanceOutput -Name -ContainerGroupInputObject + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + ## DESCRIPTION Attach to the output stream of a specific container instance in a specified resource group and container group. @@ -40,6 +47,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. @@ -61,7 +83,7 @@ The name of the container group. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Attach Aliases: ContainerGroupName Required: True @@ -92,7 +114,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Attach Aliases: Required: True @@ -108,7 +130,7 @@ The value must be an UUID. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: Attach Aliases: Required: False @@ -154,9 +176,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/help/Az.ContainerInstance.md b/src/ContainerInstance/ContainerInstance/help/Az.ContainerInstance.md index 81668a43e39f..ab8d056ae991 100644 --- a/src/ContainerInstance/ContainerInstance/help/Az.ContainerInstance.md +++ b/src/ContainerInstance/ContainerInstance/help/Az.ContainerInstance.md @@ -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/help/Get-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerGroup.md index 3f8c2862ebbf..2433fe3fc6c1 100644 --- a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerGroup.md @@ -162,7 +162,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 @@ -232,7 +231,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/help/Get-AzContainerInstanceCachedImage.md b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceCachedImage.md index f01773c39886..528c40e0b910 100644 --- a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceCachedImage.md +++ b/src/ContainerInstance/ContainerInstance/help/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/help/Get-AzContainerInstanceCapability.md b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceCapability.md index 409bff2d9427..6bbb06d58ddf 100644 --- a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceCapability.md +++ b/src/ContainerInstance/ContainerInstance/help/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/help/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md index 09f413ed3106..ce53b7adf87f 100644 --- a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md +++ b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupOutboundNetworkDependencyEndpoint.md @@ -80,7 +80,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/help/Get-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupProfile.md index 1cbb969393bd..35bdbee77043 100644 --- a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupProfile.md +++ b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupProfile.md @@ -39,6 +39,13 @@ Get-AzContainerInstanceContainerGroupProfile -ResourceGroupName [-Subsc [-DefaultProfile ] [] ``` +### GetViaIdentityContainerGroupProfile +``` +Get-AzContainerInstanceContainerGroupProfile -RevisionNumber + -ContainerGroupProfileInputObject [-DefaultProfile ] + [] +``` + ### GetViaIdentity1 ``` Get-AzContainerInstanceContainerGroupProfile -InputObject @@ -191,6 +198,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. @@ -209,7 +231,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 @@ -259,7 +280,7 @@ The revision number of the container group profile. ```yaml Type: System.String -Parameter Sets: Get1 +Parameter Sets: Get1, GetViaIdentityContainerGroupProfile Aliases: Required: True @@ -294,7 +315,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/help/Get-AzContainerInstanceContainerGroupProfileRevision.md b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupProfileRevision.md index 8886b18003cc..c52f24045bf2 100644 --- a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupProfileRevision.md +++ b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceContainerGroupProfileRevision.md @@ -111,7 +111,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/help/Get-AzContainerInstanceLog.md b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceLog.md index fc73ec1773e4..0ecc745db89b 100644 --- a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceLog.md +++ b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceLog.md @@ -173,7 +173,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/help/Get-AzContainerInstanceUsage.md b/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceUsage.md index dceb02b68f2c..63f312fa0bcc 100644 --- a/src/ContainerInstance/ContainerInstance/help/Get-AzContainerInstanceUsage.md +++ b/src/ContainerInstance/ContainerInstance/help/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/help/Invoke-AzContainerInstanceCommand.md b/src/ContainerInstance/ContainerInstance/help/Invoke-AzContainerInstanceCommand.md index 351b03b9daaf..971858bc1e0b 100644 --- a/src/ContainerInstance/ContainerInstance/help/Invoke-AzContainerInstanceCommand.md +++ b/src/ContainerInstance/ContainerInstance/help/Invoke-AzContainerInstanceCommand.md @@ -83,7 +83,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 @@ -115,6 +116,7 @@ Accept wildcard characters: False ### -ResourceGroupName The name of the resource group. +The name is case insensitive. ```yaml Type: System.String @@ -129,8 +131,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/help/New-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroup.md index 5af413c9749a..2b50e56433a8 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroup.md @@ -12,24 +12,40 @@ Create or update container groups with specified configurations. ## SYNTAX +### CreateExpanded (Default) ``` -New-AzContainerGroup -Name -ResourceGroupName [-SubscriptionId ] -Location - [-Container ] [-OSType ] [-ContainerGroupProfileId ] +New-AzContainerGroup -Name -ResourceGroupName [-SubscriptionId ] + -Container -Location [-OSType ] + [-ConfidentialComputePropertyCcePolicy ] [-ContainerGroupProfileId ] [-ContainerGroupProfileRevision ] [-DnsConfigNameServer ] [-DnsConfigOption ] - [-DnsConfigSearchDomain ] [-EncryptionPropertyKeyName ] - [-EncryptionPropertyKeyVersion ] [-EncryptionPropertyVaultBaseUrl ] - [-IPAddressDnsNameLabel ] [-IPAddressIP ] [-IPAddressPort ] - [-IPAddressType ] [-IdentityType ] - [-IdentityUserAssignedIdentity ] [-ImageRegistryCredential ] - [-InitContainer ] [-LogAnalyticLogType ] - [-LogAnalyticMetadata ] [-LogAnalyticWorkspaceId ] [-LogAnalyticWorkspaceKey ] - [-LogAnalyticWorkspaceResourceId ] [-RestartPolicy ] - [-Sku ] [-StandbyPoolProfileFailContainerGroupCreateOnReuseFailure] - [-StandbyPoolProfileId ] [-SubnetId ] [-Tag ] + [-DnsConfigSearchDomain ] [-EnableSystemAssignedIdentity] [-EncryptionPropertyIdentity ] + [-EncryptionPropertyKeyName ] [-EncryptionPropertyKeyVersion ] + [-EncryptionPropertyVaultBaseUrl ] [-Extension ] + [-IPAddressAutoGeneratedDomainNameLabelScope ] [-IPAddressDnsNameLabel ] + [-IPAddressIP ] [-IPAddressPort ] [-IPAddressType ] + [-ImageRegistryCredential ] [-InitContainer ] + [-LogAnalyticLogType ] [-LogAnalyticMetadata ] [-LogAnalyticWorkspaceId ] + [-LogAnalyticWorkspaceKey ] [-LogAnalyticWorkspaceResourceId ] [-RestartPolicy ] + [-Sku ] [-StandbyPoolProfileFailContainerGroupCreateOnReuseFailure] [-StandbyPoolProfileId ] + [-SubnetId ] [-Tag ] [-UserAssignedIdentity ] [-Volume ] [-Zone ] [-Priority ] [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] [] ``` +### CreateViaJsonFilePath +``` +New-AzContainerGroup -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-AsJob] [-NoWait] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonString +``` +New-AzContainerGroup -Name -ResourceGroupName [-SubscriptionId ] -JsonString + [-DefaultProfile ] [-AsJob] [-NoWait] [-WhatIf] [-Confirm] + [] +``` + ## DESCRIPTION Create or update container groups with specified configurations. @@ -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/help/New-AzContainerGroupImageRegistryCredentialObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupImageRegistryCredentialObject.md index 37b6ae31a64e..8f75d5187950 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupImageRegistryCredentialObject.md +++ b/src/ContainerInstance/ContainerInstance/help/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/help/New-AzContainerGroupPortObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupPortObject.md index be37127fc842..b25d97d822c9 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupPortObject.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupPortObject.md @@ -1,24 +1,24 @@ --- external help file: Az.ContainerInstance-help.xml 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 @@ -37,7 +37,7 @@ This command specifies port 8000 exposed on a container group with TCP protocol. ## PARAMETERS -### -Port +### -Port1 The port number. ```yaml @@ -74,7 +74,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/help/New-AzContainerGroupVolumeObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupVolumeObject.md index 51ab6e5cbb38..4bfe2bbd88bd 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupVolumeObject.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerGroupVolumeObject.md @@ -125,10 +125,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: @@ -204,10 +203,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: @@ -225,7 +223,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/help/New-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceContainerGroupProfile.md index 150922338436..82adcc0d877e 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceContainerGroupProfile.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceContainerGroupProfile.md @@ -8,29 +8,43 @@ 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 - [-SubscriptionId ] -Container -OSType + [-SubscriptionId ] -Container -OSType [-ConfidentialComputePropertyCcePolicy ] [-EncryptionPropertyIdentity ] [-EncryptionPropertyKeyName ] [-EncryptionPropertyKeyVersion ] [-EncryptionPropertyVaultBaseUrl ] [-Extension ] - [-IPAddressAutoGeneratedDomainNameLabelScope ] [-IPAddressDnsNameLabel ] - [-IPAddressIP ] [-IPAddressPort ] [-IPAddressType ] + [-IPAddressAutoGeneratedDomainNameLabelScope ] [-IPAddressDnsNameLabel ] + [-IPAddressIP ] [-IPAddressPort ] [-IPAddressType ] [-ImageRegistryCredential ] [-InitContainer ] - [-Location ] [-LogAnalyticLogType ] [-LogAnalyticMetadata ] + [-Location ] [-LogAnalyticLogType ] [-LogAnalyticMetadata ] [-LogAnalyticWorkspaceId ] [-LogAnalyticWorkspaceKey ] - [-LogAnalyticWorkspaceResourceId ] [-Priority ] - [-RestartPolicy ] [-Sku ] [-Tag ] - [-Volume ] [-Zone ] [-DefaultProfile ] + [-LogAnalyticWorkspaceResourceId ] [-Priority ] [-RestartPolicy ] [-Sku ] + [-Tag ] [-Volume ] [-Zone ] [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonFilePath +``` +New-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### CreateViaJsonString +``` +New-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] [-WhatIf] [-Confirm] [] ``` ## DESCRIPTION -Create or update container group profiles with specified configurations. +Create container group profiles with specified configurations. ## EXAMPLES @@ -104,7 +118,7 @@ The base64 encoded confidential compute enforcement policy ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -116,11 +130,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 +164,7 @@ The keyvault managed identity. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -166,7 +179,7 @@ The encryption key name. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -181,7 +194,7 @@ The encryption key version. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -196,7 +209,7 @@ The keyvault base url. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -208,11 +221,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 +236,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 +251,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 +273,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 +289,7 @@ The Dns name label for the IP. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -294,7 +304,7 @@ The IP exposed to the public internet. ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -306,11 +316,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 +333,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 +344,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 +393,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 +409,7 @@ Metadata for log analytics. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -385,7 +424,7 @@ The workspace id for log analytics ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -400,7 +439,7 @@ The workspace key for log analytics ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -415,7 +454,7 @@ The workspace resource id for log analytics ```yaml Type: System.String -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -444,8 +483,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 +498,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 +530,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 +545,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 +577,7 @@ The resource tags. ```yaml Type: System.Collections.Hashtable -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -550,11 +589,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 +607,7 @@ The zones for the container group. ```yaml Type: System.String[] -Parameter Sets: (All) +Parameter Sets: CreateExpanded Aliases: Required: False @@ -617,7 +655,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/help/New-AzContainerInstanceEnvironmentVariableObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceEnvironmentVariableObject.md index 31866b159519..6c1df8c5cc3a 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceEnvironmentVariableObject.md +++ b/src/ContainerInstance/ContainerInstance/help/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/help/New-AzContainerInstanceHttpHeaderObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceHttpHeaderObject.md index 0678bf75d5cd..fcdbecde285f 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceHttpHeaderObject.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceHttpHeaderObject.md @@ -1,24 +1,24 @@ --- external help file: Az.ContainerInstance-help.xml 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 @@ -45,7 +45,7 @@ Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -53,7 +53,7 @@ Accept wildcard characters: False ``` ### -Value -The header value.. +The header value. ```yaml Type: System.String @@ -74,7 +74,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/help/New-AzContainerInstanceInitDefinitionObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceInitDefinitionObject.md index 36fa0a17fe48..e847a097ae32 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceInitDefinitionObject.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceInitDefinitionObject.md @@ -1,25 +1,28 @@ --- external help file: Az.ContainerInstance-help.xml 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 +41,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 +88,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 +131,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 +228,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/help/New-AzContainerInstanceNoDefaultObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceNoDefaultObject.md index 76739486b584..cdfbb74211cd 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceNoDefaultObject.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceNoDefaultObject.md @@ -1,22 +1,23 @@ --- external help file: Az.ContainerInstance-help.xml 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,14 @@ 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 +81,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 +127,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 +143,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 +262,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 +398,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 +442,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 +621,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 +718,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/help/New-AzContainerInstanceObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceObject.md index 53fdfc277ff9..fe1821b12e77 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceObject.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceObject.md @@ -1,21 +1,22 @@ --- external help file: Az.ContainerInstance-help.xml 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 [-Command ] - [-ConfigMapKeyValuePair ] [-EnvironmentVariable ] - [-LimitCpu ] [-LimitMemoryInGb ] [-LimitsGpuCount ] [-LimitsGpuSku ] +New-AzContainerInstanceObject -Name [-CapabilityAdd ] [-CapabilityDrop ] + [-Command ] [-ConfigMapKeyValuePair ] + [-EnvironmentVariable ] [-Image ] [-LimitCpu ] + [-LimitMemoryInGb ] [-LimitsGpuCount ] [-LimitsGpuSku ] [-LivenessProbeExecCommand ] [-LivenessProbeFailureThreshold ] [-LivenessProbeHttpGetHttpHeader ] [-LivenessProbeHttpGetPath ] [-LivenessProbeHttpGetPort ] [-LivenessProbeHttpGetScheme ] @@ -27,11 +28,14 @@ New-AzContainerInstanceObject -Image -Name [-Command ] [-ReadinessProbePeriodSecond ] [-ReadinessProbeSuccessThreshold ] [-ReadinessProbeTimeoutSecond ] [-RequestCpu ] [-RequestMemoryInGb ] [-RequestsGpuCount ] [-RequestsGpuSku ] - [-VolumeMount ] [] + [-SecurityContextAllowPrivilegeEscalation ] [-SecurityContextPrivileged ] + [-SecurityContextRunAsGroup ] [-SecurityContextRunAsUser ] + [-SecurityContextSeccompProfile ] [-VolumeMount ] + [] ``` ## DESCRIPTION -Create a in-memory object for Container +Create an in-memory object for Container. ## EXAMPLES @@ -77,6 +81,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 +127,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 +143,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: @@ -132,7 +164,7 @@ Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -230,11 +262,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 +398,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 +442,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 +621,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 +718,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/help/New-AzContainerInstancePortObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstancePortObject.md index 4dd8457e0f59..9333a7605f43 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstancePortObject.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstancePortObject.md @@ -1,14 +1,14 @@ --- external help file: Az.ContainerInstance-help.xml Module Name: Az.ContainerInstance -online version: https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstancePortObject +online version: https://learn.microsoft.com/powershell/module/Az.ContainerInstance/new-azcontainerinstanceportobject schema: 2.0.0 --- # New-AzContainerInstancePortObject ## SYNOPSIS -Create a in-memory object for ContainerPort +Create an in-memory object for ContainerPort. ## SYNTAX @@ -18,7 +18,7 @@ New-AzContainerInstancePortObject -Port [-Protocol ] ``` ## DESCRIPTION -Create a in-memory object for ContainerPort +Create an in-memory object for ContainerPort. ## EXAMPLES @@ -74,7 +74,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.ContainerPort +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.ContainerPort ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceVolumeMountObject.md b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceVolumeMountObject.md index 12851030d433..360332fb01b7 100644 --- a/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceVolumeMountObject.md +++ b/src/ContainerInstance/ContainerInstance/help/New-AzContainerInstanceVolumeMountObject.md @@ -1,14 +1,14 @@ --- external help file: Az.ContainerInstance-help.xml Module Name: Az.ContainerInstance -online version: https://learn.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceVolumeMountObject +online version: https://learn.microsoft.com/powershell/module/Az.ContainerInstance/new-azcontainerinstancevolumemountobject schema: 2.0.0 --- # New-AzContainerInstanceVolumeMountObject ## SYNOPSIS -Create a in-memory object for VolumeMount +Create an in-memory object for VolumeMount. ## SYNTAX @@ -18,7 +18,7 @@ New-AzContainerInstanceVolumeMountObject -MountPath -Name [-Re ``` ## DESCRIPTION -Create a in-memory object for VolumeMount +Create an in-memory object for VolumeMount. ## EXAMPLES @@ -90,7 +90,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.VolumeMount +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.VolumeMount ## NOTES diff --git a/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerGroup.md index 4438ba81fab5..b47c84dfba57 100644 --- a/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerGroup.md @@ -93,7 +93,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 @@ -224,7 +223,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/help/Remove-AzContainerInstanceContainerGroupProfile.md b/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerInstanceContainerGroupProfile.md index e784bdb40b7f..24019942ced6 100644 --- a/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerInstanceContainerGroupProfile.md +++ b/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerInstanceContainerGroupProfile.md @@ -67,7 +67,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/help/Remove-AzContainerInstanceSubnetServiceAssociationLink.md b/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerInstanceSubnetServiceAssociationLink.md index be37461c5281..a84d0271c489 100644 --- a/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerInstanceSubnetServiceAssociationLink.md +++ b/src/ContainerInstance/ContainerInstance/help/Remove-AzContainerInstanceSubnetServiceAssociationLink.md @@ -20,6 +20,13 @@ Remove-AzContainerInstanceSubnetServiceAssociationLink -ResourceGroupName ] ``` +### DeleteViaIdentityVirtualNetwork +``` +Remove-AzContainerInstanceSubnetServiceAssociationLink -SubnetName + -VirtualNetworkInputObject [-DefaultProfile ] [-AsJob] [-NoWait] + [-PassThru] [-WhatIf] [-Confirm] [] +``` + ### DeleteViaIdentity ``` Remove-AzContainerInstanceSubnetServiceAssociationLink -InputObject @@ -75,7 +82,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 @@ -140,7 +146,7 @@ The name of the subnet. ```yaml Type: System.String -Parameter Sets: Delete +Parameter Sets: Delete, DeleteViaIdentityVirtualNetwork Aliases: Required: True @@ -166,6 +172,21 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -VirtualNetworkInputObject +Identity Parameter + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity +Parameter Sets: DeleteViaIdentityVirtualNetwork +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + ### -VirtualNetworkName The name of the virtual network. diff --git a/src/ContainerInstance/ContainerInstance/help/Restart-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance/help/Restart-AzContainerGroup.md index 4e742c045a90..89ad12f2b0c7 100644 --- a/src/ContainerInstance/ContainerInstance/help/Restart-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance/help/Restart-AzContainerGroup.md @@ -9,7 +9,7 @@ schema: 2.0.0 ## SYNOPSIS 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. ## SYNTAX @@ -28,7 +28,7 @@ Restart-AzContainerGroup -InputObject [-DefaultProf ## DESCRIPTION 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. ## EXAMPLES @@ -81,7 +81,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/help/Start-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance/help/Start-AzContainerGroup.md index d5fbba4f32f4..6298bfd97fbd 100644 --- a/src/ContainerInstance/ContainerInstance/help/Start-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance/help/Start-AzContainerGroup.md @@ -81,7 +81,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/help/Stop-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance/help/Stop-AzContainerGroup.md index c5069c1c33d2..63b71cd2cd09 100644 --- a/src/ContainerInstance/ContainerInstance/help/Stop-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance/help/Stop-AzContainerGroup.md @@ -67,7 +67,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/help/Update-AzContainerGroup.md b/src/ContainerInstance/ContainerInstance/help/Update-AzContainerGroup.md index bbdff7be38a3..3c1e2704e408 100644 --- a/src/ContainerInstance/ContainerInstance/help/Update-AzContainerGroup.md +++ b/src/ContainerInstance/ContainerInstance/help/Update-AzContainerGroup.md @@ -8,7 +8,7 @@ schema: 2.0.0 # Update-AzContainerGroup ## SYNOPSIS -Updates container group tags with specified values. +Update container group tags with specified values. ## SYNTAX @@ -19,6 +19,20 @@ Update-AzContainerGroup -Name -ResourceGroupName [-Subscriptio [-WhatIf] [-Confirm] [] ``` +### UpdateViaJsonString +``` +Update-AzContainerGroup -Name -ResourceGroupName [-SubscriptionId ] + -JsonString [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### UpdateViaJsonFilePath +``` +Update-AzContainerGroup -Name -ResourceGroupName [-SubscriptionId ] + -JsonFilePath [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + ### UpdateViaIdentityExpanded ``` Update-AzContainerGroup -InputObject [-Location ] [-Tag ] @@ -27,7 +41,7 @@ Update-AzContainerGroup -InputObject [-Location -ResourceGroupNam [-WhatIf] [-Confirm] [] ``` +### PatchViaJsonString +``` +Update-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + [-SubscriptionId ] -JsonString [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + +### PatchViaJsonFilePath +``` +Update-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName + [-SubscriptionId ] -JsonFilePath [-DefaultProfile ] + [-WhatIf] [-Confirm] [] +``` + ### Patch ``` Update-AzContainerInstanceContainerGroupProfile -Name -ResourceGroupName @@ -72,7 +86,7 @@ AdditionalProperties : {[k, v]} Count : 1 ``` -This command updates a container group profile using pipeing. +This command updates a container group profile using piping. ## PARAMETERS @@ -94,7 +108,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 @@ -108,12 +121,42 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: False ``` +### -JsonFilePath +Path of Json file supplied to the Patch operation + +```yaml +Type: System.String +Parameter Sets: PatchViaJsonFilePath +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -JsonString +Json string supplied to the Patch operation + +```yaml +Type: System.String +Parameter Sets: PatchViaJsonString +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Name The name of the container group profile. ```yaml Type: System.String -Parameter Sets: PatchExpanded, Patch +Parameter Sets: PatchExpanded, PatchViaJsonString, PatchViaJsonFilePath, Patch Aliases: ContainerGroupProfileName Required: True @@ -125,10 +168,9 @@ Accept wildcard characters: False ### -Property Properties of container group profile that need to be patched -To construct, see NOTES section for PROPERTY properties and create a hash table. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch +Type: Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerGroupProfilePatch Parameter Sets: Patch, PatchViaIdentity Aliases: @@ -145,7 +187,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: PatchExpanded, Patch +Parameter Sets: PatchExpanded, PatchViaJsonString, PatchViaJsonFilePath, Patch Aliases: Required: True @@ -161,7 +203,7 @@ The value must be an UUID. ```yaml Type: System.String -Parameter Sets: PatchExpanded, Patch +Parameter Sets: PatchExpanded, PatchViaJsonString, PatchViaJsonFilePath, Patch Aliases: Required: False @@ -222,13 +264,13 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## INPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfilePatch +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerGroupProfilePatch ### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity ## OUTPUTS -### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20240501Preview.IContainerGroupProfile +### Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerGroupProfile ## NOTES