azure-devops - 流量管理器部署
问题描述
我创建了一个流量管理器配置文件以部署在我的测试环境中。它是这样的:
$TmProfile = New-AzTrafficManagerProfile -Name " " -ResourceGroupName " " -TrafficRoutingMethod Priority -RelativeDnsName " " -Ttl " " -MonitorProtocol TCP -MonitorPort " " -MonitorPath "/"
Add-AzTrafficManagerEndpointConfig -EndpointName VM-"" -TrafficManagerProfile $TmProfile -Type ExternalEndpoints -Target "" -EndpointStatus Enabled -Priority 1
Add-AzTrafficManagerEndpointConfig -EndpointName VM-"" -TrafficManagerProfile $TmProfile -Type ExternalEndpoints -Target "" -EndpointStatus Enabled -Priority 2
Set-AzTrafficManagerProfile -TrafficManagerProfile $TmProfile
Disable-AzTrafficManagerEndpoint -Name "VM- " -ProfileName $TmProfile -ResourceGroupName "" -Type ExternalEndpoints -Force
我在 azure 管道中使用了 ps 任务,并且管道成功执行。但是,我无法将它部署到我的天蓝色环境中。我需要使用什么任务将其发布到天蓝色。此外,“发布构建工件”不起作用,因为此 powershell 脚本没有生成工件。
请帮助我进行部署部分。谢谢:):)
解决方案
推荐阅读
- tensorflow - Google Colab 中 TPU 的 TRANSIENT_ERROR
- php - 添加确认密码字段moodle
- java - 抽象工厂图案和印刷
- apache-nifi - Apache Nifi:单例实例 python 进程 - ExecuteStreamCommand 或类似
- java - java swing timer在调试中工作正常,但在运行时不工作
- postgresql - 将 Sql Server Latin1 导入并转换为 Postgres UTF8
- python - 矩阵数学的匹配矩阵大小
- android - Android:在屏幕截图中隐藏特定视图
- python - 使用 PDF 注释更改字体类型/大小
- ruby-on-rails - Rails-UJS 响应呈现原始 html 而不是解释的haml