azdo service-endpoint create github [ORGANIZATION/]PROJECT --name NAME [--url URL] [--token TOKEN] [flags]
Create a GitHub service endpoint using a personal access token (PAT) or an installation/oauth configuration.
-
--configuration-idstringConfiguration for connecting to the endpoint (use an OAuth/installation configuration). Mutually exclusive with --token.
-
--descriptionstringDescription for the service endpoint
-
--grant-permission-to-all-pipelinesGrant access permission to all pipelines to use the service connection
-
-q,--jqexpressionFilter JSON output using a jq expression
-
--jsonfieldsOutput JSON with the specified fields. Prefix a field with '-' to exclude it.
-
--namestringName of the service endpoint
-
-t,--templatestringFormat JSON output using a Go template; see "azdo help formatting"
-
--timeoutduration(default"2m0s")Maximum time to wait when --wait or --validate-connection is enabled
-
--tokenstringVisit https://github.com/settings/tokens to create personal access tokens. Recommended scopes: repo, user, admin:repo_hook. If omitted, you will be prompted for a token when interactive.
-
--urlstringGitHub URL (defaults to https://github.com)
-
--validate-connectionRun TestConnection after creation (opt-in)
-
--validate-schemaValidate auth scheme/params against endpoint type metadata (opt-in)
-
--waitWait until the endpoint reports ready/failed
administratorsGroup, authorization, createdBy, data, description, groupScopeId, id, isReady, isShared, name, operationStatus, owner, readersGroup, serviceEndpointProjectReferences, type, url
# Create a GitHub service endpoint with a personal access token (PAT)
azdo service-endpoint create github my-org/my-project --name "gh-ep" --token <PAT>
# Create a GitHub service endpoint with an installation / OAuth configuration id
azdo service-endpoint create github my-org/my-project --name "gh-ep" --configuration-id <CONFIG_ID>