private async Task CriarAmbientePromptResultAsync(IDialogContext context, IAwaitable <string> result) { var webAppNameTarget = await result; var activity = context.Activity; var stateClient = activity.GetStateClient(); var userData = stateClient.BotState.GetUserData(activity.ChannelId, activity.From.Id); var subscriptionId = userData.GetProperty <string>("SUBSCRIPTION"); var applicationId = userData.GetProperty <string>("APPLICATIONID"); var secretKey = userData.GetProperty <string>("SECRETKEY"); var resourceGroupTarget = userData.GetProperty <string>("ACAO:CRIAR_AMBIENTE:RESOURCE_GROUP"); await ActionBuilder.CreateWebApp(subscriptionId, applicationId, secretKey, resourceGroupTarget, webAppNameTarget); await context.PostAsync($"Ambiente criado: https://{webAppNameTarget}.azurewebsites.net"); context.Wait(MessageReceived); }