Use this data source to access information about an existing Orchestrated Virtual Machine Scale Set.
data "azurerm_orchestrated_virtual_machine_scale_set" "example" {
name = "existing"
resource_group_name = "existing"
}
output "id" {
value = data.azurerm_orchestrated_virtual_machine_scale_set.example.id
}
The following arguments are supported:
name
- (Required) The name of this Orchestrated Virtual Machine Scale Set.
resource_group_name
- (Required) The name of the Resource Group where the Orchestrated Virtual Machine Scale Set exists.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Virtual Machine Scale Set.
location
- The Azure Region in which this Orchestrated Virtual Machine Scale Set exists.
identity
- A identity
block as defined below.
network_interface
- A list of network_interface
blocks as defined below.
An identity
block exports the following:
type
- The type of Managed Service Identity that is configured on this Orchestrated Virtual Machine Scale Set.
principal_id
- The Principal ID of the System Assigned Managed Service Identity that is configured on this Orchestrated Virtual Machine Scale Set.
tenant_id
- The Tenant ID of the System Assigned Managed Service Identity that is configured on this Orchestrated Virtual Machine Scale Set.
identity_ids
- The list of User Assigned Managed Identity IDs assigned to this Orchestrated Virtual Machine Scale Set.
network_interface
exports the following:
name
- The name of the network interface configuration.
primary
- Whether network interfaces created from the network interface configuration will be the primary NIC of the VM.
ip_configuration
- An ip_configuration
block as documented below.
accelerated_networking_enabled
- Is accelerated networking enabled?
dns_servers
- An array of the DNS servers in use.
ip_forwarding_enabled
- Is IP forwarding enabled?
network_security_group_id
- The identifier for the network security group.
ip_configuration
exports the following:
name
- The name of the IP configuration.
subnet_id
- The identifier of the subnet.
application_gateway_backend_address_pool_ids
- An array of references to backend address pools of application gateways.
load_balancer_backend_address_pool_ids
- An array of references to backend address pools of load balancers.
load_balancer_inbound_nat_rules_ids
- An array of references to inbound NAT pools for load balancers.
primary
- If this ip_configuration is the primary one.
application_security_group_ids
- The application security group IDs to use.
public_ip_address
- The virtual machines scale set IP Configuration's PublicIPAddress configuration. The public_ip_address
is documented below.
public_ip_address
exports the following:
name
- The name of the public IP address configuration
idle_timeout_in_minutes
- The idle timeout in minutes.
domain_name_label
- The domain name label for the DNS settings.
ip_tag
- A list of ip_tag
blocks as defined below.
public_ip_prefix_id
- The ID of the public IP prefix.
version
- The Internet Protocol Version of the public IP address.
ip_tag
exports the following:
tag
- The IP Tag associated with the Public IP.
type
- The Type of IP Tag.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the Orchestrated Virtual Machine Scale Set.