Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • Check your deployment file and verify if all conditions are correctly defined.According to this official doc, You get a validation error when a field in your configuration fails validation, such as if it uses a string value when a boolean is expected. Commented Mar 3 at 12:36
  • Have done. Note closely that the only difference between softcoded-2 and softcoded-3 is the use of the reference, and the reference (exactly the same) is used successfully in hardcoded-3 but just on the top-level name property of the resource instead of on the properties.name nested property.
    – seawolf
    Commented Mar 4 at 2:29
  • As per the error the resource softcoded-1 could not be found when trying to resolve the reference in softcoded-3 and also the reference you provided with softcoded-3 should be correctly matched to hardcoded-3. Try adding a dependency on the softcoded-1 resource to the softcoded-3 resource. This will ensure that the softcoded-1 resource is created before the softcoded-3 resource is created, which may help to resolve your issue. Commented Mar 4 at 10:56
  • I believe this reference already exists, in the softcoded-3.metadata.dependsOn.softcoded-1 lines above... is there a different way to indicate this dependence?
    – seawolf
    Commented Mar 5 at 4:34
  • I included hardcoded-1 to show that the dependency is properly handled when the reference is part of the name of the resource; the only difference between hardcoded-1 and softcoded-3 with respect to the reference is that in softcoded-3 the reference is not in the top-level name property but rather in a nested property further within the object, yet hardcoded-1 works correctly (even with no dependsOn reference, while softcoded-3 does not at all work as expected or documented. The example in the link from Google's docs shows exactly the outcome I expect but am not seeing.
    – seawolf
    Commented Mar 5 at 4:38