【问题标题】:Traffic Manager deployment流量管理器部署
【发布时间】: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


【解决方案1】:

您可以尝试使用 azure powershell task 。使用此任务在 azure 环境中运行 powershell 脚本。

这里是document 供参考。

【讨论】:

  • 感谢您的回复是的,我正在使用 Azure PowerShell 任务。但是,我无法部署它。将 TM 部署到 azure 需要哪些任务和设置。
猜你喜欢
  • 1970-01-01
  • 2021-12-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-05-19
相关资源
最近更新 更多