This message was deleted.
# python
s
This message was deleted.
w
The error is coming from Azure - the Status=400 indicates it’s coming back from Azure. And it looks to me that you are passing a property that contains the string
mmazzadwsnduai-dls
but Azure expects that property to contain a full ARN type of string like
/subscriptsion/…
or
/providers/….
I don’t see the “mmazz..” string in the code so I’m assuming it’s coming from a reference. So I think you just need to make sure you are passing the full string and not just the name.
f
Thanks @witty-candle-66007 value
mmazzadwsnduai-dls
is from adf_config['encryption']['user_assigned_identity']['name'] user_assigned_identities suppose to take in Map(Str, Any).....so what would you advise as the correct way to populate
user_assigned_identities
using
adf_uai
couldn't find a usable reference....
type inference also seems not to be working correctly...this affects dependency hierarchy resolution. If we hard-code the resource group name without referencing it, then the factory might be created before the resource group name
Copy code
File "/usr/lib/python3.8/runpy.py", line 282, in run_path
        return _run_code(code, mod_globals, init_globals,
      File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
        exec(code, run_globals)
      File "./__main__.py", line 4, in <module>
        resources = infra.create_resources()
      File "./__infra__.py", line 281, in create_resources
        data_factory = create_data_factory(mmazzargxx, adf_kv, adf_k, adf_uai, adf_config, config_mmazzargxx)
      File "./__infra__.py", line 253, in create_data_factory
        resource_group_name=mmazzargxx.name,
    AttributeError: 'tuple' object has no attribute 'name'
    error: an unhandled error occurred: Program exited with non-zero exit code: 1
ok...sorted out the dependency hierarchy resolution....now back to using
user_assigned_identities
when creating data factory....would appreciate further guidance
Thinking of using
Copy code
user_assigned_identities={
   adf_uai.id: {}
}

it however fails with

TypeError: <pulumi.output.Output object at 0x7f7e6f2b2ee0> has type Output, but expected one of: bytes, unicode
    error: an unhandled error occurred: Program exited with non-zero exit code: 1
So, how do one get id for user_assigned_identity given that Pulumi returns Output type
w
I’m not sure I’m following all the details, but you may have to put the code inside an
.apply()
block to use the base type. https://www.pulumi.com/docs/intro/concepts/inputs-outputs/#inputs-and-outputs
👍 1