Giter Site home page Giter Site logo

Deploy issue about adaptivecards-templates HOT 16 OPEN

microsoft avatar microsoft commented on May 16, 2024
Deploy issue

from adaptivecards-templates.

Comments (16)

gracez72 avatar gracez72 commented on May 16, 2024 1

Hi, thanks for raising the issue! Do you have error details for the template deployment and was this deployed using the Deploy to Azure button in the dev branch?

from adaptivecards-templates.

gracez72 avatar gracez72 commented on May 16, 2024 1

Adding any errors/details here on this issue would be great so others can also refer to it if they get similar errors! The server_farm_id refers to the Azure App Service Plan and is usually in the following format: /subscriptions/{app_service_plan_subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Web/serverfarms/{app_service_plan_name}
We are currently still editing the deploy to azure process and will update the documentation and input names so that is more clear.

The 'DatabaseAccount name already exists' error may be because a previous deploy attempt successfully created the cosmosDB. If you check under the 'Deployments' header in the resource group, creating a new cosmosDB might have failed because it was already deployed before, but the other resources should be able to use the existing database account and successfully deploy.

from adaptivecards-templates.

viperfx avatar viperfx commented on May 16, 2024

from adaptivecards-templates.

gracez72 avatar gracez72 commented on May 16, 2024

If you click deploy after using the button, there should be a link next to the "Deployment Failed" message that says "View Error". If you click that link, there should be a popup that gives the error details. If that doesn't provide any additional details, you can also go to the Azure portal and to the resource group that you are attempting to deploy to. There should be header called "Deployments" under "Settings" on the left side navigation bar, and if you click it, it will provide a summary of which resources failed to create and a link to "Operation details", which provide detailed summaries of why the particular resource failed.

from adaptivecards-templates.

viperfx avatar viperfx commented on May 16, 2024

Just tried that, and all the past event are success. Will try deploy again and see what happens.

from adaptivecards-templates.

viperfx avatar viperfx commented on May 16, 2024

One doubt I had - when I create a App Service Plan - should the OS be linux or windows?

from adaptivecards-templates.

viperfx avatar viperfx commented on May 16, 2024

Ive tried it again, and no further details were given. When I click View Error, a similar message to the one at the top is provided.

Ive checked deployments and there are no entries for the deployment showing up in the resource group I selected.

from adaptivecards-templates.

gracez72 avatar gracez72 commented on May 16, 2024

The OS for the App Service Plan should be linux! Another thing you could try if you use Powershell and have the tracking id from the message, is to run Get-AzLog -CorrelationId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx -DetailedOutput, this should provide the detailed error messages. I will try to deploy using the button as well and see if I run into similar issues.

from adaptivecards-templates.

viperfx avatar viperfx commented on May 16, 2024

Okay. Would you like me to put the return here? or shall I send it to your team via email? Do you have a dev team alias I can reach out on?

from adaptivecards-templates.

viperfx avatar viperfx commented on May 16, 2024

It looks like the main error is "The specified app service plan was not found."

Can you confirm the instructions for how to set the server_farm_id

PS - The input labels are very confusing and the documentation on some fields and where to get them are missing.

from adaptivecards-templates.

viperfx avatar viperfx commented on May 16, 2024

Managed to get past when I changed the region.

Deploying started .. up to "Updating Microsoft.DocumentDB/databaseAccounts"

Failed with this error

DatabaseAccount name 'acms-cosmos' already exists. ActivityId: 86fcf2bb-5c92-409e-beb5-0cb232436d0f, Microsoft.Azure.Documents.Common/2.10.0

from adaptivecards-templates.

viperfx avatar viperfx commented on May 16, 2024

I have checked and there is no Cosmos DB that exists with that name.

{
  "code": "DeploymentFailed",
  "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
  "details": [
    {
      "code": "BadRequest",
      "message": "{\r\n  \"code\": \"BadRequest\",\r\n  \"message\": \"DatabaseAccount name 'acms-cosmos' already exists.\\r\\nActivityId: f1dea428-3802-4c2d-8b6f-f3cc8c8d11ad, Microsoft.Azure.Documents.Common/2.10.0\"\r\n}"
    }
  ]
}

from adaptivecards-templates.

viperfx avatar viperfx commented on May 16, 2024

I had to deploy it, to let it fail, then edit the template manually so I can change the database name in the variables. I redeployed, and the cosmosDB was created. Everything was running, but when I went to the site I get ":( Application Error". Clearly there are quite a few bugs, and I think I will let the project mature a bit before I try again.

from adaptivecards-templates.

gracez72 avatar gracez72 commented on May 16, 2024

Thank you for the comments, I will fix the CosmosDB bug and update the documentation with the issues that you ran into. I have encountered "Application Error" before and I was able to fix it by restarting the Azure App Service, but I'll test the deployment process again and document any fixes to errors I encounter.

from adaptivecards-templates.

viperfx avatar viperfx commented on May 16, 2024

Just an update - I was able to make the deploy "successfully"

But got the following when visiting the site:

image

from adaptivecards-templates.

viperfx avatar viperfx commented on May 16, 2024

Is there any updates on this issue?

from adaptivecards-templates.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.