Skip to content

Commit

Permalink
Merge 17c6515 into 44e08a0
Browse files Browse the repository at this point in the history
  • Loading branch information
rijnhard committed Mar 25, 2019
2 parents 44e08a0 + 17c6515 commit b5410ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/providers/azure.md
Expand Up @@ -142,6 +142,7 @@ client.createServer(options, function (err, server) {
* `protocol`: specifies the transport protocol for the endpoint.

* `rdp.port`: (Optional. Windows servers only). The port to use for RDP on Windows servers.
* `emulator`: (Optional) enables support for the Azure emulator [Azure Storage Emulator settings](https://docs.microsoft.com/en-gb/azure/storage/common/storage-use-emulator#addressing-resources-in-the-storage-emulator), you still need to configure the credentials to what is expected by the emulator, e.g. account `devstoreaccount1`.

<br/>
<a name="azure-manage-cert"></a>
Expand Down
3 changes: 3 additions & 0 deletions lib/pkgcloud/azure/storage/client/index.js
Expand Up @@ -57,6 +57,9 @@ Client.prototype._getUrl = function (options) {
fragment = urlJoin(fragment, options.path);
}

if (this.config.emulator) {
return urlJoin(this.protocol + this.serversUrl, this.azureKeys.storageAccount, fragment);
}

return urlJoin(this.protocol + this.azureKeys.storageAccount + '.' + this.serversUrl + '/',
fragment);
Expand Down

0 comments on commit b5410ad

Please sign in to comment.