Skip to content

App Deployment Window

Zayd Zori edited this page Apr 19, 2022 · 8 revisions

What is it?

Tanzu-toolkit-for-visual-studio provides a convenient dialog for pushing your apps to Tanzu Application Service ("TAS").

Where can I find it?

This window can be accessed by right-clicking on a project in the Visual Studio Solution Explorer & selecting "Push To Tanzu Application Service".

How do I use it?

0-0-3-app-deployment.mp4

The most straightforward way to configure your app deployment is to provide the deployment dialog with an App Manifest.

Any app manifest (named "manifest.yaml" or "manifest.yml") that exists in the root directory of the project being pushed will be used preferentially. You can specify a particular app manifest file to use by clicking on the folder icon in the "App Manifest" selection field.

The values provided in any valid app manifest will be used when pushing the app to TAS.

While providing an app manifest is not a requirement, 3 values must be filled out at a bare minimum before an app can be pushed:

  1. App name
  2. Target organization in TAS
  3. Target space in TAS

If you'd like to make ad hoc adjustments to specific values before deploying your app, clicking "More Options" will display more fields that allow for customization of:

  • Path (which directory to push)
  • Buildpacks
  • Stack
  • Start command
  • Services

Changing values under "More Options" will not make permanent adjustments to any given manifest file; these changed values will be used for the next app deployment & forgotten about afterward. If you'd instead like to save any changes made to values under "More Options", clicking "Save As Manifest File..." will allow you to either create a new manifest yaml file or overwrite an old one with the updated values.

What's happening behind the scenes?

All values specified in this window are compiled into a temporary manifest file which is passed to the CF CLI as it executes a cf push command for your app. This temporary manifest is saved to the installation directory of this VS extension (c:\users\<user>\appdata\local\microsoft\visualstudio\<vs-instance>\extensions\vmware\tanzu toolkit for visual studio\<vsix-version> by default) and deleted after the cf push command is executed.