How should you configure the deployment manifest?

DRAG DROP

You have an Azure IoT Edge device named Edge1.

You need to configure the module container to link the module storage to the host storage.

How should you configure the deployment manifest? To answer, drag the appropriate keys to the correct targets. Each key may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point.

Answer:

Explanation:

Graphical user interface, text, application, Word, email

Description automatically generated

Box 1: createOptions

Every module has a settings property that contains the module image, an address for the container image in a container registry, and any createOptions to configure the image on startup.

Box 2: portbindings

Use the PortBindings setting in the HostConfig group of the Docker container create options to map the exposed port in the module to a port on the host device.

For example, if you exposed port 8080 inside the module and want to map that to port 80 of the host device, the create options in the template.json file would look like the following example:

"createOptions": {

"HostConfig": {

"PortBindings": {

"8080/tcp": [

{

"HostPort": "80"

}

]

}

}

}

Latest AZ-220 Dumps Valid Version with 88 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments