简体   繁体   English

将工作角色发布到Azure

[英]Publishing a worker role to Azure

Our developers need to publish a worker role to Azure and be able to get the diagnostics information if there's problem. 我们的开发人员需要将工作角色发布到Azure,并在出现问题时能够获取诊断信息。 The network admin suggests this requires the developers to log into Azure portal and upload packages and he doesn't want to do it because developers would need full admin rights. 网络管理员建议这要求开发人员登录到Azure门户并上传程序包,而他不想这样做,因为开发人员将需要完整的管理员权限。

Is this correct? 这个对吗? This doesn't sound right. 这听起来不对。 All we need to do is publish a newly created worker role to Azure -- preferrably directly from Visual Studio. 我们需要做的就是向Azure发布一个新创建的工作角色-最好直接从Visual Studio发布。

We also need to see any errors our new worker role may generate. 我们还需要查看我们的新辅助角色可能产生的任何错误。

How should we go about it? 我们应该怎么做? Do we have to keep generating packages and giving them to the network admin and wait to hear from him? 我们是否必须继续生成软件包并将其提供给网络管理员,然后等待他的来信?

Ideally you shouldn't ever be publishing into a prod environment directly from Visual Studio - it's certainly possible though. 理想情况下,您永远不应该直接从Visual Studio发布到产品环境中-当然可以。 The better bet is deploy via a build server which is configured to deploy into a Worker Role. 最好的选择是通过配置为部署到工作角色中的构建服务器进行部署。 This way you remove the need for a co-admin level of access for your developers. 这样,您就无需为开发人员提供共同管理员级别的访问权限。

If you want to capture errors from a Web or Worker Role (aka a Cloud Service) then you can use Azure Diagnostics to write the logs to an Azure Blob Storage account. 如果要捕获来自Web角色或辅助角色(即云服务)的错误,则可以使用Azure诊断将日志写入 Azure Blob存储帐户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM