Giter Site home page Giter Site logo

DeployToXXXX_QA fails with error: Environment URL '' is not a valid http(s) URL, so it will not be shown as a link in the workflow graph. about al-go HOT 3 CLOSED

mail2joh avatar mail2joh commented on June 15, 2024
DeployToXXXX_QA fails with error: Environment URL '' is not a valid http(s) URL, so it will not be shown as a link in the workflow graph.

from al-go.

Comments (3)

freddydk avatar freddydk commented on June 15, 2024

Looking at the error above - it says that the refresh token is not valid - it might have expired - then you need to recreate the authcontext secret with a new value.

I think your settings looks fine, here are the recommendations:

If the name of the environment (in GitHJub) is XXX_QA and the name of the environment in BC admin center is BC_QA - then this setting should work:

"DeployToXXX_QA": {
  "EnvironmentName": "BC_QA",
  "SyncMode": "ForceSync"
}

We do not recommend setting properties, which you don't change.
The recommended authcontext secret should be created as an environment secret and be called AUTHCONTEXT. If you do not use environment secrets, you can still call it AUTHCONTEXT, then it will be used for all environments - or you can call it XXX_QA_AUTHCONTEXT.

from al-go.

mail2joh avatar mail2joh commented on June 15, 2024

Hi, now it works.
Thank you.

I do not know why, because had allready tried to update authcontext before I created this issue.

XXX_QA is set both as github and BC environment.
Do you mean that I should not use settings if they do not change default values.
So I should not use settings
"DeployToXXX_QA": {
"EnvironmentType": "SaaS",
"EnvironmentName": "XXX_QA",
"Branches": [
"main"
],
"Projects": "",
"SyncMode": "ForceSync",
"ContinuousDeployment": true,
"runs-on": "ubuntu-latest"
},
"DeployToXXX_UAT": {
"EnvironmentType": "SaaS",
"EnvironmentName": "XXX_UAT",
"Branches": [
"main"
],
"Projects": "
",
"SyncMode": "ForceSync",
"ContinuousDeployment": false,
"runs-on": "ubuntu-latest"
},

but use only these settings:
"DeployToXXX_QA": {
"SyncMode": "ForceSync",
"runs-on": "ubuntu-latest"
},
"DeployToXXX_UAT": {
"SyncMode": "ForceSync",
"ContinuousDeployment": false,
"runs-on": "ubuntu-latest"
},

I tried both setting now when Publish worked and both settings worked.

from al-go.

freddydk avatar freddydk commented on June 15, 2024

Yes, at https://aka.ms/algosettings#deployto you can see the defaults for these things and for this:

EnvironmentType is SaaS by default - no need to set that
EnvironmentName is the same as the github environment name - no need to set that
branches is main by default.
projects is * by default
runs-on defaults to whatever runs-on is globally - no need to set that.

The rest is special - you should set that.

from al-go.

Related Issues (20)

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.