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

Conversation

@tbarlow12
Copy link
Contributor

Updating the deployment process will take a few pull requests to keep them (relatively) small. Here are the changes included in this pull request.

  • Update default naming convention of Azure Storage account (and a utility function that assists with creating name)
  • Stubs for rollback enabled (currently switched off to avoid breaking tests, will switch on in future PR), which includes
    • Timestamping names of deployments
    • Timestamping names of packages
    • Initialization of deployment artifact container
  • Updates the LoginService to accept options, which is used in the AzureBlobStorageService to retrieve a storage-specific access token
  • Remove dead code from FunctionAppService

Resolves [AB#357], [AB#408], [AB#414], [AB#415]

@tbarlow12 tbarlow12 requested review from PIC123 and mydiemho June 27, 2019 22:23
};
}

private async runKuduCommand(functionApp: Site, command: string) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not being used anywhere

Copy link
Contributor

@PIC123 PIC123 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! Adding the options to the login service is what is going to help with both caching the login credentials and specifying region

@tbarlow12 tbarlow12 force-pushed the tabarlow/deploy-update branch from 070d2bb to 1278669 Compare June 28, 2019 18:52
deploy:
# Rollback enabled, deploying to blob storage
# Default is true
# If false, deploys directly to function app
Copy link
Contributor

Choose a reason for hiding this comment

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

nice, i like the flexibility 👍

logStreamApiPath: "/api/logstream/application/functions/function/",
masterKeyApiPath: "/api/functions/admin/masterkey",
providerName: "azure",
rollbackEnabled: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

the README says the default is true -- whichever we choose, just need to be consistent.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, the default in this PR is false just to not break everything. The next PR will set this to true


private async getToken(): Promise<string> {
const authResponse = await AzureLoginService.login({
tokenAudience: "https://storage.azure.com/"
Copy link
Contributor

@pjlittle pjlittle Jun 28, 2019

Choose a reason for hiding this comment

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

if this (https://storage.azure.com/) is only used here, I'm good, otherwise let's promote to a const somewhere.

Copy link
Contributor

@pjlittle pjlittle left a comment

Choose a reason for hiding this comment

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

Just a couple comments. Looks good - great foundation for rollback work.

@tbarlow12 tbarlow12 merged commit fd5e79a into dev Jun 28, 2019
@tbarlow12 tbarlow12 deleted the tabarlow/deploy-update branch June 28, 2019 19:36
tbarlow12 added a commit that referenced this pull request Sep 13, 2019
Updating the deployment process will take a few pull requests to keep them (relatively) small. Here are the changes included in this pull request.
- Update default naming convention of Azure Storage account (and a utility function that assists with creating name)
- Stubs for rollback enabled (currently switched off to avoid breaking tests, will switch on in future PR), which includes
    - Timestamping names of deployments
    - Timestamping names of packages
    - Initialization of deployment artifact container
- Updates the `LoginService` to accept options, which is used in the `AzureBlobStorageService` to retrieve a storage-specific access token
- Remove dead code from `FunctionAppService`

Resolves [AB#357], [AB#408], [AB#414], [AB#415]
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