# ember-deploy-azure

> This is the azure-adapter implementation to use both Azure Tables & CDN with [ember-cli-deploy](https://github.com/ember-cli/ember-cli-deploy).

Latest version **0.0.10** (published 2015-06-27) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install ember-deploy-azure
pnpm add ember-deploy-azure
yarn add ember-deploy-azure
bun add ember-deploy-azure
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.10 |
| Published | 2015-06-27 |
| First published | 2015-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 8 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Maintainers | duizendnegen |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/ember-deploy-azure
- Repository: https://github.com/duizendnegen/ember-deploy-azure
- Issues: https://github.com/duizendnegen/ember-deploy-azure/issues
- npm.io page: https://npm.io/package/ember-deploy-azure

## Dependencies (8)

- [mime](https://npm.io/package/mime.md) ^1.2.11
- [rsvp](https://npm.io/package/rsvp.md) ^3.0.14
- [walk](https://npm.io/package/walk.md) ^2.3.9
- [chalk](https://npm.io/package/chalk.md) ^0.5.1
- [broccoli](https://npm.io/package/broccoli.md) ^0.13.2
- [core-object](https://npm.io/package/core-object.md) ^1.1.0
- [azure-storage](https://npm.io/package/azure-storage.md) ^0.4.2
- [broccoli-gzip](https://npm.io/package/broccoli-gzip.md) ^0.2.0

## Recent versions

- 0.0.10 (latest) — 2015-06-27
- 0.0.9 — 2015-06-10
- 0.0.8 — 2015-03-08
- 0.0.7 — 2015-02-23
- 0.0.6 — 2015-01-28
- 0.0.5 — 2015-01-28
- 0.0.4 — 2015-01-27
- 0.0.3 — 2015-01-23
- 0.0.2 — 2015-01-21
- 0.0.1 — 2015-01-20

## README

# Ember-deploy-azure

This is the azure-adapter implementation to use both Azure Tables & CDN with
[ember-cli-deploy](https://github.com/ember-cli/ember-cli-deploy).

## Installation & usage

* `npm install ember-cli-deploy ember-deploy-azure --save-dev`
* update deploy.json to feature azure-adapters (see below)

## Accessing the index uploaded by index-adapter

Server-side multiple strategies are possible to serve the index.html-file.
- C#-based, https://gist.github.com/duizendnegen/85b5c4a7b7eef28f0756
- Node.js-based, [node-ember-cli-deploy-azure-tables](https://github.com/jamesdixon/node-ember-cli-deploy-azure-tables) courtesy of [jamesdixon](https://github.com/jamesdixon/)

## Configuring deployment

Both the index-adapter and the asset-adapter are specified by using a `type: 'azure'` configuration.

A container name can be specified in your `deploy.js` file by using the `containerName` property. If no container name is specified, it will default to _emberdeploy_.

See below an example script featuring staging & production.

```javascript
staging: {
    buildEnv: 'staging',
    store: {
      type: 'azure',
      storageAccount: "my-storage-account",
      storageAccessKey: "my-access-key"
    },
    assets: {
      type: 'azure',
      gzip: false,
      storageAccount: "my-storage-account",
      storageAccessKey: "my-access-key"
      containerName: 'myapp-staging'
    }
  },

  production: {
    store: {
      type: 'azure',
      storageAccount: "my-storage-account",
      storageAccessKey: "my-access-key"
    },
    assets: {
      type: 'azure',
      gzip: false,
      storageAccount: "my-storage-account",
      storageAccessKey: "my-access-key"
      containerName: 'myapp-prod'
    }
  }

```

## Accessing the assets, using a CDN

Files are uploaded to `https://<STORAGE_NAME>.blob.core.windows.net/[CONTAINER_NAME]/<FILENAME>`.
A CDN can be pointed to this blob.

Be sure to use the right fingerprinting to appropriately request the deployed assets: http://www.ember-cli.com/asset-compilation/ - this can either be `https://<STORAGE_NAME>.blob.core.windows.net/[CONTAINER_NAME]/` or `http://<CDN>.vo.msecnd.net/[CONTAINER_NAME]/`

---
_Source: https://npm.io/package/ember-deploy-azure · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
