You use the following Azure CLI command to create an Azure container instance:
az container create --resource-group testgroup --name testcontainer --image company1/c1app1
You need to be able to browse to the container's URL.
Which two parameters must you set?
You should set the --dns-name-label parameter. This parameter is necessary so that Azure can resolve the DNS name to the IP address that hosts the container instance.
You should set the --ports parameter. This parameter is necessary so that you can have Azure open the appropriate TCP ports. If the default ports are used, it can be omitted.
You do not need to set the --environment-variables parameter. This parameter allows you to set environment variables for container instances, which is unnecessary in this scenario.
You do not need to set the --os-type parameter. This parameter specifies the operating system for the container instance. The type of operating system is irrelevant in this scenario.
You do not need to set the --protocol parameter. This parameter specifies either TCP or UDP. When browsing from a web browser, the protocol is automatically TCP.