Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch Azurite in a Teams Toolkit action #12931

Open
Benjiiim opened this issue Dec 17, 2024 Discussed in #12484 · 2 comments
Open

Launch Azurite in a Teams Toolkit action #12931

Benjiiim opened this issue Dec 17, 2024 Discussed in #12484 · 2 comments
Assignees
Labels
feature-request The issue is a feature request investigating needs attention This issue needs the attention of a contributor. needs more info Need user to provide more info TA:E2E Team Area: E2E

Comments

@Benjiiim
Copy link

Discussed in #12484

Creating an issue from the discussion as discussed with @therealjohn

Originally posted by Benjiiim October 2, 2024
Would it make sense to launch (and install?) Azurite in a Teams Toolkit action the same way the Test Tool is launched?
The goal would be to be able to emulate a Storage Account (to use the BlobsStorage storage middleware).

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Dec 17, 2024
Copy link

👋 Hi @Benjiiim,

Thanks for reaching out! We value your feedback and will do our best to address your issue promptly. Sometimes, we may need to investigate further, but we'll usually get back to you within 2 days with an update. Please stay tuned.

This is an automated response from our GitHub App. Here's the AI-generated message:

Launching Azurite in a Teams Toolkit Action

To launch Azurite in a Teams Toolkit action, similar to how the Test Tool is launched, you can follow these steps:

  1. Install Azurite: Ensure that Azurite is installed locally. You can install Azurite using npm:

    npm install -g azurite
  2. Configure Azurite: Update your Teams Toolkit project to include Azurite in the development setup. You can do this by modifying the tasks.json and launch.json files in your .vscode folder.

  3. Update tasks.json: Add a task to start Azurite.

    {
        "version": "2.0.0",
        "tasks": [
            {
                "label": "Start Azurite",
                "type": "shell",
                "command": "azurite",
                "isBackground": true,
                "problemMatcher": [
                    {
                        "pattern": [
                            {
                                "regexp": ".",
                                "file": 1,
                                "location": 2,
                                "message": 3
                            }
                        ],
                        "background": {
                            "activeOnStart": true,
                            "beginsPattern": ".",
                            "endsPattern": "."
                        }
                    }
                ],
                "presentation": {
                    "reveal": "always",
                    "panel": "shared"
                }
            }
        ]
    }
  4. Update launch.json: Ensure the Azurite task is executed before launching your application.

    {
        "version": "0.2.0",
        "configurations": [
            {
                "name": "Launch Teams App",
                "type": "pwa-chrome",
                "request": "launch",
                "url": "https://localhost:3000",
                "preLaunchTask": "Start Azurite",
                "webRoot": "${workspaceFolder}"
            }
        ]
    }

Additional Steps

  • Ensure Correct Configuration: Make sure your application is configured to use the local Azurite instance for storage operations. Typically, this involves setting the AZURE_STORAGE_CONNECTION_STRING environment variable to point to the Azurite endpoint.

  • Handling Dependencies: If you encounter any missing dependencies or issues related to the Teams Toolkit version, consider downgrading or manually installing the necessary packages. Refer to the GitHub discussion for further details.

Resources and Links

By following these steps, you should be able to integrate Azurite into your Teams Toolkit project, allowing you to emulate a Storage Account for development and testing purposes.

Note: This message was generated automatically by an AI-powered system.

@adashen adashen added investigating feature-request The issue is a feature request TA:E2E Team Area: E2E labels Dec 18, 2024
@jayzhang
Copy link
Member

@Benjiiim Thanks for reporting. Could you provide more information about the scenario of this feature: 1. When Azurite is needed to launch? User launch F5 to local debug? 2. What types of App need Azurite to emulate locally?(Tab, Bot, Declarative Agent or any app that depends on Azure Storage service?

@jayzhang jayzhang added the needs more info Need user to provide more info label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request The issue is a feature request investigating needs attention This issue needs the attention of a contributor. needs more info Need user to provide more info TA:E2E Team Area: E2E
Projects
None yet
Development

No branches or pull requests

3 participants