{"id":16827361,"url":"https://github.com/jeffhollan/grpc-sample-dotnet","last_synced_at":"2025-08-03T10:04:40.975Z","repository":{"id":152719509,"uuid":"431328211","full_name":"jeffhollan/grpc-sample-dotnet","owner":"jeffhollan","description":".NET application of a gRPC client and server, built for Azure Container Apps","archived":false,"fork":false,"pushed_at":"2021-11-25T16:38:36.000Z","size":16,"stargazers_count":17,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-02T17:09:20.885Z","etag":null,"topics":["azure","azure-container-apps","grpc"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeffhollan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-11-24T02:59:24.000Z","updated_at":"2024-04-04T20:50:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e377d64-8205-4eec-9022-3b094dec9a26","html_url":"https://github.com/jeffhollan/grpc-sample-dotnet","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jeffhollan/grpc-sample-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffhollan%2Fgrpc-sample-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffhollan%2Fgrpc-sample-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffhollan%2Fgrpc-sample-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffhollan%2Fgrpc-sample-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeffhollan","download_url":"https://codeload.github.com/jeffhollan/grpc-sample-dotnet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffhollan%2Fgrpc-sample-dotnet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268525073,"owners_count":24264095,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","azure-container-apps","grpc"],"created_at":"2024-10-13T11:20:43.320Z","updated_at":"2025-08-03T10:04:40.966Z","avatar_url":"https://github.com/jeffhollan.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gRPC Sample : .NET 6\n\n### View this sample in other languages\n| [C#](https://github.com/jeffhollan/grpc-sample-dotnet) | [Go](https://github.com/jeffhollan/grpc-sample-go) | [Java](https://github.com/jeffhollan/grpc-sample-java) | [JavaScript](https://github.com/jeffhollan/grpc-sample-node) | [Python](https://github.com/jeffhollan/grpc-sample-python) |\n| ---  | --- | --- | --- | --- |\n\nThe following is a sample of a gRPC client calling another container running gRPC server to execute a `SayHello` call.  The solution runs on Azure Container Apps.\n\n## Deploy the sample\n\n### Azure CLI\n\n```bash\nRESOURCE_GROUP=\"grpc-sample\"\nLOCATION=\"canadacentral\"\nLOG_ANALYTICS_WORKSPACE=\"aca-logs\"\nACA_ENVIRONMENT=\"aca-env\"\n\naz extension add \\\n  --source https://workerappscliextension.blob.core.windows.net/azure-cli-extension/containerapp-0.2.0-py2.py3-none-any.whl\naz provider register --namespace Microsoft.Web\n\naz group create \\\n  --name $RESOURCE_GROUP \\\n  --location \"$LOCATION\"\n\naz monitor log-analytics workspace create \\\n  --resource-group $RESOURCE_GROUP \\\n  --workspace-name $LOG_ANALYTICS_WORKSPACE\n\nLOG_ANALYTICS_WORKSPACE_CLIENT_ID=`az monitor log-analytics workspace show --query customerId -g $RESOURCE_GROUP -n $LOG_ANALYTICS_WORKSPACE --out tsv`\nLOG_ANALYTICS_WORKSPACE_CLIENT_SECRET=`az monitor log-analytics workspace get-shared-keys --query primarySharedKey -g $RESOURCE_GROUP -n $LOG_ANALYTICS_WORKSPACE --out tsv`\n\n# Create the Container Apps Environment\naz containerapp env create \\\n  --name $ACA_ENVIRONMENT \\\n  --resource-group $RESOURCE_GROUP \\\n  --logs-workspace-id $LOG_ANALYTICS_WORKSPACE_CLIENT_ID \\\n  --logs-workspace-key $LOG_ANALYTICS_WORKSPACE_CLIENT_SECRET \\\n  --location \"$LOCATION\"\n\n# Create the gRPC backend internal service\naz containerapp create \\\n  --name grpc-backend \\\n  --resource-group $RESOURCE_GROUP \\\n  --environment $ACA_ENVIRONMENT \\\n  --image ghcr.io/jeffhollan/grpc-sample-dotnet/grpc-backend:main \\\n  --ingress 'internal' \\\n  --target-port 8085 \\\n  --transport 'http2'\n\nGRPC_SERVER_ADDRESS=$(az containerapp show \\\n  --resource-group $RESOURCE_GROUP \\\n  --name grpc-backend \\\n  --query configuration.ingress.fqdn -otsv)\n\n# Create the HTTPS frontend gRPC client container\naz containerapp create \\\n  --name https-frontend \\\n  --resource-group $RESOURCE_GROUP \\\n  --environment $ACA_ENVIRONMENT \\\n  --image ghcr.io/jeffhollan/grpc-sample-dotnet/https-frontend:main \\\n  --environment-variables GRPC_SERVER_ADDRESS=https://$GRPC_SERVER_ADDRESS \\\n  --target-port 80 \\\n  --ingress 'external' \\\n  --query configuration.ingress.fqdn\n```\n\n### Try the solution\n\nAfter deploying, get the FQDN of the https-frontend and call it and hit the `/hello` endpoint. It will call the gRPC backend (via gRPC) and return a message to the client.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffhollan%2Fgrpc-sample-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeffhollan%2Fgrpc-sample-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffhollan%2Fgrpc-sample-dotnet/lists"}