【发布时间】:2021-11-09 13:40:23
【问题描述】:
我在 c# 中创建了示例函数,它根据参数设置位置值。我想用arm模板样式格式写下面的表达式。
public static Main(string name)
{
string location = string.Empty;
if(name == "uksouth")
{
location = "UKS";
}else if(name == "ukwest")
{
location = "UKE";
}else if(name == "IndiaWest")
{
location = "INDW";
}
else {
location = "INDS";
}
}
我已经为一个匹配条件写了这个,但我想根据用户资源组返回值。
"value": "[if(equals(resourceGroup().location,'uksouth'), 'UKS', 'EUS')]"
【问题讨论】:
标签: azure-devops azure-pipelines arm-template