You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"azurerm_virtual_machine_scale_set" {
source="./modules/azurerm/r/azurerm_virtual_machine_scale_set"# automatic_os_upgrade - (optional) is a type of boolautomatic_os_upgrade=null# eviction_policy - (optional) is a type of stringeviction_policy=null# health_probe_id - (optional) is a type of stringhealth_probe_id=null# license_type - (optional) is a type of stringlicense_type=null# location - (required) is a type of stringlocation=null# name - (required) is a type of stringname=null# overprovision - (optional) is a type of booloverprovision=null# priority - (optional) is a type of stringpriority=null# proximity_placement_group_id - (optional) is a type of stringproximity_placement_group_id=null# resource_group_name - (required) is a type of stringresource_group_name=null# single_placement_group - (optional) is a type of boolsingle_placement_group=null# tags - (optional) is a type of map of stringtags={}
# upgrade_policy_mode - (required) is a type of stringupgrade_policy_mode=null# zones - (optional) is a type of list of stringzones=[]
boot_diagnostics=[{
enabled =null
storage_uri =null
}]
extension=[{
auto_upgrade_minor_version =null
name =null
protected_settings =null
provision_after_extensions = []
publisher =null
settings =null
type =null
type_handler_version =null
}]
identity=[{
identity_ids = []
principal_id =null
type =null
}]
network_profile=[{
accelerated_networking =null
dns_settings = [{
dns_servers = []
}]
ip_configuration = [{
application_gateway_backend_address_pool_ids = []
application_security_group_ids = []
load_balancer_backend_address_pool_ids = []
load_balancer_inbound_nat_rules_ids = []
name =null
primary =null
public_ip_address_configuration = [{
domain_name_label =null
idle_timeout =null
name =null
}]
subnet_id =null
}]
ip_forwarding =null
name =null
network_security_group_id =null
primary =null
}]
os_profile=[{
admin_password =null
admin_username =null
computer_name_prefix =null
custom_data =null
}]
os_profile_linux_config=[{
disable_password_authentication =null
ssh_keys = [{
key_data =null
path =null
}]
}]
os_profile_secrets=[{
source_vault_id =null
vault_certificates = [{
certificate_store =null
certificate_url =null
}]
}]
os_profile_windows_config=[{
additional_unattend_config = [{
component =null
content =null
pass =null
setting_name =null
}]
enable_automatic_upgrades =null
provision_vm_agent =null
winrm = [{
certificate_url =null
protocol =null
}]
}]
plan=[{
name =null
product =null
publisher =null
}]
rolling_upgrade_policy=[{
max_batch_instance_percent =null
max_unhealthy_instance_percent =null
max_unhealthy_upgraded_instance_percent =null
pause_time_between_batches =null
}]
sku=[{
capacity =null
name =null
tier =null
}]
storage_profile_data_disk=[{
caching =null
create_option =null
disk_size_gb =null
lun =null
managed_disk_type =null
}]
storage_profile_image_reference=[{
id =null
offer =null
publisher =null
sku =null
version =null
}]
storage_profile_os_disk=[{
caching =null
create_option =null
image =null
managed_disk_type =null
name =null
os_type =null
vhd_containers = []
}]
timeouts=[{
create =null
delete =null
read =null
update =null
}]
}
resource"azurerm_virtual_machine_scale_set""this" {
# automatic_os_upgrade - (optional) is a type of boolautomatic_os_upgrade=var.automatic_os_upgrade# eviction_policy - (optional) is a type of stringeviction_policy=var.eviction_policy# health_probe_id - (optional) is a type of stringhealth_probe_id=var.health_probe_id# license_type - (optional) is a type of stringlicense_type=var.license_type# location - (required) is a type of stringlocation=var.location# name - (required) is a type of stringname=var.name# overprovision - (optional) is a type of booloverprovision=var.overprovision# priority - (optional) is a type of stringpriority=var.priority# proximity_placement_group_id - (optional) is a type of stringproximity_placement_group_id=var.proximity_placement_group_id# resource_group_name - (required) is a type of stringresource_group_name=var.resource_group_name# single_placement_group - (optional) is a type of boolsingle_placement_group=var.single_placement_group# tags - (optional) is a type of map of stringtags=var.tags# upgrade_policy_mode - (required) is a type of stringupgrade_policy_mode=var.upgrade_policy_mode# zones - (optional) is a type of list of stringzones=var.zonesdynamic"boot_diagnostics" {
for_each=var.boot_diagnosticscontent {
# enabled - (optional) is a type of boolenabled=boot_diagnostics.value["enabled"]
# storage_uri - (required) is a type of stringstorage_uri=boot_diagnostics.value["storage_uri"]
}
}
dynamic"extension" {
for_each=var.extensioncontent {
# auto_upgrade_minor_version - (optional) is a type of boolauto_upgrade_minor_version=extension.value["auto_upgrade_minor_version"]
# name - (required) is a type of stringname=extension.value["name"]
# protected_settings - (optional) is a type of stringprotected_settings=extension.value["protected_settings"]
# provision_after_extensions - (optional) is a type of set of stringprovision_after_extensions=extension.value["provision_after_extensions"]
# publisher - (required) is a type of stringpublisher=extension.value["publisher"]
# settings - (optional) is a type of stringsettings=extension.value["settings"]
# type - (required) is a type of stringtype=extension.value["type"]
# type_handler_version - (required) is a type of stringtype_handler_version=extension.value["type_handler_version"]
}
}
dynamic"identity" {
for_each=var.identitycontent {
# identity_ids - (optional) is a type of list of stringidentity_ids=identity.value["identity_ids"]
# type - (required) is a type of stringtype=identity.value["type"]
}
}
dynamic"network_profile" {
for_each=var.network_profilecontent {
# accelerated_networking - (optional) is a type of boolaccelerated_networking=network_profile.value["accelerated_networking"]
# ip_forwarding - (optional) is a type of boolip_forwarding=network_profile.value["ip_forwarding"]
# name - (required) is a type of stringname=network_profile.value["name"]
# network_security_group_id - (optional) is a type of stringnetwork_security_group_id=network_profile.value["network_security_group_id"]
# primary - (required) is a type of boolprimary=network_profile.value["primary"]
dynamic"dns_settings" {
for_each=network_profile.value.dns_settingscontent {
# dns_servers - (required) is a type of list of stringdns_servers=dns_settings.value["dns_servers"]
}
}
dynamic"ip_configuration" {
for_each=network_profile.value.ip_configurationcontent {
# application_gateway_backend_address_pool_ids - (optional) is a type of set of stringapplication_gateway_backend_address_pool_ids=ip_configuration.value["application_gateway_backend_address_pool_ids"]
# application_security_group_ids - (optional) is a type of set of stringapplication_security_group_ids=ip_configuration.value["application_security_group_ids"]
# load_balancer_backend_address_pool_ids - (optional) is a type of set of stringload_balancer_backend_address_pool_ids=ip_configuration.value["load_balancer_backend_address_pool_ids"]
# load_balancer_inbound_nat_rules_ids - (optional) is a type of set of stringload_balancer_inbound_nat_rules_ids=ip_configuration.value["load_balancer_inbound_nat_rules_ids"]
# name - (required) is a type of stringname=ip_configuration.value["name"]
# primary - (required) is a type of boolprimary=ip_configuration.value["primary"]
# subnet_id - (required) is a type of stringsubnet_id=ip_configuration.value["subnet_id"]
dynamic"public_ip_address_configuration" {
for_each=ip_configuration.value.public_ip_address_configurationcontent {
# domain_name_label - (required) is a type of stringdomain_name_label=public_ip_address_configuration.value["domain_name_label"]
# idle_timeout - (required) is a type of numberidle_timeout=public_ip_address_configuration.value["idle_timeout"]
# name - (required) is a type of stringname=public_ip_address_configuration.value["name"]
}
}
}
}
}
}
dynamic"os_profile" {
for_each=var.os_profilecontent {
# admin_password - (optional) is a type of stringadmin_password=os_profile.value["admin_password"]
# admin_username - (required) is a type of stringadmin_username=os_profile.value["admin_username"]
# computer_name_prefix - (required) is a type of stringcomputer_name_prefix=os_profile.value["computer_name_prefix"]
# custom_data - (optional) is a type of stringcustom_data=os_profile.value["custom_data"]
}
}
dynamic"os_profile_linux_config" {
for_each=var.os_profile_linux_configcontent {
# disable_password_authentication - (optional) is a type of booldisable_password_authentication=os_profile_linux_config.value["disable_password_authentication"]
dynamic"ssh_keys" {
for_each=os_profile_linux_config.value.ssh_keyscontent {
# key_data - (optional) is a type of stringkey_data=ssh_keys.value["key_data"]
# path - (required) is a type of stringpath=ssh_keys.value["path"]
}
}
}
}
dynamic"os_profile_secrets" {
for_each=var.os_profile_secretscontent {
# source_vault_id - (required) is a type of stringsource_vault_id=os_profile_secrets.value["source_vault_id"]
dynamic"vault_certificates" {
for_each=os_profile_secrets.value.vault_certificatescontent {
# certificate_store - (optional) is a type of stringcertificate_store=vault_certificates.value["certificate_store"]
# certificate_url - (required) is a type of stringcertificate_url=vault_certificates.value["certificate_url"]
}
}
}
}
dynamic"os_profile_windows_config" {
for_each=var.os_profile_windows_configcontent {
# enable_automatic_upgrades - (optional) is a type of boolenable_automatic_upgrades=os_profile_windows_config.value["enable_automatic_upgrades"]
# provision_vm_agent - (optional) is a type of boolprovision_vm_agent=os_profile_windows_config.value["provision_vm_agent"]
dynamic"additional_unattend_config" {
for_each=os_profile_windows_config.value.additional_unattend_configcontent {
# component - (required) is a type of stringcomponent=additional_unattend_config.value["component"]
# content - (required) is a type of stringcontent=additional_unattend_config.value["content"]
# pass - (required) is a type of stringpass=additional_unattend_config.value["pass"]
# setting_name - (required) is a type of stringsetting_name=additional_unattend_config.value["setting_name"]
}
}
dynamic"winrm" {
for_each=os_profile_windows_config.value.winrmcontent {
# certificate_url - (optional) is a type of stringcertificate_url=winrm.value["certificate_url"]
# protocol - (required) is a type of stringprotocol=winrm.value["protocol"]
}
}
}
}
dynamic"plan" {
for_each=var.plancontent {
# name - (required) is a type of stringname=plan.value["name"]
# product - (required) is a type of stringproduct=plan.value["product"]
# publisher - (required) is a type of stringpublisher=plan.value["publisher"]
}
}
dynamic"rolling_upgrade_policy" {
for_each=var.rolling_upgrade_policycontent {
# max_batch_instance_percent - (optional) is a type of numbermax_batch_instance_percent=rolling_upgrade_policy.value["max_batch_instance_percent"]
# max_unhealthy_instance_percent - (optional) is a type of numbermax_unhealthy_instance_percent=rolling_upgrade_policy.value["max_unhealthy_instance_percent"]
# max_unhealthy_upgraded_instance_percent - (optional) is a type of numbermax_unhealthy_upgraded_instance_percent=rolling_upgrade_policy.value["max_unhealthy_upgraded_instance_percent"]
# pause_time_between_batches - (optional) is a type of stringpause_time_between_batches=rolling_upgrade_policy.value["pause_time_between_batches"]
}
}
dynamic"sku" {
for_each=var.skucontent {
# capacity - (required) is a type of numbercapacity=sku.value["capacity"]
# name - (required) is a type of stringname=sku.value["name"]
# tier - (optional) is a type of stringtier=sku.value["tier"]
}
}
dynamic"storage_profile_data_disk" {
for_each=var.storage_profile_data_diskcontent {
# caching - (optional) is a type of stringcaching=storage_profile_data_disk.value["caching"]
# create_option - (required) is a type of stringcreate_option=storage_profile_data_disk.value["create_option"]
# disk_size_gb - (optional) is a type of numberdisk_size_gb=storage_profile_data_disk.value["disk_size_gb"]
# lun - (required) is a type of numberlun=storage_profile_data_disk.value["lun"]
# managed_disk_type - (optional) is a type of stringmanaged_disk_type=storage_profile_data_disk.value["managed_disk_type"]
}
}
dynamic"storage_profile_image_reference" {
for_each=var.storage_profile_image_referencecontent {
# id - (optional) is a type of stringid=storage_profile_image_reference.value["id"]
# offer - (optional) is a type of stringoffer=storage_profile_image_reference.value["offer"]
# publisher - (optional) is a type of stringpublisher=storage_profile_image_reference.value["publisher"]
# sku - (optional) is a type of stringsku=storage_profile_image_reference.value["sku"]
# version - (optional) is a type of stringversion=storage_profile_image_reference.value["version"]
}
}
dynamic"storage_profile_os_disk" {
for_each=var.storage_profile_os_diskcontent {
# caching - (optional) is a type of stringcaching=storage_profile_os_disk.value["caching"]
# create_option - (required) is a type of stringcreate_option=storage_profile_os_disk.value["create_option"]
# image - (optional) is a type of stringimage=storage_profile_os_disk.value["image"]
# managed_disk_type - (optional) is a type of stringmanaged_disk_type=storage_profile_os_disk.value["managed_disk_type"]
# name - (optional) is a type of stringname=storage_profile_os_disk.value["name"]
# os_type - (optional) is a type of stringos_type=storage_profile_os_disk.value["os_type"]
# vhd_containers - (optional) is a type of set of stringvhd_containers=storage_profile_os_disk.value["vhd_containers"]
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
# read - (optional) is a type of stringread=timeouts.value["read"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}