Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| Ambdós costats versió prèvia Revisió prèvia Següent revisió | Revisió prèvia | ||
| info:cursos:udemy:terraform-azure:conditionals-state-vm [30/03/2020 14:57] – mate | info:cursos:udemy:terraform-azure:conditionals-state-vm [14/04/2020 06:33] (actual) – [azure Market Place Images] mate | ||
|---|---|---|---|
| Línia 28: | Línia 28: | ||
| == conditionals | == conditionals | ||
| + | <sxh json; highlight: | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | </ | ||
| + | <sxh json; highlight: | ||
| + | variable " | ||
| + | |||
| + | resource " | ||
| + | name = " | ||
| + | location | ||
| + | resource_group_name | ||
| + | public_ip_address_allocation = " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| == azure Network Security Group | == azure Network Security Group | ||
| + | * traffic control | ||
| + | * like firewall | ||
| + | * default rules | ||
| + | * own rules | ||
| + | * scope (network, subnets, resources) | ||
| + | <sxh json; highlight: | ||
| + | resource " | ||
| + | name = " | ||
| + | location | ||
| + | resource_group_name | ||
| + | network_security_group_id = " | ||
| - | == azure Market | + | ip_configuration { |
| + | name = " | ||
| + | subnet_id | ||
| + | private_ip_address_allocation = " | ||
| + | public_ip_address_id | ||
| + | } | ||
| + | } | ||
| + | |||
| + | resource " | ||
| + | name = "RDP Inbound" | ||
| + | priority | ||
| + | direction | ||
| + | access | ||
| + | protocol | ||
| + | source_port_range | ||
| + | destination_port_range | ||
| + | source_address_prefix | ||
| + | destination_address_prefix | ||
| + | resource_group_name | ||
| + | network_security_group_name = " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | == azure Terraform state | ||
| + | * track and map deployed resources | ||
| + | * **terraform.tfstate**, | ||
| + | * metadata | ||
| + | * stored locally o remotely (to be shared, more security) | ||
| + | * sensitive data! | ||
| + | * don't edit this file, IMPORT | ||
| + | * [[https:// | ||
| + | |||
| + | == azure Market | ||
| + | * como obtener datos de las VM | ||
| + | * desde el template, en un RG en el que ya tenemos desplegada una máquina | ||
| + | * '' | ||
| + | * '' | ||
| + | * **MicrosoftWindowsServer** lo hemos sacado del comando anterior | ||
| + | * '' | ||
| + | * **WindowsServer** lo hemos sacado del listado anterior | ||
| + | * esto nos devuelve un listado con las versiones específicas | ||
| == azure Hardware Models | == azure Hardware Models | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * '' | ||
| == Azure Virtual Machine | == Azure Virtual Machine | ||
| + | * Hardware model | ||
| + | * Image | ||
| + | * Networking | ||
| + | * Disks | ||
| + | * Availability and Scale Sets | ||
| + | * <code properties> | ||
| + | name = " | ||
| + | location | ||
| + | resource_group_name | ||
| + | network_interface_ids = [" | ||
| + | vm_size | ||
| + | |||
| + | storage_image_reference { | ||
| + | publisher = " | ||
| + | offer = " | ||
| + | sku = " | ||
| + | version | ||
| + | } | ||
| + | |||
| + | storage_os_disk { | ||
| + | name = " | ||
| + | caching | ||
| + | create_option | ||
| + | managed_disk_type = " | ||
| + | } | ||
| + | |||
| + | os_profile { | ||
| + | computer_name | ||
| + | admin_username = " | ||
| + | admin_password = " | ||
| + | } | ||
| + | |||
| + | os_profile_windows_config { | ||
| + | | ||
| + | } | ||
| + | }</ | ||