Channels
pulumi-ai
package-authoring
pulumi-cdk
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
cloudengineering
yaml
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
blog-posts
localstack
welcome
gitlab
pulumi-kubernetes-operator
jobs
aws
pulumi-deployments
dotnet
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
general
Powered by
Title
b
bored-hamburger-89415
05/07/2021, 4:49 AM
Still slogging away with ado (don’t worry my k8s questions are coming soon 😅) This time I can’t figure out how I’m supposed to coerce an output into a number, and the example from docs appears to be broken. (PR forthcoming)
https://www.pulumi.com/docs/reference/pkg/azuredevops/branchpolicybuildvalidation/#builddefinitionid_nodejs
The issue is the id returned from ADO is a string according to the
Output
… However, the type explicitly only accepts a
number
. Is there some
apply
trickery I am missing?
Any guidance is very much appreciated thank you 🙏
For reference:
https://github.com/pulumi/pulumi-azuredevops/issues/51
3 Views
#getting-started
Join Slack