On this page
NOTE: The Azure Service Management Provider has been superseded by the Azure Resource Manager Provider and is no longer being actively developed by HashiCorp employees. It continues to be supported by the community. We recommend using the Azure Resource Manager based Microsoft Azure Provider if possible.
Azure Service Management Provider
The Azure Service Management provider is used to interact with the many resources supported by Azure. The provider needs to be configured with a publish settings file and optionally a subscription ID before it can be used.
Use the navigation to the left to read about the available resources.
Example Usage
# Configure the Azure Provider
provider "azure" {
publish_settings = "${file("credentials.publishsettings")}"
}
# Create a web server
resource "azure_instance" "web" {
# ...
}
Argument Reference
The following arguments are supported:
publish_settings- (Optional) Contents of a validpublishsettingsfile, used to authenticate with the Azure API. You can download the settings file here: https://manage.windowsazure.com/publishsettings. You must either provide publish settings or both asubscription_idandcertificate. It can also be sourced from theAZURE_PUBLISH_SETTINGSenvironment variable.subscription_id- (Optional) The subscription ID to use. If asettings_fileis not providedsubscription_idis required. It can also be sourced from theAZURE_SUBSCRIPTION_IDenvironment variable.certificate- (Optional) The certificate used to authenticate with the Azure API. If asettings_fileis not providedcertificateis required. It can also be sourced from theAZURE_CERTIFICATEenvironment variable.
These arguments are supported for backwards compatibility, and may be removed in a future version:
settings_file- Deprecated: please usepublish_settingsinstead. Path to or contents of a validpublishsettingsfile, 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 theAZURE_SETTINGS_FILEenvironment variable) a settings file or both asubscription_idandcertificate.
Testing:
The following environment variables must be set for the running of the acceptance test suite:
A valid combination of the above which are required for authentification.
AZURE_STORAGE- The name of a storage account to be used in tests which require a storage backend. The storage account needs to be located in the Western US Azure region.
© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/azure/index.html