【发布时间】:2020-07-15 06:31:51
【问题描述】:
我创建了一个流量管理器配置文件以部署在我的测试环境中。它是这样的:
$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 脚本没有生成工件。
请帮助我完成部署部分。 谢谢:):)
【问题讨论】:
-
使用azure powershell任务怎么样?使用此任务在 azure 环境中运行 powershell 脚本。
-
无法获取您的最新信息,该解决方法对您有帮助吗?或者,如果您有任何疑虑,请随时在此处分享。
-
感谢您的回复。我正在使用 Azure PowerShell 任务。但是,无法部署它。将我的 TM 部署到 azure 还需要什么其他任务和设置。
标签: azure-devops task azure-traffic-manager