Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Individual function deploy fails with Azure Credentials has not been set in ApimService #258

Closed
medikoo opened this issue Aug 20, 2019 · 1 comment
Labels
bug pr-pending Issues that have a pending PR associated with them v1 issues found on v1.x or feature requests

Comments

@medikoo
Copy link
Contributor

medikoo commented Aug 20, 2019

I have made successful deployments of service as whole. Still when I try to deploy an individual function via:

sls deploy function --function <func-name>

It crashes with:

 Error: Azure Credentials has not been set in ApimService
    at ApimService.BaseService (/Users/medikoo/npm-packages/serverless-azure-functions/lib/services/baseService.js:80:19)
    at new ApimService (/Users/medikoo/npm-packages/serverless-azure-functions/lib/services/apimService.js:66:28)
    at AzureApimFunctionPlugin.<anonymous> (/Users/medikoo/npm-packages/serverless-azure-functions/lib/plugins/apim/azureApimFunctionPlugin.js:69:39)
    at step (/Users/medikoo/npm-packages/serverless-azure-functions/lib/plugins/apim/azureApimFunctionPlugin.js:45:23)
    at Object.next (/Users/medikoo/npm-packages/serverless-azure-functions/lib/plugins/apim/azureApimFunctionPlugin.js:26:53)
    at /Users/medikoo/npm-packages/serverless-azure-functions/lib/plugins/apim/azureApimFunctionPlugin.js:20:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/medikoo/npm-packages/serverless-azure-functions/lib/plugins/apim/azureApimFunctionPlugin.js:16:12)
    at AzureApimFunctionPlugin.deploy (/Users/medikoo/npm-packages/serverless-azure-functions/lib/plugins/apim/azureApimFunctionPlugin.js:63:16)
    at /Users/medikoo/npm-packages/serverless/lib/classes/PluginManager.js:495:39
    at tryCatcher (/usr/local/lib/node_modules/bluebird/js/release/util.js:16:23)
    at Object.gotValue (/usr/local/lib/node_modules/bluebird/js/release/reduce.js:157:18)
    at Object.gotAccum (/usr/local/lib/node_modules/bluebird/js/release/reduce.js:144:25)
    at Object.tryCatcher (/usr/local/lib/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/bluebird/js/release/promise.js:517:31)
    at Promise._settlePromise (/usr/local/lib/node_modules/bluebird/js/release/promise.js:574:18)
    at Promise._settlePromiseCtx (/usr/local/lib/node_modules/bluebird/js/release/promise.js:611:10)
    at _drainQueueStep (/usr/local/lib/node_modules/bluebird/js/release/async.js:142:12)
    at _drainQueue (/usr/local/lib/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/usr/local/lib/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues (/usr/local/lib/node_modules/bluebird/js/release/async.js:17:14)
    at processImmediate (internal/timers.js:439:21)
    at process.topLevelDomainCallback (domain.js:131:23)
@medikoo medikoo added bug v1 issues found on v1.x or feature requests labels Aug 20, 2019
@medikoo medikoo changed the title sls deploy function fails with Azure Credentials has not been set in ApimService Individual function deploy fails with Azure Credentials has not been set in ApimService Aug 20, 2019
@tbarlow12
Copy link
Contributor

tbarlow12 commented Aug 26, 2019

The plugin does not support deployments of individual functions for the moment. Will add a log statement that explains this

@tbarlow12 tbarlow12 added the pr-pending Issues that have a pending PR associated with them label Aug 26, 2019
tbarlow12 added a commit that referenced this issue Aug 27, 2019
Azure Functions does not support deployments of individual functions. This throws an error if a user tries to target an individual function for deployment or deployment list.

Resolves #258
tbarlow12 added a commit that referenced this issue Sep 13, 2019
Azure Functions does not support deployments of individual functions. This throws an error if a user tries to target an individual function for deployment or deployment list.

Resolves #258
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug pr-pending Issues that have a pending PR associated with them v1 issues found on v1.x or feature requests
Projects
None yet
Development

No branches or pull requests

2 participants