diff --git a/tools/code/common/PolicyFragment.cs b/tools/code/common/PolicyFragment.cs index 114bc534..16d62ea7 100644 --- a/tools/code/common/PolicyFragment.cs +++ b/tools/code/common/PolicyFragment.cs @@ -10,7 +10,9 @@ public sealed record PolicyFragmentsUri : IArtifactUri public PolicyFragmentsUri(ServiceUri serviceUri) { - Uri = serviceUri.AppendPath("policyFragments"); + Uri = serviceUri.AppendPath("policyFragments") + .SetQueryParam("api-version", "2022-04-01-preview") + .ToUri(); } } diff --git a/tools/code/publisher/PolicyFragment.cs b/tools/code/publisher/PolicyFragment.cs index 93b3b8ee..210aeb7e 100644 --- a/tools/code/publisher/PolicyFragment.cs +++ b/tools/code/publisher/PolicyFragment.cs @@ -211,7 +211,7 @@ private static async ValueTask GetPolicyFragmentJson(PolicyFragmentN { ["properties"] = new JsonObject { - ["format"] = "xml", + ["format"] = "rawxml", ["value"] = await policyFile.ReadAsString(cancellationToken) } };