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 :