https://pulumi.com logo
#azure
Title
# azure
a

ancient-megabyte-79588

05/06/2020, 5:23 PM
Hey all.. I've run into a problem when upgrading to Pulumi 2.0...
Copy code
const clientConfig = azure.core.getClientConfig();
export const subscriptionId = clientConfig.subscriptionId;
c

clever-sunset-76585

05/06/2020, 5:32 PM
Functions in 2.0 are now async by default. https://www.pulumi.com/docs/reference/pkg/azure/core/getclientconfig/ You could simply wrap that with a `pulumi.output`:
Copy code
export const subscriptionId = pulumi.output(clientConfig).apply(c => c.subscriptionId);
Please see our migration guide for 2.0 here: https://www.pulumi.com/docs/get-started/install/migrating-2.0/
3 Views