Fortinet
NSE8_812 · Question #177
NSE8_812 Question #177: Real Exam Question with Answer & Explanation
The correct answer is A. provider "fortios" { hostname = vsphere_virtual_machine.vm.default_ip_address token = "jn3T3BW7qckqzt9S5HtKfj5hwQ6jdb" insecure = "true" }. See the full explanation below for the reasoning.
Question
A customer wants to automate the creation and configuration of FortiGate VM instances in a VMware vCenter environment using Terraform. They have the creation part with working code shown in the exhibit. Which code snippet will allow Terraform to automatically connect to a newly deployed FortiGate if its IP was dynamically assigned by VMware NSX-T?
Options
- Aprovider "fortios" { hostname = vsphere_virtual_machine.vm.default_ip_address token = "jn3T3BW7qckqzt9S5HtKfj5hwQ6jdb" insecure = "true" }
- Bprovider "fortios" { hostname = module.vsphere_virtual_machine.default_ip_address token = "jn3T3BW7qckqzt9S5HtKfj5hwQ6jdb" insecure = "true" }
- Cprovider "fortinet_fortigate" { hostname = vsphere_virtual_machine.vm.default_ip_address token = "jn3T3BW7qckqzt9S5HtKfj5hwQ6jdb" insecure = "true" }
- Dprovider "fortinet_fortigate" { hostname = module.vsphere_virtual_machine.default_ip_address token = "jn3T3BW7qckqzt9S5HtKfj5hwQ6jdb" insecure = "true" }
Community Discussion
No community discussion yet for this question.