features

package
v1.37.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2019 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShouldResourcesBeImported

func ShouldResourcesBeImported() bool

ShouldResourcesBeImported returns whether the feature Requiring Resources to be Imported should be enabled.

This feature prevents Terraform from 'adopting' resources which already exist, which is the behaviour used by ARM Templates which will update these resources rather than overwriting them Instead existing resources will need to be imported using `terraform import`, as is the case with other Terraform Providers.

This feature-toggle defaults to off in 1.x versions of the Azure Provider, however this will become the default behaviour in version 2.0 of the Azure Provider. As outlined in the announcement for v2.0 of the Azure Provider: https://github.com/terraform-providers/terraform-provider-azurerm/issues/2807

Operators wishing to adopt this behaviour can opt-into this behaviour in 1.x versions of the Azure Provider by setting the Environment Variable 'ARM_PROVIDER_STRICT' to 'true'

func SupportsCustomTimeouts added in v1.36.0

func SupportsCustomTimeouts() bool

SupportsCustomTimeouts returns whether Custom Timeouts are supported

This feature allows Resources to define Custom Timeouts for Creation, Updating and Deletion which helps work with Azure resources that take longer to provision/delete. When this feature is disabled, all resources have a hard-coded timeout of 3 hours.

This feature-toggle defaults to off in 1.x versions of the Azure Provider, however this will become the default behaviour in version 2.0 of the Azure Provider. As outlined in the announcement for v2.0 of the Azure Provider: https://github.com/terraform-providers/terraform-provider-azurerm/issues/2807

Operators wishing to adopt this behaviour can opt-into this behaviour in 1.x versions of the Azure Provider by setting the Environment Variable 'ARM_PROVIDER_CUSTOM_TIMEOUTS' to 'true'

func SupportsTwoPointZeroResources added in v1.36.0

func SupportsTwoPointZeroResources() bool

SupportsTwoPointZeroResources returns whether the new VM and VMSS resources from 2.0 should be supported

There's 5 new resources coming as a part of 2.0, which are intentionally feature-flagged off until all 5 are supported:

  • `azurerm_linux_virtual_machine`
  • `azurerm_linux_virtual_machine_scale_set`
  • `azurerm_windows_virtual_machine`
  • `azurerm_windows_virtual_machine_scale_set`
  • `azurerm_virtual_machine_scale_set_extension`

This feature-toggle defaults to off in 1.x versions of the Azure Provider, however this will become enabled by default in version 2.0 of the Azure Provider (where this toggle will be removed). As outlined in the announcement for v2.0 of the Azure Provider: https://github.com/terraform-providers/terraform-provider-azurerm/issues/2807

Operators wishing to beta-test these resources can opt-into them in 1.x versions of the Azure Provider by setting the Environment Variable 'ARM_PROVIDER_TWOPOINTZERO_RESOURCES' to 'true'

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL