This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dotnet new sln --name MySolution | |
dotnet new classlib --name MyClassLib --language c# | |
dotnet sln add MyClassLib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func new --name DisableSecretHttpTrigger --template HttpTrigger --language C# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AppModule : Module | |
{ | |
public override void Load(IServiceCollection services) | |
{ | |
... | |
services.AddAutoMapper(Assembly.GetAssembly(this.GetType())); | |
... | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logicAppResourceId=$(az logic workflow show \ | |
-g <resource_group_name> \ | |
-n <logic_app_name> \ | |
--query "id" -o tsv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": { | |
"logicApp": { | |
"name": "my-logic-app", | |
"trigger": "manual" | |
}, | |
"resourceId": "[resourceId('Microsoft.Logic/workflows/triggers', variables('logicApp').name, variables('logicApp').trigger)]", | |
"apiVersion": "[providers('Microsoft.Logic', 'workflows').apiVersions[0]]" | |
}, | |
"resources": [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"IsEncrypted": false, | |
"Values": { | |
... | |
"OpenApi__Info__Version": "2.0.0", | |
"OpenApi__Info__Title": "Open API Sample on Azure Functions", | |
"OpenApi__Info__Description": "A sample API that runs on Azure Functions either 1.x or 2.x using Open API specification.", | |
"OpenApi__Info__TermsOfService": "https://github.com/aliencube/AzureFunctions.Extensions", | |
"OpenApi__Info__Contact__Name": "Aliencube Community", | |
"OpenApi__Info__Contact__Email": "no-reply@aliencube.org", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": { | |
"serviceBus": { | |
"name": "my-service-bus", | |
"sasKeyName": "RootManageSharedAccessKey" | |
}, | |
"resourceId1": "[resourceId('Microsoft.ServiceBus/namespaces', variables('serviceBus').name)]", | |
"resourceId2": "[resourceId('Microsoft.ServiceBus/namespaces/authorizationRules', variables('serviceBus').name, variables('serviceBus').sasKeyName)]", | |
"apiVersion": "[providers('Microsoft.ServiceBus', 'namespaces').apiVersions[0]]" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Values": { | |
"FUNCTIONS_WORKER_RUNTIME": "dotnet" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
process_id=$(sudo lsof -nP -i4TCP:7071 | grep LISTEN | awk '{print $2}') | |
sudo kill -9 $process_id |