部署后SQL配置的DSC错误

时间:2017-07-30 05:26:21

标签: azure arm dsc

我正在使用ARM将SQL Server 2016部署到Azure。尝试使用DSC模块实现部署后配置。

DSC配置:

    xSQLServerSetup 'InstallDefaultInstance'
    {
        InstanceName = 'MSSQLSERVER'
        SQLCollation = 'SQL_Latin1_General_CP1_CI_AS'

        SQLSysAdminAccounts = $SqlInstallCredential
        SourcePath = 'C:\SQLServerFull\'
        DependsOn = '[WindowsFeature]NetFramework35','[WindowsFeature]NetFramework45', '[xDisk]TVolume'
    }

并获得以下内容:

"error": {
  "code": "DeploymentFailed",
  "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.",
  "details": [
    {
      "code": "Conflict",
      "message": "{\r\n  \"status\": \"Failed\",\r\n  \"error\": {\r\n    \"code\": \"ResourceDeploymentFailure\",\r\n    \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n    \"details\": [\r\n      {\r\n        \"code\": \"VMExtensionProvisioningError\",\r\n        \"message\": \"VM has reported a failure when processing extension 'Microsoft.Powershell.DSC'. Error message: \\\"DSC Configuration 'Main' completed with error(s). Following are the first few: The network name cannot be found.  Cannot bind argument to parameter 'Path' because it is an empty string. Cannot bind argument to parameter 'Path' because it is an empty string.\\\".\"\r\n      }\r\n    ]\r\n  }\r\n}"

有什么建议吗?

0 个答案:

没有答案