首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >HTTP拉取服务器返回PowerShell 503服务不可用

HTTP拉取服务器返回PowerShell 503服务不可用
EN

Stack Overflow用户
提问于 2014-09-25 06:41:11
回答 1查看 453关注 0票数 0

我正在使用PowerShell 5.0 9月预览版在VMware工作站上运行的Windows Server2012 R2虚拟机上配置PowerShell Desired State Configuration Pull服务器。要执行DSC的配置,我将使用从Microsoft博客中获取的代码片段,该代码片段利用了xPSDesiredStateConfiguration模块的xDscWebService DSC资源。

当我尝试测试DSC Pull Server的OData端点时,收到一条HTTP503: Service Unavailable消息。对如何调试和修复这个问题有什么想法吗?

代码语言:javascript
复制
configuration DscWebService 
{ 
    param 
    ( 
        [ValidateNotNullOrEmpty()] 
        [string] $CertificateThumbPrint = 'AllowUnencryptedTraffic'
    ) 

    Import-DSCResource -ModuleName xPSDesiredStateConfiguration;

    WindowsFeature DSCServiceFeature 
    { 
        Ensure = 'Present';
        Name   = 'DSC-Service';
    } 

    WindowsFeature WinAuth 
    { 
        Ensure = 'Present';
        Name   = 'web-Windows-Auth';    
    } 

    xDscWebService PSDSCPullServer 
    { 
        Ensure                  = 'Present';
        EndpointName            = 'PullSvc'; 
        Port                    = 10100;
        PhysicalPath            = "$env:SystemDrive\inetpub\wwwroot\PSDSCPullServer";
        CertificateThumbPrint   = $CertificateThumbPrint;
        ModulePath              = "$env:PROGRAMFILES\WindowsPowerShell\DscService\Modules";
        ConfigurationPath       = "$env:PROGRAMFILES\WindowsPowerShell\DscService\Configuration";
        State                   = 'Started';
        DependsOn               = '[WindowsFeature]DSCServiceFeature';
    } 

    xDscWebService PSDSCConformanceService
    {   
        Ensure                  = 'Present';
        EndpointName            = 'DscConformance';
        Port                    = 10101;
        PhysicalPath            = "$env:SystemDrive\inetpub\wwwroot\PSDSCComplianceServer";
        CertificateThumbPrint   = 'AllowUnencryptedTraffic';
        State                   = 'Started';
        IsComplianceServer      = $true;
        DependsOn               = @('[WindowsFeature]DSCServiceFeature', '[WindowsFeature]WinAuth','[xDSCWebService]PSDSCPullServer') ;
    } 
}  

DscWebService  -ComputerName dsc01.t.loc -OutputPath c:\dsc\PullServer -CertificateThumbPrint 00A2F55847C5523FE6CB0C2EE132C638339EA3A8;
Start-DscConfiguration -Wait -Verbose -Path c:\dsc\PullServer -Force;
EN

回答 1

Stack Overflow用户

发布于 2014-09-26 22:30:46

503错误通常表示与站点关联的应用程序池存在问题。运行以下命令查看应用程序池的状态

代码语言:javascript
复制
    Get-ChildItem IIS:\AppPools
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26027732

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档