You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
When I make a sls deployment to Azure by means of github actions (new functions or changes in existing ones), my changes don't get deployed (although I don't see any errors or anything weird in the logs). When I do sls deploy locally - it all works just fine.
service: my-service
frameworkVersion: "2"
provider:
name: azure
region: West Europe
runtime: nodejs12
resourceGroup: resourceGroup
subscriptionId: subscriptionId
stage: dev
tags:
Application: Azure Infrastructure
CostCenter: A0300770
Environment: Development
apim:
apis:
- name: my-api
subscriptionRequired: false
displayName: My API
description: My API
protocols:
- https
path: /
authorization: none
cors:
allowCredentials: false
allowedOrigins:
- "*"
allowedMethods:
- GET
- POST
- PUT
- DELETE
- PATCH
allowedHeaders:
- "*"
exposeHeaders:
- "*"
plugins:
- serverless-azure-functions
- serverless-dotenv-plugin
package:
patterns:
- "!local.settings.json"
- "!.gitignore"
- "!.env"
- "!tmp/**"
- "!.git/**"
- "!.vscode/**"
functions:
# Stuff
getSwagger:
handler: src/handlers/swagger
events:
- http: true
x-azure-settings:
methods:
- get
route: v1/swagger.yaml
I've checked forums and places, and my configs don't look that very different from the examples.
Could you please kindly advice on what can be wrong and which settings (maybe in Azure) I need to look into?
The text was updated successfully, but these errors were encountered:
Small update: was able to reproduce the issue locally without github actions.
When deploying an app using service principle account, no changes appear for the function app (although I can see a package in deployment artifacts). Same operation but using my own account - and it all works just fine.
Both sp and my account have the same permissions.
Also, if to delete both function app and app service plan, it is being recreated with my account but fails with sp:
Serverless: {"error":{"code":"ResourceNotFound","message":"The Resource 'Microsoft.Web/sites/***' under resource group '***' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"}}
Error ---------------------------------------------------
Error: 'functionApp' cannot be null or undefined
at Function.Guard.null (/Users/maria.zubova/Projects/***i/node_modules/serverless-azure-functions/lib/shared/guard.js:27:19) ```
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is a Bug Report
Description
When I make a sls deployment to Azure by means of github actions (new functions or changes in existing ones), my changes don't get deployed (although I don't see any errors or anything weird in the logs). When I do
sls deploy
locally - it all works just fine.Here's an example of my github action:
And that's the serverless.yaml:
I've checked forums and places, and my configs don't look that very different from the examples.
Could you please kindly advice on what can be wrong and which settings (maybe in Azure) I need to look into?
The text was updated successfully, but these errors were encountered: