diff --git a/azurerm/resource_arm_app_service.go b/azurerm/resource_arm_app_service.go index fadca55fe990..923743dcc707 100644 --- a/azurerm/resource_arm_app_service.go +++ b/azurerm/resource_arm_app_service.go @@ -234,6 +234,11 @@ func resourceArmAppService() *schema.Resource { Type: schema.TypeString, Computed: true, }, + + "outbound_ip_addresses": { + Type: schema.TypeString, + Computed: true, + }, }, } } @@ -388,6 +393,7 @@ func resourceArmAppServiceRead(d *schema.ResourceData, meta interface{}) error { d.Set("client_affinity_enabled", props.ClientAffinityEnabled) d.Set("enabled", props.Enabled) d.Set("default_site_hostname", props.DefaultHostName) + d.Set("outbound_ip_addresses", props.OutboundIPAddresses) } if err := d.Set("app_settings", flattenAppServiceAppSettings(appSettingsResp.Properties)); err != nil { diff --git a/website/docs/r/app_service.html.markdown b/website/docs/r/app_service.html.markdown index 0f0eaf7e4d18..2d5ada905f7a 100644 --- a/website/docs/r/app_service.html.markdown +++ b/website/docs/r/app_service.html.markdown @@ -168,6 +168,8 @@ The following attributes are exported: * `default_site_hostname` - The Default Hostname associated with the App Service - such as `mysite.azurewebsites.net` +* `outbound_ip_addresses` - A comma separated list of outbound IP addresses - such as `52.23.25.3,52.143.43.12` + ## Import App Services can be imported using the `resource id`, e.g.