Open jepio opened 3 years ago
ARM
This is the generated ARM template:
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"resources": [
{
"apiVersion": "2021-04-01",
"kind": "StorageV2",
"location": "westeurope",
"name": "stor32142",
"properties": {
"accessTier": "Hot",
"encryption": {
"keySource": "Microsoft.Storage",
"services": {
"blob": {
"enabled": true,
"keyType": "Account"
},
"file": {
"enabled": true,
"keyType": "Account"
}
}
},
"networkAcls": {
"bypass": "AzureServices",
"defaultAction": "Allow",
"ipRules": [],
"virtualNetworkRules": []
},
"supportsHttpsTrafficOnly": true
},
"sku": {
"name": "Standard_RAGRS",
"tier": "Standard"
},
"type": "Microsoft.Storage/storageAccounts"
},
{
"apiVersion": "2021-04-01",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', 'stor32142')]"
],
"name": "stor32142/default",
"properties": {
"cors": {
"corsRules": []
},
"deleteRetentionPolicy": {
"enabled": false
}
},
"sku": {
"name": "Standard_RAGRS",
"tier": "Standard"
},
"type": "Microsoft.Storage/storageAccounts/blobServices"
},
{
"apiVersion": "2021-04-01",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', 'stor32142')]"
],
"name": "stor32142/default",
"properties": {
"cors": {
"corsRules": []
},
"protocolSettings": {
"smb": {}
},
"shareDeleteRetentionPolicy": {
"days": 7,
"enabled": true
}
},
"sku": {
"name": "Standard_RAGRS",
"tier": "Standard"
},
"type": "Microsoft.Storage/storageAccounts/fileServices"
},
{
"apiVersion": "2021-04-01",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', 'stor32142')]"
],
"name": "stor32142/default",
"properties": {
"cors": {
"corsRules": []
}
},
"type": "Microsoft.Storage/storageAccounts/queueServices"
},
{
"apiVersion": "2021-04-01",
"dependsOn": [
"[resourceId('Microsoft.Storage/storageAccounts', 'stor32142')]"
],
"name": "stor32142/default",
"properties": {
"cors": {
"corsRules": []
}
},
"type": "Microsoft.Storage/storageAccounts/tableServices"
}
],
"variables": {}
}
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @armleads-azure.
Author: | jepio |
---|---|
Assignees: | zhoxing-ms |
Labels: | `Service Attention`, `ARM`, `customer-reported` |
Milestone: | Backlog |
@jepio Apologies for the late reply. I was able to reproduce the issue at my end. While looking at the backend logs, I found that the failure was occurring due to the schema validation while empty value was sent to the smb protocolSettings. Could you please remove the below line from the ARM JSON template and then run the deployment again ?
"{"protocolSettings":{"smb":{}}"
Awaiting your reply.
Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!
Hi @navba-MSFT,
Indeed without that line the ARM JSON template deploys correctly. But since exporting a template with az group export -g group${rand} --skip-all-params
produces the "protocolSettings" entry, could you fix the backend validation to handle this correctly?
@jepio Thanks for getting back and confirming the workaround fixes the issue. We have created an internal workitem with the Product team, to fix the backend logic.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @josephkwchan, @jennyhunter-msft.
Author: | jepio |
---|---|
Assignees: | - |
Labels: | `bug`, `Service Attention`, `ARM`, `customer-reported`, `needs-team-attention` |
Milestone: | - |
@josephkwchan, @jennyhunter-msft Could you please provide an update on this once you get a chance ?
@bmoore-msft - Do you have any insight into this issue?
@jepio Thanks for getting back and confirming the workaround fixes the issue. We have created an internal workitem with the Product team, to fix the backend logic.
@navba-MSFT - can you share the internal workitem you created? Normally issues like this are addressed in the schemas (which is a public repo)
@bmoore-msft I have emailed you the internal workitem details.
Having the same issue, works if I removed the "smb" section. Any news for a fix in the backend?
Describe the bug
An ARM template generated from any resource group that includes a StorageAccount fails when redeploying with an
InvalidXmlDocument
error.Command Name
az deployment group create
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
This fails at the:
az deployment group create -g {} -f {}
Expected Behavior
Should not fail. According to internet searches this is related to
"type": "Microsoft.Storage/storageAccounts/xxxServices"
entries in the generated ARM template, but then either: a) they should not be generated if they are not needed b)az
should be able to handle the resulting template correctlyEnvironment Summary
Additional Context
A template saved through the Azure portal has the exact same issue