sparse-intern-71089
04/03/2020, 8:37 AMtall-librarian-49374
04/03/2020, 8:39 AMplain-eye-9759
04/03/2020, 8:46 AMwebhookEndpoint: {
url: pulumi.all([this.functionApp.id, this.functionApp.defaultHostname]).apply(async ([id, hostname]) => {
const creds = await AzureCliCredentials.create();
const client = new AzureServiceClient(creds);
const url = `<https://management.azure.com>${id}/host/default/listkeys?api-version=2018-02-01`;
const response = await client.sendRequest({ method: 'POST', url });
const systemKey = response.parsedBody.systemKeys.eventgrid_extension;
return `https://${hostname}/runtime/webhooks/eventgrid?functionName=${name}&code=${systemKey}`;
}),
},
plain-eye-9759
04/03/2020, 8:47 AMAzureCliCredentials.create();
please?tall-librarian-49374
04/03/2020, 8:50 AMFunctionApp
you can call functionApp.getHostKeys()
plain-eye-9759
04/03/2020, 8:50 AM@azure/ms-rest-nodeauth
plain-eye-9759
04/03/2020, 8:51 AMplain-eye-9759
04/03/2020, 8:56 AMError: Failed to retrieve the host keys: {"Code":"BadRequest","Message":"Encountered an error (ServiceUnavailable) from host runtime.","Target":null,"Details":[{"Message":"Encountered an error (ServiceUnavailable) from host runtime."},{"Code":"BadRequest"},{"ErrorEntity":{"Code":"BadRequest","Message":"Encountered an error (ServiceUnavailable) from host runtime."}}],"Innererror":null}
plain-eye-9759
04/03/2020, 9:07 AMfunctionApp.getHostKeys().apply(keys => keys.systemKeys)
didn't work either. same errortall-librarian-49374
04/03/2020, 9:13 AMplain-eye-9759
04/03/2020, 9:29 AM