calm-tent-21096
04/02/2022, 5:41 PMvar searchDns = new PrivateZone("<http://privatelink.search.windows.net|privatelink.search.windows.net>", new PrivateZoneArgs
{
PrivateZoneName = "<http://privatelink.search.windows.net|privatelink.search.windows.net>",
ResourceGroupName = (
_coreRef.GetOutput("CoreResourceGroupName")
?? throw new Exception("Core resource group not found"))
.Apply<string>(rg => Convert.ToString(rg)
?? string.Empty)
});
Am I doing something wrong? _coreRef.GetOutput()
always returns Output<object?>
but ResourceGroup name is Input<string>
. Is there an easier way to convert to Input<string>
from the output of GetOutput()
?echoing-dinner-19531
04/02/2022, 8:01 PMcalm-tent-21096
04/02/2022, 9:52 PM