From 1abc710e1325530045ade069257f993faa9c17c9 Mon Sep 17 00:00:00 2001 From: Najeeb Mohammed Date: Tue, 26 Oct 2021 09:18:08 +0530 Subject: [PATCH 1/7] vars changed --- iac/backend.tf | 4 ++-- iac/terraform.tfvars | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/iac/backend.tf b/iac/backend.tf index bc4f08f..7af4972 100644 --- a/iac/backend.tf +++ b/iac/backend.tf @@ -1,8 +1,8 @@ terraform { backend "azurerm" { # modify the values for the storage account - storage_account_name = "sagaorchestratorstorage" - container_name = "testingterraform" + storage_account_name = "generalusage" + container_name = "terraform" key = "terraform.tfstate" } } \ No newline at end of file diff --git a/iac/terraform.tfvars b/iac/terraform.tfvars index 227b718..a6cd3fc 100644 --- a/iac/terraform.tfvars +++ b/iac/terraform.tfvars @@ -1,9 +1,9 @@ #this is a file with recommended variable names -prefix = "test" +prefix = "testnjb775" environment = "dev" location = "eastus" partition_count = "2" #failover location MUST be different than location, if same Terraform won't be able to create a Cosmos DB instance failover_location = "westus" -storage_account_name = "aminesstorage" -azure_function_app = "aminazure-functions" +storage_account_name = "aminesstoragenjb775" +azure_function_app = "aminazure-functionsnjb775" From 0d84e816f1f743aa1a6c0353e8a79c3bc929b53e Mon Sep 17 00:00:00 2001 From: Najeeb Mohammed Date: Tue, 26 Oct 2021 09:19:37 +0530 Subject: [PATCH 2/7] odified --- iac/terraform.tfvars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iac/terraform.tfvars b/iac/terraform.tfvars index a6cd3fc..324bfb6 100644 --- a/iac/terraform.tfvars +++ b/iac/terraform.tfvars @@ -6,4 +6,4 @@ partition_count = "2" #failover location MUST be different than location, if same Terraform won't be able to create a Cosmos DB instance failover_location = "westus" storage_account_name = "aminesstoragenjb775" -azure_function_app = "aminazure-functionsnjb775" +azure_function_app = "aminazure-Functionsnjb775" From ca61f7df5b0145a21ca2337530cfb01b025f9ac1 Mon Sep 17 00:00:00 2001 From: Najeeb Mohammed Date: Tue, 26 Oct 2021 09:28:22 +0530 Subject: [PATCH 3/7] updated function name --- iac/terraform.tfvars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iac/terraform.tfvars b/iac/terraform.tfvars index 324bfb6..aac4e86 100644 --- a/iac/terraform.tfvars +++ b/iac/terraform.tfvars @@ -6,4 +6,4 @@ partition_count = "2" #failover location MUST be different than location, if same Terraform won't be able to create a Cosmos DB instance failover_location = "westus" storage_account_name = "aminesstoragenjb775" -azure_function_app = "aminazure-Functionsnjb775" +azure_function_app = "aminazure-FUnctionsnjb775" From 39d8fffc0345f2505696295b9039360596f65532 Mon Sep 17 00:00:00 2001 From: Najeeb Mohammed Date: Tue, 26 Oct 2021 09:33:03 +0530 Subject: [PATCH 4/7] corrected resource names --- iac/terraform.tfvars | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iac/terraform.tfvars b/iac/terraform.tfvars index aac4e86..9c341a1 100644 --- a/iac/terraform.tfvars +++ b/iac/terraform.tfvars @@ -5,5 +5,5 @@ location = "eastus" partition_count = "2" #failover location MUST be different than location, if same Terraform won't be able to create a Cosmos DB instance failover_location = "westus" -storage_account_name = "aminesstoragenjb775" -azure_function_app = "aminazure-FUnctionsnjb775" +storage_account_name = "aminesstorage" +azure_function_app = "aminazure-function" From 80970c065eb5c388d9ba986ecc724b3d40ce8ec8 Mon Sep 17 00:00:00 2001 From: Najeeb Mohammed Date: Wed, 27 Oct 2021 08:47:20 +0530 Subject: [PATCH 5/7] updated config --- src/Saga.Functions/local.settings.json | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/Saga.Functions/local.settings.json diff --git a/src/Saga.Functions/local.settings.json b/src/Saga.Functions/local.settings.json new file mode 100644 index 0000000..1eec6ee --- /dev/null +++ b/src/Saga.Functions/local.settings.json @@ -0,0 +1,36 @@ +{ + "IsEncrypted": false, + "Values": { + "CosmosDbConnectionString": "AccountEndpoint=https://testnjb775-cosmos-sagalogic-db-70493.documents.azure.com:443/;AccountKey=cNfNr4vXTiSfacwxEX3fty3UCGoRxLAVUEUYWBpiRrClJ9q2PPDQyUaw0AQvYIgRw6shehJmlwZBYUT2HytgMQ==;", + "CosmosDbDatabaseName": "testnjb775-cosmos-sql-db", + "CosmosDbOrchestratorCollectionName": "orchestrator", + "CosmosDbValidatorCollectionName": "validator", + "CosmosDbTransferCollectionName": "transfer", + "CosmosDbReceiptCollectionName": "receipt", + "CosmosDbSagaCollectionName": "saga", + + "EventHubsNamespaceConnection": "Endpoint=sb://testnjb775-ehnamespace.servicebus.windows.net/;SharedAccessKeyName=testnjb775-nsauth-rule;SharedAccessKey=qdaNZ4SdXiIIQGl6eFPU/yOfZ9ERzJ3Cadnj11qD+9o=", + "ValidatorEventHubName": "validator", + "TransferEventHubName": "transfer", + "ReceiptEventHubName": "receipt", + "ReplyEventHubName": "saga-reply", + + "EventHubsProducerMaxRetryAttempts": 3, + "ActivityMaxRetryAttempts": 3, + "ActivityRetryInterval": 5, + + "EventHubsProducerExceptionsAllowedBeforeBreaking": 5, + "EventHubsProducerBreakDuration": 10, + + "OrchestratorActivityTimeoutSeconds": 60, + "ValidatorTimeoutSeconds": 60, + "TransferTimeoutSeconds": 60, + "ReceiptTimeoutSeconds": 60, + + "CreateRandomReceiptResult": true, + "ReceiptSuccessProbability": 100, + + "AzureWebJobsStorage": "DefaultEndpointsProtocol=https;AccountName=testnjb775aminesstorage;AccountKey=eM9de8h7zEymoAmqj2ZXu45DWuu5t/kn+m1+1ogh+PB7ZSctLXB9S4zpa+EvgfQdNZeVSJxO6r7R87pRr9lz/A==;EndpointSuffix=core.windows.net", + "FUNCTIONS_WORKER_RUNTIME": "dotnet" + } +} \ No newline at end of file From c611a5edf6abb81054eff7447671a2e16ec790f5 Mon Sep 17 00:00:00 2001 From: Najeeb Mohammed Date: Wed, 27 Oct 2021 08:51:57 +0530 Subject: [PATCH 6/7] test --- src/Saga.Functions/Startup.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Saga.Functions/Startup.cs b/src/Saga.Functions/Startup.cs index f012bab..f9dfe98 100644 --- a/src/Saga.Functions/Startup.cs +++ b/src/Saga.Functions/Startup.cs @@ -10,6 +10,8 @@ public class Startup : FunctionsStartup public override void Configure(IFunctionsHostBuilder builder) { builder.Services.AddHttpClient(); + + //adding some changes } } } From b23b375fab83cadf859213c2055dc721cd45d4f3 Mon Sep 17 00:00:00 2001 From: Najeeb Mohammed Date: Wed, 27 Oct 2021 08:55:05 +0530 Subject: [PATCH 7/7] test --- src/Saga.Functions/Startup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Saga.Functions/Startup.cs b/src/Saga.Functions/Startup.cs index f9dfe98..8320768 100644 --- a/src/Saga.Functions/Startup.cs +++ b/src/Saga.Functions/Startup.cs @@ -11,7 +11,7 @@ public override void Configure(IFunctionsHostBuilder builder) { builder.Services.AddHttpClient(); - //adding some changes + //adding some changes 1 } } }