我已经创建了一个流量管理器配置文件,以便在我的测试环境中进行部署。它是这样的:
$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任务,管道成功执行。但是,我无法将其部署到我的azure环境中。我需要使用什么任务来将它发布到azure。此外,“发布构建工件”不起作用,因为此powershell脚本没有生成工件。
请帮助我部署部分。谢谢:):)
发布于 2020-07-21 16:59:44
https://stackoverflow.com/questions/62908856
复制相似问题