sparse-intern-71089
07/29/2021, 7:57 PMbored-oyster-3147
07/29/2021, 8:15 PMGet an existing VirtualNetwork resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.Which makes more sense when you see that the Get method is asking for a
string name
meaning the name
that you gave the pulumi resource, so the name that it is known by in your pulumi state. So in that case the resource must already exist in your stack.
While the GetResource reference says:
Use this data source to access information about an existing Virtual Network.So this will be making an API call to Azure to retrieve a resource that may or may not even be part of your pulumi stack.
agreeable-hair-34658
07/30/2021, 8:06 AMget
function to consume properties from a resource that was provisioned elsewhere.bored-oyster-3147
07/30/2021, 12:59 PMbored-oyster-3147
07/30/2021, 1:00 PMbored-oyster-3147
07/30/2021, 1:01 PM