azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

New-AzContainerGroup does not setting Ports

Open monika3376 opened this issue 7 years ago • 0 comments

Az version: 2.6.0 New-AzContainerGroup -ResourceGroupName $resourceGroupName -Name $name -Image $image -Location $location -OsType $osType ` -RestartPolicy $restartPolicy -Cpu $cpu -MemoryInGB $memory -Port @(8000)

Result: ResourceGroupName : Id : /subscriptions//resourceGroups//providers/Microsoft.ContainerInstance/containerGroups/ Name : Type : Microsoft.ContainerInstance/containerGroups Location : East US Tags : ProvisioningState : Succeeded Containers : {testazure} ImageRegistryCredentials : RestartPolicy : OnFailure IpAddress : DnsNameLabel : Fqdn : Ports : OsType : Linux Volumes : State : Running Events : {} Identity :

monika3376 avatar Sep 04 '19 12:09 monika3376