Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Conversation

@wbreza
Copy link
Contributor

@wbreza wbreza commented Jun 25, 2019

The SCM domain is different based on the type of function app deployment. In a typical function app, the SCM domain is always {appName}.scm.azurewebsites.net.

When deploying a function into an App Service Environment (ASE) the SCM domain is a sub domain off of the ASE, ex) {appName}.scm.{asePath}.p.azurewebsites.net

This fix addresses the difference in finding the correct SCM domain to deploy the zip package.

@wbreza wbreza requested review from mydiemho and tbarlow12 June 25, 2019 00:00
Copy link
Contributor

@mydiemho mydiemho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, just have one comment about the custom path.

],
}

const expectedUploadUrl = `https://${customApp.enabledHostNames[1]}/api/zipdeploy/`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does Azure provide some API where we can check for this? What if they change the scm domain url?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

heh. fair enough.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we include this as a comment so future developers know where this came from?

@wbreza wbreza merged commit d8cdbcf into dev Jun 25, 2019
@wbreza wbreza deleted the wabrez/bug-380 branch June 25, 2019 18:34
tbarlow12 pushed a commit that referenced this pull request Sep 13, 2019
#178)

The SCM domain is different based on the type of function app deployment. In a typical function app, the SCM domain is always {appName}.scm.azurewebsites.net.

When deploying a function into an App Service Environment (ASE) the SCM domain is a sub domain off of the ASE, ex) {appName}.scm.{asePath}.p.azurewebsites.net

This fix addresses the difference in finding the correct SCM domain to deploy the zip package.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants