From a81b1d55fe01e3ca77e4b7477e1af365fa5b1797 Mon Sep 17 00:00:00 2001 From: Logan Schmidt Date: Thu, 1 Aug 2019 14:52:05 -0700 Subject: [PATCH 1/2] Updated api_management_api_policy Added a note for those seeking to utilize `-PolicyFilePath` from https://docs.microsoft.com/en-us/powershell/module/azurerm.apimanagement/set-azurermapimanagementpolicy?view=azurermps-6.13.0#parameters Tested in Azure, this works and would prevent work on implementing PolicyFilePath as another parameter. --- website/docs/r/api_management_api_policy.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/r/api_management_api_policy.html.markdown b/website/docs/r/api_management_api_policy.html.markdown index 86771c701359..d09d68abab04 100644 --- a/website/docs/r/api_management_api_policy.html.markdown +++ b/website/docs/r/api_management_api_policy.html.markdown @@ -46,7 +46,7 @@ The following arguments are supported: * `resource_group_name` - (Required) The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created. -* `xml_content` - (Optional) The XML Content for this Policy. +* `xml_content` - (Optional) The XML Content for this Policy as a string. Note instead of parameter for Microsoft's PolicyFilePath. xml-content can take a file by using Terraform's [file function](https://www.terraform.io/docs/configuration/functions/file.html) * `xml_link` - (Optional) A link to a Policy XML Document, which must be publicly available. From 860a17cf3c337c53c3f125108e35bf111270b205 Mon Sep 17 00:00:00 2001 From: Logan Schmidt Date: Fri, 2 Aug 2019 15:26:09 -0700 Subject: [PATCH 2/2] Update website/docs/r/api_management_api_policy.html.markdown Went with better wording provided by @katbyte, ty :) Co-Authored-By: kt --- website/docs/r/api_management_api_policy.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/r/api_management_api_policy.html.markdown b/website/docs/r/api_management_api_policy.html.markdown index d09d68abab04..3646200f3e2d 100644 --- a/website/docs/r/api_management_api_policy.html.markdown +++ b/website/docs/r/api_management_api_policy.html.markdown @@ -46,7 +46,7 @@ The following arguments are supported: * `resource_group_name` - (Required) The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created. -* `xml_content` - (Optional) The XML Content for this Policy as a string. Note instead of parameter for Microsoft's PolicyFilePath. xml-content can take a file by using Terraform's [file function](https://www.terraform.io/docs/configuration/functions/file.html) +* `xml_content` - (Optional) The XML Content for this Policy as a string. An XML file can be used here with Terraform's [file function](https://www.terraform.io/docs/configuration/functions/file.html) that is similar to Microsoft's `PolicyFilePath` option. * `xml_link` - (Optional) A link to a Policy XML Document, which must be publicly available.