FileServices.SetServicePropertiesAsync throws XML specified is not syntactically valid.
See original GitHub issueDescribe the bug
FileServices.SetServicePropertiesAsync throws XML specified is not syntactically valid.
Expected behavior
No exception
Actual behavior (include Exception or Stack Trace)
Microsoft.Rest.Azure.CloudException: XML specified is not syntactically valid.
RequestId:cfad924b-401a-0011-3d03-1c9ff4000000
Time:2021-03-18T14:28:52.7368664Z
To Reproduce Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)
var properties = await managementClient.FileServices.GetServicePropertiesAsync(resourceGroupName, storageAccountName);
properties.ShareDeleteRetentionPolicy = new DeleteRetentionPolicy(true, 30);
await managementClient.FileServices.SetServicePropertiesAsync(resourceGroupName, storageAccountName, properties);
Environment:
- Microsoft.Azure.Management.Storage 1.19
- Windows 10 .NET Core 3.1
Workaround
await managementClient.FileServices.SetServicePropertiesAsync(azure.ResourceGroupName, storageAccount.Name, new FileServiceProperties(shareDeleteRetentionPolicy: new DeleteRetentionPolicy(true, 30)));
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (10 by maintainers)
Top Results From Across the Web
InvalidXmlDocument: XML specified is not syntactically valid
The error is most probably caused by empty properties in the elements fileServices, queueServices and/or tableServices in your ARM-template.
Read more >ARM Templates: StorageAccounts/FileServices ERROR " ...
Getting the following error with my ARM template 17:25:32 - Status Message: XML specified is not syntactically valid.
Read more >XML specified is not syntactically valid · Issue #13232
Describe the bug. az storage logging update command when used to update table storage logging, generates an invalid XML error. Command Name
Read more >I am getting "XML specified is not syntactically valid" error. ...
I am getting "XML specified is not syntactically valid" error. I tried with both JSON and CSV code. Same issue. any idea why...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, I did. Id: 2109070060001835
Thank you for your feedback. Tagging and routing to the team member best able to assist.