通过Azure Devops部署时,提供应用程序洞察力的代理路径到Azure功能
我们使用Docker映像部署Azure函数。应用程序见解代理人在此处指定提供: Java- Azure应用程序洞察动态跟踪不使用Docker Images
当通过MVN Azure -runctions部署时,这可以正常工作:部署:部署
。但是使用Azure Dev-ops部署时行不通。这些步骤是:
- 我们创建Docker映像并将其发布到ACR中
- ,然后我们将Docker映像提供到以下任务:
这是ADO任务,
- task: AzureFunctionAppContainer@1
displayName: 'Azure Function App on Container Deploy: $(orchestratorfunctionappName)'
inputs:
azureSubscription: '${{ parameters.environments.serviceConnectionId }}'
appName: appName
imageName: 'appImage'
没有明确的文档可以提供java_opts
PATH。
We deploy Azure Function using the docker image. The application insights agent is manually provided as specified here: Java - Azure Application Insights Dynamic Tracing not working with docker images
This works fine when deployed via mvn azure-functions:deploy
. But doesn't work when deployed using azure dev-ops. These are the steps:
- We create the docker image and publish it to ACR
- We then provide the docker image to the below task:
Here is the ADO task
- task: AzureFunctionAppContainer@1
displayName: 'Azure Function App on Container Deploy: $(orchestratorfunctionappName)'
inputs:
azureSubscription: '${{ parameters.environments.serviceConnectionId }}'
appName: appName
imageName: 'appImage'
There is no clear documentation to provide the JAVA_OPTS
path
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
下面对我有用:
代理需要在图像上的该路径上存在。 ( Ref )
Below worked for me:
The agent needs to exist at that path on the image. (ref)