Azure Storage extension for VS Code
Перейти к файлу
Alex Weininger bc3ecc60e0
Update to track 2 (#1257)
* Update to track 2

* Fixup
2023-07-14 19:45:38 -07:00
.azure-pipelines Use Node 16 in CI (#1229) 2023-03-28 15:06:18 -04:00
.github Move workflow from root to workflows folder (#1100) 2022-07-26 14:13:22 -07:00
.vscode Merge unified into main (#1053) 2022-05-13 16:57:35 -07:00
resources v0.14.0 App Centric Release prep (#1063) 2022-05-24 09:38:32 -04:00
src Add nice error when creating directories is not supported (#1246) 2023-06-09 13:33:05 -07:00
test Update to track 2 (#1257) 2023-07-14 19:45:38 -07:00
.eslintignore Switch to ESLint (#925) 2021-02-05 17:03:37 -08:00
.eslintrc.js Switch to shared ESLint config (#994) 2021-08-12 11:39:01 -07:00
.gitattributes Create .gitattributes (#1099) 2022-07-26 14:13:55 -07:00
.gitignore Engineering work to make our repos more consistent 👷🏻‍♂️ (#656) 2020-03-31 10:40:16 -07:00
.nvmrc Add .nvmrc file (#1190) 2022-12-07 13:38:32 -08:00
.vscodeignore Engineering work to make our repos more consistent 👷🏻‍♂️ (#656) 2020-03-31 10:40:16 -07:00
CHANGELOG.md v0.15.3 prep: Bump version, update changelog, and generate notice (#1248) 2023-06-12 15:55:40 -07:00
CODE_OF_CONDUCT.md Add Code of Conduct and Security docs from template (#965) 2021-04-14 10:57:06 -07:00
LICENSE.md Update README, ChangeLog, Package.json for 0.1.0 release. 2017-12-08 12:07:36 -08:00
NOTICE.html v0.15.3 prep: Bump version, update changelog, and generate notice (#1248) 2023-06-12 15:55:40 -07:00
README.md Fix readme badges (#1180) 2022-10-18 14:33:29 -04:00
SECURITY.md Add Code of Conduct and Security docs from template (#965) 2021-04-14 10:57:06 -07:00
SUPPORT.md Add support.md file (#991) 2021-08-06 16:50:42 -07:00
extension.bundle.ts Remove AzExtFsUtils from utils and use shared axext-utils impl (#1122) 2022-08-17 12:35:11 -07:00
gulpfile.ts Convert to T2 and azext packages (#1030) 2022-03-24 11:59:11 -07:00
main.js Easier debugging in a webpacked world 🕸📦🌎 (#653) 2020-03-17 15:49:21 -07:00
package-lock.json Update to track 2 (#1257) 2023-07-14 19:45:38 -07:00
package.json Update to track 2 (#1257) 2023-07-14 19:45:38 -07:00
tsconfig.json BlobContainerFS core logic (#1227) 2023-04-06 20:29:26 -04:00
webpack.config.js Update shared packages and vscode engine (#1230) 2023-03-29 17:17:45 -04:00

README.md

Azure Storage for Visual Studio Code (Preview)

Version Installs Build Status

Azure Storage is a Microsoft-managed service providing cloud storage that is highly available, secure, durable, scalable, and redundant. Use the extension to deploy static websites and Single Page Apps (SPAs) and browse Azure Blob Containers, File Shares, Tables, and Queues.

Visit the wiki for additional information about the extension.

Sign up today for your free Azure account and receive 12 months of free popular services, $200 free credit and 25+ always free services 👉 Start Free.

Features

  • Explore/Create/Delete Blob Containers, File Shares, Queues, Tables and Storage Accounts
  • Create, Edit, and Delete Block Blobs and Files
  • Upload and Download Blobs, Files, and Folders
  • Access Connection String and Primary Key
  • Open in Storage Explorer for memory or computationally heavy tasks, or for Page and Append Blob support.

Installation

  1. Download and install the Azure Storage extension for Visual Studio Code
  2. Once complete, you'll see an Azure icon in the Activity Bar

    If your activity bar is hidden, you won't be able to access the extension. Show the Activity Bar by clicking View > Appearance > Show Activity Bar

  3. Sign in to your Azure Account by clicking Sign in to Azure...

    If you don't already have an Azure Account, click "Create a Free Azure Account" for a free 30-day account with $200 in Azure credits to try out any combination of services.

Deploy your Single Page App to Azure Storage

Once you are signed in to your Azure account and you have your app open in Visual Studio Code, right click the Storage accounts item and select "Create Storage Account... (Advanced)"

Deploy from Storage

  1. Type a globally unique name for your Storage Account and press Enter. Valid characters for an storage account name are 'a-z' and '0-9'
  2. Create a new Resource Group and accept the default name
  3. Choose a location in a region near you or near other services you may need to access

    It may take up to a minute for the account to be created

  4. When prompted, choose "Enable website hosting" to configure your storage account for static site hosting
  5. Enter 'index.html' for the index document path
  6. Enter 'index.html' for the 404 error document path

    Index.html is used for the error document because modern Single Page Applications (SPAs) such as React will handle errors in the client. For classic static websites, use the error document to customize your 404 page.

Activity Log

Once you have created your Storage Account, right click on the Storage Account and select "Deploy to Static Website via Azure Storage...".

Deploy from Storage

Tip: Looking for a sample app to deploy? Run npx create-react-app my-react-app to create one

Make sure you've compiled your app (run npm run build if you created a sample from create-react-app) prior to deploying it to Azure.

Select the build output from your current workspace if you have your app open already or browse to the directory containing your compiled application code > If you have a build, out, or dist directory, you'll see it as an option to deploy from.

Once the deployment completes, click Browse to Website in the prompt to view your freshly deployed website.

Settings

Use these configuration settings to customize the Azure Storage extension.

  • azureStorage.showExplorer: Set to false to hide Azure Storage Explorer
  • azureStorage.preDeployTask: Set to the name of a task to be run before deploying a static website.
  • azureStorage.storageExplorerLocation: [Mac only] Set to "Path/To/Microsoft Azure Storage Explorer.app" to override the default location.
  • azureStorage.file.showSavePrompt: Set to false to prevent showing a warning dialog on File file save.
  • azureStorage.blob.showSavePrompt: Set to false to prevent showing a warning dialog on Blob file save.

Contributing

There are several ways you can contribute to our repo:

  • Ideas, feature requests and bugs: We are open to all ideas and we want to get rid of bugs! Use the Issues section to report a new issue, provide your ideas or contribute to existing threads.
  • Documentation: Found a typo or strangely worded sentences? Submit a PR!
  • Code: Contribute bug fixes, features or design changes:
    • Clone the repository locally and open in VS Code.
    • Run "Extensions: Show Recommended Extensions" from the command palette and install all extensions listed under "Workspace Recommendations"
    • Open the terminal (press CTRL+ `) and run npm install.
    • To build, press F1 and type in Tasks: Run Build Task.
    • Debug: press F5 to start debugging the extension.

Before we can accept your pull request you will need to sign a Contribution License Agreement. All you need to do is to submit a pull request, then the PR will get appropriately labelled (e.g. cla-required, cla-norequired, cla-signed, cla-already-signed). If you already signed the agreement we will continue with reviewing the PR, otherwise system will tell you how you can sign the CLA. Once you sign the CLA all future PR's will be labeled as cla-signed.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Telemetry

VS Code collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. If you don't wish to send usage data to Microsoft you can set the telemetry.enableTelemetry setting to false. Learn more in our FAQ.

License

MIT