{"id":20038780,"url":"https://github.com/defra/ffc-azure-service-bus-scripts","last_synced_at":"2026-03-06T11:03:08.626Z","repository":{"id":41191351,"uuid":"447224373","full_name":"DEFRA/ffc-azure-service-bus-scripts","owner":"DEFRA","description":"Scripts to support Service Bus administration","archived":false,"fork":false,"pushed_at":"2024-11-19T15:10:08.000Z","size":91,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-02T06:28:21.722Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DEFRA.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}},"created_at":"2022-01-12T13:15:50.000Z","updated_at":"2024-11-19T15:11:15.000Z","dependencies_parsed_at":"2024-04-04T15:57:21.733Z","dependency_job_id":"e3023741-2c8c-464f-887c-c6d83930bb62","html_url":"https://github.com/DEFRA/ffc-azure-service-bus-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DEFRA/ffc-azure-service-bus-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fffc-azure-service-bus-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fffc-azure-service-bus-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fffc-azure-service-bus-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fffc-azure-service-bus-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DEFRA","download_url":"https://codeload.github.com/DEFRA/ffc-azure-service-bus-scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DEFRA%2Fffc-azure-service-bus-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30173359,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-13T10:32:47.992Z","updated_at":"2026-03-06T11:03:08.603Z","avatar_url":"https://github.com/DEFRA.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Service Bus Scripts\nScripts to support Azure Service Bus administration\n\n## Prerequisites\n- [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)\n- [yq](https://github.com/mikefarah/yq) for creating full service entities\n- user has already signed into target Azure tenant and subscription\n- user has sufficient permissions to manage Azure Service Bus entities\n\n### How to sign in to a specific tenant and subscription\n\n1. Using Azure CLI, run `az login` specifying the target tenant name\n\n    `az login --tenant \u003ctenant-name\u003e.onmicrosoft.com`\n\n1. Run `az account set` specifying the target subscription name\n\n    `az account set --subscription \u003csubscription-name\u003e`\n\n1. The scripts require the target Service Bus namespace and the Resource Group it is in. The namespace name and resource group name can be found in the Azure Portal.\n\nAll scripts include a help section that can be viewed by passing the `-h` or `--help` argument to the script.\n\n## Services\nCreate or delete all Azure Service Bus entities for a service.\n\nA service must have created a `.yaml` configuration file in `services/config`.\n\nExample `.yaml`:\n\n```yaml\ntopics:\n  - name: ffc-demo-payment\n    subscriptions:\n      - ffc-demo-payment-payment\n      - ffc-demo-payment-payment-core\n  - name: ffc-demo-schedule\n    subscriptions:\n      - ffc-demo-schedule-payment\n      - ffc-demo-schedule-payment-core\nqueues:\n  - name: ffc-demo-claim\n  - name: ffc-demo-calculation\n```\n\nFor session enabled queues, the `sessions: true` property can be included.\n\nExample:\n\n```yaml\nqueues:\n  - name: ffc-demo-claim\n    sessions: true\n```\n\n### [Create](services/create)\n\n#### Arguments\n- `-g`, `--resource-group` - Service Bus Resource Group\n- `-n`, `--namespace-name` - Service Bus Namespace\n- `-s`, `--service` - service name\n- `-d`, `--developer` - suffix to be appended to each entity (optional)\n- `-x`, `--no-developer-subscriptions` - do not apply suffix to subscriptions (optional)\n- `-h`, `--help`\n\nExample:\n\n`./services/create -s ffc-demo -n myNamespace -g myResourceGroup`\n\nExample with developer suffix:\n\n`./services/create -s ffc-demo -n myNamespace -g myResourceGroup -d jw`\n\nExample with environment suffix for Topic but not Subscription:\n\n`./services/create -s ffc-demo -n myNamespace -g myResourceGroup -d snd -x`\n\n### [Delete](services/delete)\n\n#### Arguments\n- `-g`, `--resource-group` - Service Bus Resource Group\n- `-n`, `--namespace-name` - Service Bus Namespace\n- `-s`, `--service` - service name\n- `-d`, `--developer` - suffix to be appended to each entity (optional)\n- `-h`, `--help`\n\nExample:\n\n`./services/delete -s ffc-demo -n myNamespace -g myResourceGroup`\n\nExample with developer suffix:\n\n`./services/delete -s ffc-demo -n myNamespace -g myResourceGroup -d jw`\n\n## Queues\n### [List](queues/list)\nList all queues.\n\n#### Arguments\n- `-g`, `--resource-group` - Service Bus Resource Group\n- `-n`, `--namespace-name` - Service Bus Namespace\n- `-h`, `--help`\n\nExample:\n\n`./queues/list -n myNamespace -g myResourceGroup`\n\n### [Create](queues/create)\nBulk create queues from file.\n\nExample file content:\n\n```\ntest-entity1\ntest-entity2\n```\n\n#### Arguments\n- `-g`, `--resource-group` - Service Bus Resource Group\n- `-n`, `--namespace-name` - Service Bus Namespace\n- `-f`, `--file` - filename containing entity names\n- `-h`, `--help`\n\nExample:\n\n`./queues/create -n myNamespace -g myResourceGroup -f example.txt`\n\n### [Delete](queues/delete)\nBulk delete queues from file.\n\nExample file content:\n\n```\ntest-entity1\ntest-entity2\n```\n\n#### Arguments\n- `-g`, `--resource-group` - Service Bus Resource Group\n- `-n`, `--namespace-name` - Service Bus Namespace\n- `-f`, `--file` - filename containing entity names\n- `-h`, `--help`\n\nExample:\n\n`./queues/delete -n myNamespace -g myResourceGroup -f example.txt`\n\n## Topics\n### [List](topics/list)\nList all topics.\n\n#### Arguments\n- `-g`, `--resource-group` - Service Bus Resource Group\n- `-n`, `--namespace-name` - Service Bus Namespace\n- `-h`, `--help`\n\nExample:\n\n`./topics/list -n myNamespace -g myResourceGroup`\n\n### [Create](topics/create)\nBulk create topics from file.\n\nExample file content:\n\n```\ntest-entity1\ntest-entity2\n```\n\n#### Arguments\n- `-g`, `--resource-group` - Service Bus Resource Group\n- `-n`, `--namespace-name` - Service Bus Namespace\n- `-f`, `--file` - filename containing entity names\n- `-h`, `--help`\n\nExample:\n\n`./topics/create -n myNamespace -g myResourceGroup -f example.txt`\n\n### [Delete](topics/delete)\nBulk delete from file.\n\nExample file content:\n\n```\ntest-entity1\ntest-entity2\n```\n\n#### Arguments\n- `-g`, `--resource-group` - Service Bus Resource Group\n- `-n`, `--namespace-name` - Service Bus Namespace\n- `-f`, `--file` - filename containing entity names\n- `-h`, `--help`\n\nExample:\n\n`./topics/delete -n myNamespace -g myResourceGroup -f example.txt`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefra%2Fffc-azure-service-bus-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefra%2Fffc-azure-service-bus-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefra%2Fffc-azure-service-bus-scripts/lists"}