sparse-intern-71089
03/13/2021, 8:56 PMbetter-shampoo-48884
03/14/2021, 7:28 AMidentity
field is not listed in the output (as it is an input), but is still accessible (because all inputs are), and has the same *IdentityResponse type - meaning that it should expose principalId and tenantId. The example uses the `workspace.identity.principalId`though as far as I can tell - typescript will go bananas at the thought of using it (as it does with me). Is this an issue with type declarations or something?better-shampoo-48884
03/14/2021, 7:29 AMProperty 'principalId' does not exist on type 'Output<EncryptionSetIdentityResponse | undefined>'.
better-shampoo-48884
03/14/2021, 7:31 AMbetter-shampoo-48884
03/14/2021, 8:06 AMbetter-shampoo-48884
03/14/2021, 8:06 AMtall-librarian-49374
03/14/2021, 8:09 AMapply
. Responded in the issue.better-shampoo-48884
03/14/2021, 8:09 AMprincipalId: diskEncryption.identity.apply(identity => identity?.principalId).apply(principalId => principalId ?? "<preview>")
better-shampoo-48884
03/14/2021, 8:13 AM