exports/ProxyCmdletDefinitions.ps1
# ---------------------------------------------------------------------------------- # # 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 Attach to the output stream of a specific container instance in a specified resource group and container group. .Description Attach to the output stream of a specific container instance in a specified resource group and container group. .Example PS C:\>Add-AzContainerInstanceOutput -GroupName $env.containerGroupName -Name $env.containerInstanceName -ResourceGroupName $env.resourceGroupName Add-AzContainerInstanceOutput -GroupName bez-cg2 -Name test-container -ResourceGroupName bez-rg Password WebSocketUri -------- ------------ ****************** wss://********.eastus.atlas.cloudapp.azure.com:19390/logstream/sessionId/00000000-0000-0000-0000-000000000000?api-version=1.0 .Outputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IContainerAttachResponse .Link https://docs.microsoft.com/powershell/module/az.containerinstance/add-azcontainerinstanceoutput #> function Add-AzContainerInstanceOutput { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IContainerAttachResponse])] [CmdletBinding(DefaultParameterSetName='Attach', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Alias('ContainerGroupName')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the container group. ${GroupName}, [Parameter(Mandatory)] [Alias('ContainerName')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the container instance. ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. ${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. ${SubscriptionId}, [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. ${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] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Attach = 'Az.ContainerInstance.private\Add-AzContainerInstanceOutput_Attach'; } if (('Attach') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. .Description Gets the properties of the specified container group in the specified subscription and resource group. The operation returns the properties of each container group including containers, image registry credentials, restart policy, IP address type, OS type, state, and volumes. .Example PS C:\> Get-AzContainerGroup Location Name Type -------- ---- ---- eastus bez-cg1 Microsoft.ContainerInstance/containerGroups eastus bez-cg2 Microsoft.ContainerInstance/containerGroups .Example PS C:\> Get-AzContainerGroup -Name test-cg1 -ResourceGroupName test-rg | fl Container : {test-container1} DnsConfigNameServer : DnsConfigOption : DnsConfigSearchDomain : EncryptionPropertyKeyName : EncryptionPropertyKeyVersion : EncryptionPropertyVaultBaseUrl : IPAddressDnsNameLabel : IPAddressFqdn : IPAddressIP : 000.000.000.000 IPAddressPort : {Microsoft.Azure.PowerShell.Cmdlets.ContainerInsta nce.Models.Api20210301.Port, Microsoft.Azure.Power Shell.Cmdlets.ContainerInstance.Models.Api20210301 .Port} IPAddressType : Public Id : /subscriptions/00000000-0000-0000-0000-000000000000 0/resourceGroups/test-rg/providers/Microsoft.Contai nerInstance/containerGroups/test-cg1 IdentityPrincipalId : IdentityTenantId : IdentityType : IdentityUserAssignedIdentity : Microsoft.Azure.PowerShell.Cmdlets.ContainerInstan ce.Models.Api20210301.ContainerGroupIdentityUserAs signedIdentities ImageRegistryCredentials : InitContainer : {} InstanceViewEvent : InstanceViewState : Location : eastus LogAnalyticLogType : LogAnalyticMetadata : Microsoft.Azure.PowerShell.Cmdlets.ContainerInstan ce.Models.Api20210301.LogAnalyticsMetadata LogAnalyticWorkspaceId : LogAnalyticWorkspaceKey : LogAnalyticWorkspaceResourceId : Microsoft.Azure.PowerShell.Cmdlets.ContainerInstan ce.Models.Api20210301.LogAnalyticsWorkspaceResourc eId Name : test-cg1 NetworkProfileId : OSType : Linux ProvisioningState : Succeeded RestartPolicy : Never Sku : Standard Tag : Microsoft.Azure.PowerShell.Cmdlets.ContainerInstan ce.Models.Api20210301.ResourceTags Type : Microsoft.ContainerInstance/containerGroups Volume : .Example PS C:\> Get-AzContainerGroup -ResourceGroupName test-rg Location Name Type -------- ---- ---- eastus bez-cg1 Microsoft.ContainerInstance/containerGroups eastus bez-cg2 Microsoft.ContainerInstance/containerGroups .Example PS C:\> Update-AzContainerGroup -Name test-cg1 -ResourceGroupName test-rg -Tag @{"test"="value"} | Get-AzContainerGroup Location Name Type -------- ---- ---- eastus test-cg1 Microsoft.ContainerInstance/containerGroups .Inputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IContainerGroup .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IContainerInstanceIdentity>: Identity Parameter [ContainerGroupName <String>]: The name of the container group. [ContainerName <String>]: The name of the container instance. [Id <String>]: Resource identity path [Location <String>]: The identifier for the physical azure location. [ResourceGroupName <String>]: The name of the resource group. [SubscriptionId <String>]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. .Link https://docs.microsoft.com/powershell/module/az.containerinstance/get-azcontainergroup #> function Get-AzContainerGroup { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IContainerGroup])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Alias('ContainerGroupName')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the container group. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List1', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] [Parameter(ParameterSetName='List')] [Parameter(ParameterSetName='List1')] [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. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [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. ${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] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Az.ContainerInstance.private\Get-AzContainerGroup_Get'; GetViaIdentity = 'Az.ContainerInstance.private\Get-AzContainerGroup_GetViaIdentity'; List = 'Az.ContainerInstance.private\Get-AzContainerGroup_List'; List1 = 'Az.ContainerInstance.private\Get-AzContainerGroup_List1'; } if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 Get the list of cached images on specific OS type for a subscription in a region. .Description Get the list of cached images on specific OS type for a subscription in a region. .Example PS C:\> Get-AzContainerInstanceCachedImage -Location eastus Image OSType ----- ------ microsoft/dotnet-framework:4.7.2-runtime-20181211-windowsservercore-ltsc2016 Windows microsoft/dotnet-framework:4.7.2-runtime-20190108-windowsservercore-ltsc2016 Windows microsoft/dotnet-framework:4.7.2-runtime-20190212-windowsservercore-ltsc2016 Windows ... .Outputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.ICachedImages .Link https://docs.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecachedimage #> function Get-AzContainerInstanceCachedImage { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.ICachedImages])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The identifier for the physical azure location. ${Location}, [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. ${SubscriptionId}, [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. ${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] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ List = 'Az.ContainerInstance.private\Get-AzContainerInstanceCachedImage_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 Get the list of CPU/memory/GPU capabilities of a region. .Description Get the list of CPU/memory/GPU capabilities of a region. .Example PS C:\> Get-AzContainerInstanceCapability -Location eastus Gpu IPAddressType Location OSType ResourceType --- ------------- -------- ------ ------------ None Public eastus NotSpecified containerGroups None Private eastus NotSpecified containerGroups None Public EASTUS Linux containerGroups None Private EASTUS Linux containerGroups K80 Public EASTUS Linux containerGroups P100 Public EASTUS Linux containerGroups V100 Public EASTUS Linux containerGroups None Public EASTUS Windows containerGroups .Outputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.ICapabilities .Link https://docs.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancecapability #> function Get-AzContainerInstanceCapability { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.ICapabilities])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The identifier for the physical azure location. ${Location}, [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. ${SubscriptionId}, [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. ${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] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ List = 'Az.ContainerInstance.private\Get-AzContainerInstanceCapability_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 Get the logs for a specified container instance in a specified resource group and container group. .Description Get the logs for a specified container instance in a specified resource group and container group. .Example PS C:\> Get-AzContainerInstanceLog -ContainerGroupName test-cg -ContainerName test-container -ResourceGroupName test-rg /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/ /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh /docker-entrypoint.sh: Configuration complete; ready for start up .Example PS C:\> Get-AzContainerInstanceLog -ContainerGroupName test-cg -ContainerName test-container -ResourceGroupName test-rg -Tail 2 /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh /docker-entrypoint.sh: Configuration complete; ready for start up .Outputs System.String .Link https://docs.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstancelog #> function Get-AzContainerInstanceLog { [OutputType([System.String])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the container group. ${ContainerGroupName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the container instance. ${ContainerName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. ${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. ${SubscriptionId}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Query')] [System.Int32] # The number of lines to show from the tail of the container instance log. # If not provided, all available logs are shown up to 4mb. ${Tail}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Query')] [System.Management.Automation.SwitchParameter] # If true, adds a timestamp at the beginning of every line of log output. # If not provided, defaults to false. ${Timestamp}, [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. ${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] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ List = 'Az.ContainerInstance.private\Get-AzContainerInstanceLog_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 Get the usage for a subscription .Description Get the usage for a subscription .Example PS C:\> Get-AzContainerInstanceUsage -Location eastus CurrentValue Limit Unit ------------ ----- ---- 9 100 Count 9 100 Count 1 48 Count 0 0 Count 0 0 Count 0 0 Count 0 3000 Count .Outputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IUsage .Link https://docs.microsoft.com/powershell/module/az.containerinstance/get-azcontainerinstanceusage #> function Get-AzContainerInstanceUsage { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IUsage])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The identifier for the physical azure location. ${Location}, [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. ${SubscriptionId}, [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. ${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] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ List = 'Az.ContainerInstance.private\Get-AzContainerInstanceUsage_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes. .Description Delete the specified container group in the specified subscription and resource group. The operation does not delete other resources provided by the user, such as volumes. .Example PS C:\> Remove-AzContainerGroup -Name test-cg -ResourceGroupName test-rg Location Name Type -------- ---- ---- eastus test-cg Microsoft.ContainerInstance/containerGroups .Example PS C:\> Get-AzContainerGroup -Name test-cg -ResourceGroupName bez-rg | Remove-AzContainerGroup Location Name Type -------- ---- ---- eastus test-cg Microsoft.ContainerInstance/containerGroups .Inputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IContainerGroup .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IContainerInstanceIdentity>: Identity Parameter [ContainerGroupName <String>]: The name of the container group. [ContainerName <String>]: The name of the container instance. [Id <String>]: Resource identity path [Location <String>]: The identifier for the physical azure location. [ResourceGroupName <String>]: The name of the resource group. [SubscriptionId <String>]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. .Link https://docs.microsoft.com/powershell/module/az.containerinstance/remove-azcontainergroup #> function Remove-AzContainerGroup { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IContainerGroup])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Alias('ContainerGroupName')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the container group. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [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. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [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. ${DefaultProfile}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command as a job ${AsJob}, [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()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command asynchronously ${NoWait}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [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] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Az.ContainerInstance.private\Remove-AzContainerGroup_Delete'; DeleteViaIdentity = 'Az.ContainerInstance.private\Remove-AzContainerGroup_DeleteViaIdentity'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 Starts all containers in a container group. Compute resources will be allocated and billing will start. .Description Starts all containers in a container group. Compute resources will be allocated and billing will start. .Example PS C:\> start-AzContainerGroup -Name test-cg -ResourceGroupName test-rg .Example PS C:\> Get-AzContainerGroup -Name test-cg -ResourceGroupName test-rg | Start-AzContainerGroup .Inputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IContainerInstanceIdentity>: Identity Parameter [ContainerGroupName <String>]: The name of the container group. [ContainerName <String>]: The name of the container instance. [Id <String>]: Resource identity path [Location <String>]: The identifier for the physical azure location. [ResourceGroupName <String>]: The name of the resource group. [SubscriptionId <String>]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. .Link https://docs.microsoft.com/powershell/module/az.containerinstance/start-azcontainergroup #> function Start-AzContainerGroup { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Start', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Start', Mandatory)] [Alias('ContainerGroupName')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the container group. ${Name}, [Parameter(ParameterSetName='Start', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. ${ResourceGroupName}, [Parameter(ParameterSetName='Start')] [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. ${SubscriptionId}, [Parameter(ParameterSetName='StartViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [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. ${DefaultProfile}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command as a job ${AsJob}, [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()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command asynchronously ${NoWait}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [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] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Start = 'Az.ContainerInstance.private\Start-AzContainerGroup_Start'; StartViaIdentity = 'Az.ContainerInstance.private\Start-AzContainerGroup_StartViaIdentity'; } if (('Start') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 Stops all containers in a container group. Compute resources will be deallocated and billing will stop. .Description Stops all containers in a container group. Compute resources will be deallocated and billing will stop. .Example PS C:\> Stop-AzContainerGroup -Name test-cg -ResourceGroupName test-rg .Example PS C:\> Get-AzContainerGroup -Name test-cg -ResourceGroupName test-rg | Stop-AzContainerGroup .Inputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IContainerInstanceIdentity>: Identity Parameter [ContainerGroupName <String>]: The name of the container group. [ContainerName <String>]: The name of the container instance. [Id <String>]: Resource identity path [Location <String>]: The identifier for the physical azure location. [ResourceGroupName <String>]: The name of the resource group. [SubscriptionId <String>]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. .Link https://docs.microsoft.com/powershell/module/az.containerinstance/stop-azcontainergroup #> function Stop-AzContainerGroup { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Stop', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Stop', Mandatory)] [Alias('ContainerGroupName')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the container group. ${Name}, [Parameter(ParameterSetName='Stop', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. ${ResourceGroupName}, [Parameter(ParameterSetName='Stop')] [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. ${SubscriptionId}, [Parameter(ParameterSetName='StopViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [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. ${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()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [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] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Stop = 'Az.ContainerInstance.private\Stop-AzContainerGroup_Stop'; StopViaIdentity = 'Az.ContainerInstance.private\Stop-AzContainerGroup_StopViaIdentity'; } if (('Stop') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 Updates container group tags with specified values. .Description Updates container group tags with specified values. .Example PS C:\> $container = Update-AzContainerGroup -Name test-cg -ResourceGroupName test-rg -Tag @{"k"="v"} PS C:\> $container.Tag | fl Keys : {k} Values : {v} AdditionalProperties : {[k, v]} Count : 1 .Example PS C:\> $container = Get-AzContainerGroup -Name test-cg -ResourceGroupName test-rg | Update-AzContainerGroup -Tag @{"k"="v"} PS C:\> $container.Tag | fl Keys : {k} Values : {v} AdditionalProperties : {[k, v]} Count : 1 .Inputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IContainerGroup .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IContainerInstanceIdentity>: Identity Parameter [ContainerGroupName <String>]: The name of the container group. [ContainerName <String>]: The name of the container instance. [Id <String>]: Resource identity path [Location <String>]: The identifier for the physical azure location. [ResourceGroupName <String>]: The name of the resource group. [SubscriptionId <String>]: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. .Link https://docs.microsoft.com/powershell/module/az.containerinstance/update-azcontainergroup #> function Update-AzContainerGroup { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IContainerGroup])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Alias('ContainerGroupName')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the container group. ${Name}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. ${ResourceGroupName}, [Parameter(ParameterSetName='UpdateExpanded')] [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. ${SubscriptionId}, [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.IContainerInstanceIdentity] # Identity Parameter # To construct, see NOTES section for INPUTOBJECT properties and create a hash table. ${InputObject}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The resource location. ${Location}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IResourceTags]))] [System.Collections.Hashtable] # The resource tags. ${Tag}, [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. ${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] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ UpdateExpanded = 'Az.ContainerInstance.private\Update-AzContainerGroup_UpdateExpanded'; UpdateViaIdentityExpanded = 'Az.ContainerInstance.private\Update-AzContainerGroup_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 Executes a command for a specific container instance in a specified resource group and container group. .Description Executes a command for a specific container instance in a specified resource group and container group. .Example PS C:\> Invoke-AzContainerInstanceCommand -ContainerGroupName test-cg -ContainerName test-container -ResourceGroupName test-rg -Command "echo hello" -TerminalSizeCol 12 -TerminalSizeRow 12 Password WebSocketUri -------- ------------ ****************** wss://bridge-linux-xx.eastus.management.azurecontainer.io/exec/caas-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/bridge-xxxxxxxxxxxxxxx?rows=12&cols=12api-version=2018-02-01-preview .Outputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IContainerExecResponse .Link https://docs.microsoft.com/powershell/module/az.containerinstance/invoke-azcontainerinstancecommand #> function Invoke-AzContainerInstanceCommand { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IContainerExecResponse])] [CmdletBinding(DefaultParameterSetName='ExecuteExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the container group. ${ContainerGroupName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the container instance. ${ContainerName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. ${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. ${SubscriptionId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The command to be executed. ${Command}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The column size of the terminal ${TerminalSizeCol}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The row size of the terminal ${TerminalSizeRow}, [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. ${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] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ ExecuteExpanded = 'Az.ContainerInstance.custom\Invoke-AzContainerInstanceCommand'; } if (('ExecuteExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 or update container groups with specified configurations. .Description Create or update container groups with specified configurations. .Example PS C:\> $port1 = New-AzContainerInstancePortObject -Port 8000 -Protocol TCP PS C:\> $port2 = New-AzContainerInstancePortObject -Port 8001 -Protocol TCP PS C:\> $container = New-AzContainerInstanceObject -Name test-container -Image nginx -RequestCpu 1 -RequestMemoryInGb 1.5 -Port @($port1, $port2) PS C:\> $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -OsType Linux -RestartPolicy "Never" -IpAddressType Public Location Name Type -------- ---- ---- eastus test-cg Microsoft.ContainerInstance/containerGroups .Example PS C:\> $env1 = New-AzContainerInstanceEnvironmentVariableObject -Name "env1" -Value "value1" PS C:\> $env2 = New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue (ConvertTo-SecureString -String "value2" -AsPlainText -Force) PS C:\> $container = New-AzContainerInstanceObject -Name test-container -Image alpine -Command "/bin/sh -c myscript.sh" -EnvironmentVariable @($env1, $env2) PS C:\> $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -OsType Linux Location Name Type -------- ---- ---- eastus test-cg Microsoft.ContainerInstance/containerGroups .Example PS C:\> $container = New-AzContainerInstanceObject -Name test-container -Image alpine -Command "echo hello" PS C:\> $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -OsType Linux Location Name Type -------- ---- ---- eastus test-cg Microsoft.ContainerInstance/containerGroups .Example PS C:\> $container = New-AzContainerInstanceObject -Name test-container -Image myacr.azurecr.io/nginx:latest PS C:\> $imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myacr.azurecr.io" -Username "username" -Password (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) PS C:\> $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential Location Name Type -------- ---- ---- eastus test-cg Microsoft.ContainerInstance/containerGroups .Example PS C:\> $container = New-AzContainerInstanceObject -Name test-container -Image myserver.com/nginx:latest PS C:\> $imageRegistryCredential = New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) PS C:\> $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -ImageRegistryCredential $imageRegistryCredential Location Name Type -------- ---- ---- eastus test-cg Microsoft.ContainerInstance/containerGroups .Example PS C:\> $volume = New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey (ConvertTo-SecureString "PlainTextPassword" -AsPlainText -Force) PS C:\> $container = New-AzContainerInstanceObject -Name test-container -Image alpine PS C:\> $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -Volume $volume Location Name Type -------- ---- ---- eastus test-cg Microsoft.ContainerInstance/containerGroups .Example PS C:\> $container = New-AzContainerInstanceObject -Name test-container -Image alpine PS C:\> $containerGroup = New-AzContainerGroup -ResourceGroupName test-rg -Name test-cg -Location eastus -Container $container -IdentityType "SystemAssigned, UserAssigned" -IdentityUserAssignedIdentity /subscriptions/<subscriptionId>/resourceGroups/<resourceGroup>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<UserIdentityName> Location Name Type -------- ---- ---- eastus test-cg Microsoft.ContainerInstance/containerGroups .Outputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IContainerGroup .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. CONTAINER <IContainer[]>: The containers within the container group. Image <String>: The name of the image used to create the container instance. Name <String>: The user-provided name of the container instance. RequestCpu <Double>: The CPU request of this container instance. RequestMemoryInGb <Double>: The memory request in GB of this container instance. [Command <String[]>]: The commands to execute within the container instance in exec form. [EnvironmentVariable <IEnvironmentVariable[]>]: The environment variables to set in the container instance. Name <String>: The name of the environment variable. [SecureValue <String>]: The value of the secure environment variable. [Value <String>]: The value of the environment variable. [LimitCpu <Double?>]: The CPU limit of this container instance. [LimitMemoryInGb <Double?>]: The memory limit in GB of this container instance. [LimitsGpuCount <Int32?>]: The count of the GPU resource. [LimitsGpuSku <GpuSku?>]: The SKU of the GPU resource. [LivenessProbeExecCommand <String[]>]: The commands to execute within the container. [LivenessProbeFailureThreshold <Int32?>]: The failure threshold. [LivenessProbeHttpGetHttpHeadersName <String>]: The header name. [LivenessProbeHttpGetHttpHeadersValue <String>]: The header value. [LivenessProbeHttpGetPath <String>]: The path to probe. [LivenessProbeHttpGetPort <Int32?>]: The port number to probe. [LivenessProbeHttpGetScheme <Scheme?>]: The scheme. [LivenessProbeInitialDelaySecond <Int32?>]: The initial delay seconds. [LivenessProbePeriodSecond <Int32?>]: The period seconds. [LivenessProbeSuccessThreshold <Int32?>]: The success threshold. [LivenessProbeTimeoutSecond <Int32?>]: The timeout seconds. [Port <IContainerPort[]>]: The exposed ports on the container instance. Port <Int32>: The port number exposed within the container group. [Protocol <ContainerNetworkProtocol?>]: The protocol associated with the port. [ReadinessProbeExecCommand <String[]>]: The commands to execute within the container. [ReadinessProbeFailureThreshold <Int32?>]: The failure threshold. [ReadinessProbeHttpGetHttpHeadersName <String>]: The header name. [ReadinessProbeHttpGetHttpHeadersValue <String>]: The header value. [ReadinessProbeHttpGetPath <String>]: The path to probe. [ReadinessProbeHttpGetPort <Int32?>]: The port number to probe. [ReadinessProbeHttpGetScheme <Scheme?>]: The scheme. [ReadinessProbeInitialDelaySecond <Int32?>]: The initial delay seconds. [ReadinessProbePeriodSecond <Int32?>]: The period seconds. [ReadinessProbeSuccessThreshold <Int32?>]: The success threshold. [ReadinessProbeTimeoutSecond <Int32?>]: The timeout seconds. [RequestsGpuCount <Int32?>]: The count of the GPU resource. [RequestsGpuSku <GpuSku?>]: The SKU of the GPU resource. [VolumeMount <IVolumeMount[]>]: The volume mounts available to the container instance. MountPath <String>: The path within the container where the volume should be mounted. Must not contain colon (:). Name <String>: The name of the volume mount. [ReadOnly <Boolean?>]: The flag indicating whether the volume mount is read-only. IMAGEREGISTRYCREDENTIAL <IImageRegistryCredential[]>: The image registry credentials by which the container group is created from. To construct, see NOTES section for IMAGEREGISTRYCREDENTIALS properties and create a hash table. Server <String>: The Docker image registry server without a protocol such as "http" and "https". Username <String>: The username for the private registry. [Password <String>]: The password for the private registry. INITCONTAINER <IInitContainerDefinition[]>: The init containers for a container group. Name <String>: The name for the init container. [Command <String[]>]: The command to execute within the init container in exec form. [EnvironmentVariable <IEnvironmentVariable[]>]: The environment variables to set in the init container. Name <String>: The name of the environment variable. [SecureValue <String>]: The value of the secure environment variable. [Value <String>]: The value of the environment variable. [Image <String>]: The image of the init container. [VolumeMount <IVolumeMount[]>]: The volume mounts available to the init container. MountPath <String>: The path within the container where the volume should be mounted. Must not contain colon (:). Name <String>: The name of the volume mount. [ReadOnly <Boolean?>]: The flag indicating whether the volume mount is read-only. IPADDRESSPORT <IPort[]>: The list of ports exposed on the container group. Port1 <Int32>: The port number. [Protocol <ContainerGroupNetworkProtocol?>]: The protocol associated with the port. VOLUME <IVolume[]>: The list of volumes that can be mounted by containers in this container group. Name <String>: The name of the volume. [AzureFileReadOnly <Boolean?>]: The flag indicating whether the Azure File shared mounted as a volume is read-only. [AzureFileShareName <String>]: The name of the Azure File share to be mounted as a volume. [AzureFileStorageAccountKey <String>]: The storage account access key used to access the Azure File share. [AzureFileStorageAccountName <String>]: The name of the storage account that contains the Azure File share. [EmptyDir <IAny>]: The empty directory volume. [GitRepoDirectory <String>]: 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. [GitRepoRepository <String>]: Repository URL [GitRepoRevision <String>]: Commit hash for the specified revision. [Secret <ISecretVolume>]: The secret volume. [(Any) <String>]: This indicates any property can be added to this object. .Link https://docs.microsoft.com/powershell/module/az.containerinstance/new-azcontainergroup #> function New-AzContainerGroup { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IContainerGroup])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Alias('ContainerGroupName')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the container group. ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Path')] [System.String] # The name of the resource group. ${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. ${SubscriptionId}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IContainer[]] # The containers within the container group. # To construct, see NOTES section for CONTAINER properties and create a hash table. ${Container}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The resource location. ${Location}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.OperatingSystemTypes])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The operating system type required by the containers in the container group. ${OSType}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String[]] # The DNS servers for the container group. ${DnsConfigNameServer}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The DNS options for the container group. ${DnsConfigOption}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The DNS search domains for hostname lookup in the container group. ${DnsConfigSearchDomain}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The encryption key name. ${EncryptionPropertyKeyName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The encryption key version. ${EncryptionPropertyKeyVersion}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The keyvault base url. ${EncryptionPropertyVaultBaseUrl}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The Dns name label for the IP. ${IPAddressDnsNameLabel}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The IP exposed to the public internet. ${IPAddressIP}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.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])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [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')] [System.String] # 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.Api20210301.IContainerGroupIdentityUserAssignedIdentities]))] [System.String[]] # 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()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IImageRegistryCredential[]] # The image registry credentials by which the container group is created from. # To construct, see NOTES section for IMAGEREGISTRYCREDENTIALS properties and create a hash table. # To construct, see NOTES section for IMAGEREGISTRYCREDENTIAL properties and create a hash table. ${ImageRegistryCredential}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IInitContainerDefinition[]] # The init containers for a container group. # To construct, see NOTES section for INITCONTAINER properties and create a hash table. ${InitContainer}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.LogAnalyticsLogType])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The log type to be used. ${LogAnalyticLogType}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.ILogAnalyticsMetadata]))] [System.Collections.Hashtable] # Metadata for log analytics. ${LogAnalyticMetadata}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The workspace id for log analytics ${LogAnalyticWorkspaceId}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The workspace key for log analytics ${LogAnalyticWorkspaceKey}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.ILogAnalyticsWorkspaceResourceId]))] [System.Collections.Hashtable] # The workspace resource id for log analytics ${LogAnalyticWorkspaceResourceId}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The identifier for a network profile. ${NetworkProfileId}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupRestartPolicy])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [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])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The SKU for a container group. ${Sku}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IResourceTags]))] [System.Collections.Hashtable] # The resource tags. ${Tag}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.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()] [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. ${DefaultProfile}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command as a job ${AsJob}, [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()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command asynchronously ${NoWait}, [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] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ CreateExpanded = 'Az.ContainerInstance.custom\New-AzContainerGroup'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 ImageRegistryCredential .Description Create a in-memory object for ImageRegistryCredential .Example PS C:\> New-AzContainerGroupImageRegistryCredentialObject -Server "myserver.com" -Username "username" -Password (ConvertTo-SecureString "******" -AsPlainText -Force) Password Server Username -------- ------ -------- ****** myserver.com username .Outputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.ImageRegistryCredential .Link https://docs.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerGroupImageRegistryCredentialObject #> function New-AzContainerGroupImageRegistryCredentialObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.ImageRegistryCredential])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The Docker image registry server without a protocol such as "http" and "https". ${Server}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The username for the private registry. ${Username}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Security.SecureString] # The password for the private registry. ${Password} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ __AllParameterSets = 'Az.ContainerInstance.custom\New-AzContainerGroupImageRegistryCredentialObject'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 Port .Description Create a in-memory object for Port .Example PS C:\> New-AzContainerGroupPortObject -Port 8000 -Protocol TCP Port1 Protocol ----- -------- 8000 TCP .Outputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.Port .Link https://docs.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerGroupPortObject #> function New-AzContainerGroupPortObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.Port])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The port number. ${Port}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerGroupNetworkProtocol])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The protocol associated with the port. ${Protocol} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ __AllParameterSets = 'Az.ContainerInstance.custom\New-AzContainerGroupPortObject'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 Volume .Description Create a in-memory object for Volume .Example PS C:\> New-AzContainerGroupVolumeObject -Name "myvolume" -AzureFileShareName "myshare" -AzureFileStorageAccountName "username" -AzureFileStorageAccountKey (ConvertTo-SecureString "******" -AsPlainText -Force) ****** Name ---- myvolume .Outputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.Volume .Link https://docs.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerGroupVolumeObject #> function New-AzContainerGroupVolumeObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.Volume])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The name of the volume. ${Name}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Management.Automation.SwitchParameter] # The flag indicating whether the Azure File shared mounted as a volume is read-only. ${AzureFileReadOnly}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The name of the Azure File share to be mounted as a volume. ${AzureFileShareName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Security.SecureString] # The storage account access key used to access the Azure File share. ${AzureFileStorageAccountKey}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The name of the storage account that contains the Azure File share. ${AzureFileStorageAccountName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # 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. ${GitRepoDirectoryName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # Repository URL. ${GitRepoRepositoryUrl}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # Commit hash for the specified revision. ${GitRepoRevision} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ __AllParameterSets = 'Az.ContainerInstance.custom\New-AzContainerGroupVolumeObject'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 EnvironmentVariable .Description Create a in-memory object for EnvironmentVariable .Example PS C:\> {{ Add code here }} New-AzContainerInstanceEnvironmentVariableObject -Name "env1" -Value "value1" Name SecureValue Value ---- ----------- ----- env1 value1 .Example PS C:\> New-AzContainerInstanceEnvironmentVariableObject -Name "env2" -SecureValue (ConvertTo-SecureString -String "******" -AsPlainText -Force) Name SecureValue Value ---- ----------- ----- env2 ****** .Outputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.EnvironmentVariable .Link https://docs.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceEnvironmentVariableObject #> function New-AzContainerInstanceEnvironmentVariableObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.EnvironmentVariable])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The name of the environment variable. ${Name}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Security.SecureString] # The value of the secure environment variable. ${SecureValue}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The value of the environment variable. ${Value} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ __AllParameterSets = 'Az.ContainerInstance.custom\New-AzContainerInstanceEnvironmentVariableObject'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 .Example PS C:\> New-AzContainerInstanceInitDefinitionObject -Name "initDefinition" -Command "/bin/sh -c myscript.sh" Name ---- initDefinition .Outputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.InitContainerDefinition .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. ENVIRONMENTVARIABLE <IEnvironmentVariable[]>: The environment variables to set in the init container. Name <String>: The name of the environment variable. [SecureValue <String>]: The value of the secure environment variable. [Value <String>]: The value of the environment variable. VOLUMEMOUNT <IVolumeMount[]>: The volume mounts available to the init container. MountPath <String>: The path within the container where the volume should be mounted. Must not contain colon (:). Name <String>: The name of the volume mount. [ReadOnly <Boolean?>]: The flag indicating whether the volume mount is read-only. .Link https://docs.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceInitDefinitionObject #> function New-AzContainerInstanceInitDefinitionObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.InitContainerDefinition])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The name for the init container. ${Name}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String[]] # The command to execute within the init container in exec form. ${Command}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IEnvironmentVariable[]] # The environment variables to set in the init container. # To construct, see NOTES section for ENVIRONMENTVARIABLE properties and create a hash table. ${EnvironmentVariable}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The image of the init container. ${Image}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IVolumeMount[]] # The volume mounts available to the init container. # To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ${VolumeMount} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ __AllParameterSets = 'Az.ContainerInstance.custom\New-AzContainerInstanceInitDefinitionObject'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 .Example PS C:\> New-AzContainerInstanceObject -Name "test-container" -Image alpine -RequestCpu 1 -RequestMemoryInGb 1.5 Name ---- test-container .Example PS C:\> {{ Add code here }} {{ Add output here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.Container .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. ENVIRONMENTVARIABLE <IEnvironmentVariable[]>: The environment variables to set in the container instance. Name <String>: The name of the environment variable. [SecureValue <String>]: The value of the secure environment variable. [Value <String>]: The value of the environment variable. PORT <IContainerPort[]>: The exposed ports on the container instance. Port <Int32>: The port number exposed within the container group. [Protocol <ContainerNetworkProtocol?>]: The protocol associated with the port. VOLUMEMOUNT <IVolumeMount[]>: The volume mounts available to the container instance. MountPath <String>: The path within the container where the volume should be mounted. Must not contain colon (:). Name <String>: The name of the volume mount. [ReadOnly <Boolean?>]: The flag indicating whether the volume mount is read-only. .Link https://docs.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceObject #> function New-AzContainerInstanceObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.Container])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The name of the image used to create the container instance. ${Image}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The user-provided name of the container instance. ${Name}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String[]] # The commands to execute within the container instance in exec form. ${Command}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IEnvironmentVariable[]] # The environment variables to set in the container instance. # To construct, see NOTES section for ENVIRONMENTVARIABLE properties and create a hash table. ${EnvironmentVariable}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Double] # The CPU limit of this container instance. ${LimitCpu}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Double] # The memory limit in GB of this container instance. ${LimitMemoryInGb}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The count of the GPU resource. ${LimitsGpuCount}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The SKU of the GPU resource. ${LimitsGpuSku}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String[]] # The commands to execute within the container. ${LivenessProbeExecCommand}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The failure threshold. ${LivenessProbeFailureThreshold}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The header name. ${LivenessProbeHttpGetHttpHeadersName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The header value. ${LivenessProbeHttpGetHttpHeadersValue}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The path to probe. ${LivenessProbeHttpGetPath}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The port number to probe. ${LivenessProbeHttpGetPort}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The scheme. ${LivenessProbeHttpGetScheme}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The initial delay seconds. ${LivenessProbeInitialDelaySecond}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The period seconds. ${LivenessProbePeriodSecond}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The success threshold. ${LivenessProbeSuccessThreshold}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The timeout seconds. ${LivenessProbeTimeoutSecond}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IContainerPort[]] # The exposed ports on the container instance. # To construct, see NOTES section for PORT properties and create a hash table. ${Port}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String[]] # The commands to execute within the container. ${ReadinessProbeExecCommand}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The failure threshold. ${ReadinessProbeFailureThreshold}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The header name. ${ReadinessProbeHttpGetHttpHeadersName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The header value. ${ReadinessProbeHttpGetHttpHeadersValue}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The path to probe. ${ReadinessProbeHttpGetPath}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The port number to probe. ${ReadinessProbeHttpGetPort}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.Scheme])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The scheme. ${ReadinessProbeHttpGetScheme}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The initial delay seconds. ${ReadinessProbeInitialDelaySecond}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The period seconds. ${ReadinessProbePeriodSecond}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The success threshold. ${ReadinessProbeSuccessThreshold}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The timeout seconds. ${ReadinessProbeTimeoutSecond}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Double] # The CPU request of this container instance. ${RequestCpu}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Double] # The memory request in GB of this container instance. ${RequestMemoryInGb}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The count of the GPU resource. ${RequestsGpuCount}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.GpuSku])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The SKU of the GPU resource. ${RequestsGpuSku}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.IVolumeMount[]] # The volume mounts available to the container instance. # To construct, see NOTES section for VOLUMEMOUNT properties and create a hash table. ${VolumeMount} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ __AllParameterSets = 'Az.ContainerInstance.custom\New-AzContainerInstanceObject'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 ContainerPort .Description Create a in-memory object for ContainerPort .Example PS C:\> New-AzContainerInstancePortObject -Port 8000 -Protocol TCP Port Protocol ----- -------- 8000 TCP .Outputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.ContainerPort .Link https://docs.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstancePortObject #> function New-AzContainerInstancePortObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.ContainerPort])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Int32] # The port number exposed within the container group. ${Port}, [Parameter()] [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Support.ContainerNetworkProtocol])] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The protocol associated with the port. ${Protocol} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ __AllParameterSets = 'Az.ContainerInstance.custom\New-AzContainerInstancePortObject'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # ---------------------------------------------------------------------------------- # # 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 VolumeMount .Description Create a in-memory object for VolumeMount .Example PS C:\> New-AzContainerInstanceVolumeMountObject -Name "mnt" -MountPath "/mnt/azfile" -ReadOnly $true MountPath Name ReadOnly --------- ---- -------- /mnt/azfile mnt True .Outputs Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.VolumeMount .Link https://docs.microsoft.com/powershell/module/az.ContainerInstance/new-AzContainerInstanceVolumeMountObject #> function New-AzContainerInstanceVolumeMountObject { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Models.Api20210301.VolumeMount])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The path within the container where the volume should be mounted. # Must not contain colon (:). ${MountPath}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.String] # The name of the volume mount. ${Name}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.ContainerInstance.Category('Body')] [System.Boolean] # The flag indicating whether the volume mount is read-only. ${ReadOnly} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ __AllParameterSets = 'Az.ContainerInstance.custom\New-AzContainerInstanceVolumeMountObject'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # SIG # Begin signature block # MIIjnwYJKoZIhvcNAQcCoIIjkDCCI4wCAQExDzANBglghkgBZQMEAgEFADB5Bgor # BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG # KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDb8IntrVZK7gTf # KHTu3LOmnOipzm4D5tk3yYJMzHO/JKCCDYEwggX/MIID56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