From a7543de39377db72977d9182e3764392409689e7 Mon Sep 17 00:00:00 2001 From: Clint Shryock Date: Mon, 3 Aug 2015 15:34:34 -0500 Subject: [PATCH] settings file is not required --- builtin/providers/azure/provider.go | 2 +- website/source/docs/providers/azure/index.html.markdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/azure/provider.go b/builtin/providers/azure/provider.go index 46b3028d5..fe100be35 100644 --- a/builtin/providers/azure/provider.go +++ b/builtin/providers/azure/provider.go @@ -17,7 +17,7 @@ func Provider() terraform.ResourceProvider { Schema: map[string]*schema.Schema{ "settings_file": &schema.Schema{ Type: schema.TypeString, - Required: true, + Optional: true, DefaultFunc: schema.EnvDefaultFunc("AZURE_SETTINGS_FILE", nil), ValidateFunc: validateSettingsFile, }, diff --git a/website/source/docs/providers/azure/index.html.markdown b/website/source/docs/providers/azure/index.html.markdown index 0e88cf7c7..5d7afdd20 100644 --- a/website/source/docs/providers/azure/index.html.markdown +++ b/website/source/docs/providers/azure/index.html.markdown @@ -33,7 +33,7 @@ resource "azure_instance" "web" { The following arguments are supported: -* `settings_file` - (Required) Contents of a valid `publishsettings` file, used to +* `settings_file` - (Optional) Contents of a valid `publishsettings` file, used to authenticate with the Azure API. You can download the settings file here: https://manage.windowsazure.com/publishsettings. You must either provide (or source from the `AZURE_SETTINGS_FILE` environment variable) a settings