elegant-pillow-72893
06/23/2022, 7:19 PMNote:
This is the output I get from list_storage_account
Outputs:
+ name : {
+ keys: [
+ [0]: {
+ creation_time: "2021-08-06T00:13:40.4886860Z"
+ key_name : "key1"
+ permissions : "FULL"
+ value : "xxxxxxxxxxxxx"
}
+ [1]: {
+ creation_time: "2021-08-06T00:13:40.4886860Z"
+ key_name : "key2"
+ permissions : "FULL"
+ value : "xxxxxxxxxxxxxxx"
}
]
}
billowy-army-68599
06/23/2022, 7:29 PMlist_storage_account
call? I see list_storage_account_keys
?elegant-pillow-72893
06/23/2022, 7:56 PMlist_storage_account = azure_native.storage.list_storage_account_keys(
account_name=scrubout.name,
resource_group_name=resource_group.name
)
billowy-army-68599
06/23/2022, 7:57 PMelegant-pillow-72893
06/23/2022, 7:58 PMThe storage account was created using azure_native.storage.StorageAccount()
billowy-army-68599
06/23/2022, 8:00 PMapply
to accesselegant-pillow-72893
06/23/2022, 8:02 PMpulumi.export("name", list_storage_account[0])
TypeError: 'AwaitableListStorageAccountKeysResult' object is not subscriptable
billowy-army-68599
06/23/2022, 8:03 PMelegant-pillow-72893
06/23/2022, 8:03 PM