{"id":20544881,"url":"https://github.com/mdgreenfield/microsoft-graph-api-reliability","last_synced_at":"2026-04-16T16:05:54.312Z","repository":{"id":141978505,"uuid":"347158356","full_name":"mdgreenfield/microsoft-graph-api-reliability","owner":"mdgreenfield","description":"Test the reliability of Microsoft Graph API","archived":false,"fork":false,"pushed_at":"2021-03-12T18:58:39.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-01-29T20:57:40.336Z","etag":null,"topics":["azure","graph-api","microsoft","microsoft-graph-api","reliability"],"latest_commit_sha":null,"homepage":"","language":"Go","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/mdgreenfield.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}},"created_at":"2021-03-12T18:20:19.000Z","updated_at":"2021-03-12T18:58:41.000Z","dependencies_parsed_at":"2023-09-25T06:47:54.115Z","dependency_job_id":null,"html_url":"https://github.com/mdgreenfield/microsoft-graph-api-reliability","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"cde4714c54214061a761e0d75504bccf63b7f73f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdgreenfield%2Fmicrosoft-graph-api-reliability","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdgreenfield%2Fmicrosoft-graph-api-reliability/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdgreenfield%2Fmicrosoft-graph-api-reliability/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdgreenfield%2Fmicrosoft-graph-api-reliability/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdgreenfield","download_url":"https://codeload.github.com/mdgreenfield/microsoft-graph-api-reliability/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242150758,"owners_count":20080006,"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","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","graph-api","microsoft","microsoft-graph-api","reliability"],"created_at":"2024-11-16T01:49:14.311Z","updated_at":"2026-04-16T16:05:54.268Z","avatar_url":"https://github.com/mdgreenfield.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# microsoft-graph-api-reliability\n\nExercises the Microsoft Graph API v1.0 to ensure Application passwords are reliably persisted.\n\nThis test issues parallel requests to the MS Graph API [addPassword endpoint](https://docs.microsoft.com/en-us/graph/api/application-addpassword?view=graph-rest-1.0\u0026tabs=http) in parallel and ensures that every successful password created is persisted by Azure.\n\nTo run this test the following environment variables MUST be set:\n\n- `TENANT_ID` - The Azure tenant\n- `SUBSCRIPTION_ID` - The Azure subscription\n- `CLIENT_ID` - The application (client) ID. Note the permission requirements below.\n- `CLIENT_SECRET` - The application password\n- `SUT_APPLICATION_OBJECT_ID` - The Subject Under Test application object ID (i.e. the application for which passwords will be added)\n\nOptionally, the following can be set:\n\n- `RETRY_ATTEMPTS` - Specifies the number of HTTP retry attempts for each request. Defaults to 3 per the `Azure/go-autorest` library.\n- `PARALLEL_REQUESTS` - The number of parallel `addPassword` requests to send to MS Graph API. Defaults to 20.\n\nThe [MS Graph API docs](https://docs.microsoft.com/en-us/graph/api/application-addpassword?view=graph-rest-1.0\u0026tabs=http#permissions) highlight the possible API Permissions that can be used for the application which is creating the passwords. `Application.ReadWrite.All` will suffice. Be sure to grant consent to the permission on the application.\n\n## Run the Test\n\nSet your environments variables (see above) and then call `make test`.\n\n## Currently Observed Behavior\n\n- Frequently, especially with larger numbers (i.e. \u003e 10) of parallel requests to `addPassword`, a response reports successful password creation, however, that password is not associated with the application when reading back all the password credentials.\n- At greater than ~5 parallel requests we see responses slow down significantly.\n- At greater than ~15 parallel requests we start seeing HTTP 503 responses. The `go-autorest` automatically handles retries, the default is 3. Setting the retry count to 0 makes this problem even more apparent even at ~5 parallel requests.\n- In rare instances an HTTP 500 has been returned.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdgreenfield%2Fmicrosoft-graph-api-reliability","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdgreenfield%2Fmicrosoft-graph-api-reliability","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdgreenfield%2Fmicrosoft-graph-api-reliability/lists"}