diff --git a/command/agent/config.go b/command/agent/config.go index d8339fd204..16069919d8 100644 --- a/command/agent/config.go +++ b/command/agent/config.go @@ -544,12 +544,13 @@ type Config struct { RetryInterval time.Duration `mapstructure:"-" json:"-"` RetryIntervalRaw string `mapstructure:"retry_interval"` - // RetryJoinEC2 configuration + // RetryJoinEC2 specifies the configuration for auto-join on EC2. RetryJoinEC2 RetryJoinEC2 `mapstructure:"retry_join_ec2"` - // The config struct for the GCE tag server discovery feature. + // RetryJoinGCE specifies the configuration for auto-join on GCE. RetryJoinGCE RetryJoinGCE `mapstructure:"retry_join_gce"` + // RetryJoinAzure specifies the configuration for auto-join on Azure. RetryJoinAzure RetryJoinAzure `mapstructure:"retry_join_azure"` // RetryJoinWan is a list of addresses to join -wan with retry enabled. diff --git a/command/agent/config_azure.go b/command/agent/config_azure.go index 019b73b193..c3a87c5cfc 100644 --- a/command/agent/config_azure.go +++ b/command/agent/config_azure.go @@ -3,6 +3,7 @@ package agent import ( "fmt" "log" + "github.com/Azure/azure-sdk-for-go/arm/network" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure"