most-mouse-38002
06/13/2022, 12:12 PMresources.LookupResourceGroup
the correct way to go about this? Seing as it returns a resources.LookupResourceGroupResult
I am a bit confused; I can of course manually turn this into a resources.ResourceGroup
but is that really “the way”?echoing-dinner-19531
06/13/2022, 12:26 PMmost-mouse-38002
06/13/2022, 12:37 PMdata
to just let Pulumi know that “this thing exists, but as read only”?echoing-dinner-19531
06/13/2022, 12:38 PMget
methods. https://www.pulumi.com/registry/packages/azure-native/api-docs/resources/getresourcegroup/most-mouse-38002
06/13/2022, 12:40 PMResourceGroup
and not LookupResourceGroupResult
. Note that I am using Go.echoing-dinner-19531
06/13/2022, 12:43 PMGetResourceGroup
function (https://github.com/pulumi/pulumi-azure-native/blob/master/sdk/go/azure/resources/resourceGroup.go#L106) which does return a ResourceGroup
object.most-mouse-38002
06/13/2022, 12:48 PMpulumi.ID
which confuses me. an ID in Azure would be something along the lines of
/subscriptions/$subscription_uuid/resourceGroups/foo
and /foo
would also be the name of said resource group. I would assume GetResourceGroup
could infer this information on its own, but having tested it does not and I need to copy that entire line into pulumi.ID
?echoing-dinner-19531
06/13/2022, 12:50 PMNewResource
calls to create a resource. As for the ID we don't try and do any smarts in the SDK to shorten IDs, we just take the literal that the cloud provider SDK expects.most-mouse-38002
06/13/2022, 12:51 PM