```# Pod access to elasticsearch scaleset es_vm_sc...
# python
v
Copy code
# Pod access to elasticsearch scaleset
es_vm_scaleset = azure.compute.get_virtual_machine_scale_set(
    resource_group_name=f"{environment}-elasticsearch",
    name=f"{environment}-elasticsearch-scaleset")

azure.authorization.Assignment(
    "PodESScalesetReaderAssignment",
    scope=es_vm_scaleset.id,
    role_definition_name="Reader",
    principal_id=pod_assigned_identity.principal_id,
    opts=ResourceOptions(depends_on=[es_vm_scaleset, pod_assigned_identity])
)
b
there's no urn output from that resource, no. where are you passing the urn?
v
Hmmm. I am not explicitly passing the urn anywhere.
Note that I am newish to pulumi and may be missing something.
b
i think it's the
depends_on
- trye remove the es_vm_scaleset from there
you don't need it
v
That is it! That makes a lot of sense. get_* is not a resource with an urn that pulumi tracks.
Thansk!!!!