Skip to content

Commit

Permalink
Change function to dotnet and add check for required roles
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-dou committed Feb 16, 2023
1 parent 45ab4e8 commit 030f4fa
Show file tree
Hide file tree
Showing 18 changed files with 75,562 additions and 218 deletions.
8 changes: 0 additions & 8 deletions .funcignore

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"recommendations": [
"ms-azuretools.vscode-azurefunctions",
"ms-python.python"
"ms-dotnettools.csharp"
]
}
7 changes: 3 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Python Functions",
"type": "python",
"name": "Attach to .NET Functions",
"type": "coreclr",
"request": "attach",
"port": 9091,
"preLaunchTask": "func: host start"
"processId": "${command:azureFunctions.pickProcess}"
}
]
}
9 changes: 4 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"azureFunctions.deploySubpath": ".",
"azureFunctions.scmDoBuildDuringDeployment": true,
"azureFunctions.pythonVenv": ".venv",
"azureFunctions.projectLanguage": "Python",
"azureFunctions.deploySubpath": "src/az-function/bin/Release/net6.0/publish",
"azureFunctions.projectLanguage": "C#",
"azureFunctions.projectRuntime": "~4",
"debug.internalConsoleOptions": "neverOpen",
"azureFunctions.projectLanguageModel": 2
"azureFunctions.projectSubpath": "src/az-function",
"azureFunctions.preDeployTask": "publish (functions)"
}
106 changes: 80 additions & 26 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,81 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "func",
"label": "func: host start",
"command": "host start",
"problemMatcher": "$func-python-watch",
"isBackground": true,
"dependsOn": "pip install (functions)"
},
{
"label": "pip install (functions)",
"type": "shell",
"osx": {
"command": "${config:azureFunctions.pythonVenv}/bin/python -m pip install -r requirements.txt"
},
"windows": {
"command": "${config:azureFunctions.pythonVenv}/Scripts/python -m pip install -r requirements.txt"
},
"linux": {
"command": "${config:azureFunctions.pythonVenv}/bin/python -m pip install -r requirements.txt"
},
"problemMatcher": []
}
]
}
"version": "2.0.0",
"tasks": [
{
"label": "clean (functions)",
"command": "dotnet",
"args": [
"clean",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"type": "process",
"problemMatcher": "$msCompile",
"options": {
"cwd": "${workspaceFolder}/src/az-function"
}
},
{
"label": "build (functions)",
"command": "dotnet",
"args": [
"build",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"type": "process",
"dependsOn": "clean (functions)",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$msCompile",
"options": {
"cwd": "${workspaceFolder}/src/az-function"
}
},
{
"label": "clean release (functions)",
"command": "dotnet",
"args": [
"clean",
"--configuration",
"Release",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"type": "process",
"problemMatcher": "$msCompile",
"options": {
"cwd": "${workspaceFolder}/src/az-function"
}
},
{
"label": "publish (functions)",
"command": "dotnet",
"args": [
"publish",
"--configuration",
"Release",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"type": "process",
"dependsOn": "clean release (functions)",
"problemMatcher": "$msCompile",
"options": {
"cwd": "${workspaceFolder}/src/az-function"
}
},
{
"type": "func",
"dependsOn": "build (functions)",
"options": {
"cwd": "${workspaceFolder}/src/az-function/bin/Debug/net6.0"
},
"command": "host start",
"isBackground": true,
"problemMatcher": "$func-dotnet-watch"
}
]
}
57 changes: 0 additions & 57 deletions auth.py

This file was deleted.

10 changes: 0 additions & 10 deletions data_handler.py

This file was deleted.

37 changes: 0 additions & 37 deletions function_app.py

This file was deleted.

48 changes: 0 additions & 48 deletions getting_started.md

This file was deleted.

15 changes: 0 additions & 15 deletions host.json

This file was deleted.

7 changes: 0 additions & 7 deletions requirements.txt

This file was deleted.

Loading

0 comments on commit 030f4fa

Please sign in to comment.