Ошибка azureStorageAccounts "Microsoft.Web / sites / config" из-за 500 InternalError

У меня в шаблоне есть следующий ресурс:

{
    "type": "Microsoft.Web/sites/config",
    "apiVersion": "2018-11-01",
    "name": "[concat(parameters('appservice_name'), '/web')]",
    "location": "East US",
    "dependsOn": [
        "[resourceId('Microsoft.Web/sites', parameters('appservice_name'))]",
"[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_name'))]",
"[resourceId('Microsoft.Storage/storageAccounts/blobServices/containers', parameters('storageAccounts_name'), 'default', 'frontend')]"
    ],
    "properties": {
        "numberOfWorkers": 1,
        "defaultDocuments": [
            "Default.htm",
            "Default.html",
            "Default.asp",
            "index.htm",
            "index.html",
            "iisstart.htm",
            "default.aspx",
            "index.php",
            "hostingstart.html"
        ],
"applicationLogs": "FileSystem",
        "netFrameworkVersion": "v4.0",
        "linuxFxVersion": "DOTNETCORE|3.1",
        "requestTracingEnabled": false,
        "remoteDebuggingEnabled": false,
        "remoteDebuggingVersion": "VS2019",
        "httpLoggingEnabled": true,
        "logsDirectorySizeLimit": 35,
        "detailedErrorLoggingEnabled": false,
        "publishingUsername": "$stelck",
        "azureStorageAccounts": {
            "frontend": {
                "type": "AzureBlob",
                "accountName": "[parameters('storageAccounts_name')]",
                "shareName": "frontend",
                "mountPath": "/home/site/wwwroot/frontend"
            }
        },
        "scmType": "None",
        "use32BitWorkerProcess": true,
        "webSocketsEnabled": false,
        "alwaysOn": true,
        "appCommandLine": "/home/site/wwwroot/entrypoint.sh",
        "managedPipelineMode": "Integrated",
        "virtualApplications": [
            {
                "virtualPath": "/",
                "physicalPath": "site\\wwwroot",
                "preloadEnabled": false
            }
        ],
        "loadBalancing": "LeastRequests",
        "experiments": {
            "rampUpRules": []
        },
        "autoHealEnabled": false,
        "localMySqlEnabled": false,
        "managedServiceIdentityId": 782,
        "ipSecurityRestrictions": [
            {
                "ipAddress": "Any",
                "action": "Allow",
                "priority": 1,
                "name": "Allow all",
                "description": "Allow all access"
            }
        ],
        "scmIpSecurityRestrictions": [
            {
                "ipAddress": "Any",
                "action": "Allow",
                "priority": 1,
                "name": "Allow all",
                "description": "Allow all access"
            }
        ],
        "scmIpSecurityRestrictionsUseMain": false,
        "http20Enabled": false,
        "minTlsVersion": "1.2",
        "ftpsState": "FtpsOnly",
        "reservedInstanceCount": 0
    }
},

Но при развертывании происходит сбой из-за:

код: InternalServerError, сообщение: Произошла непредвиденная ошибка InternalServerError. Пожалуйста, попробуйте позже. x-ms-идентификатор-запроса-корреляции: ......

Если я удалю часть azureStorageAccounts из ресурса, она не выйдет из строя и развернется идеально.

Как я могу развернуть такой ресурс с точкой подключения хранилища в шаблоне руки?

СВЯЗАННЫЕ: Ссылка на функцию шаблона не ожидается в этом месте


person JJCV    schedule 17.11.2020    source источник
comment
Убедитесь, что это помогает.   -  person KrishnaG-MSFT    schedule 27.11.2020