Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def create_service_endpoint(self, repository_name):
"""Create a new service endpoint within a project with an associated service principal"""
project = self._get_project_by_name(self._project_name)

command = "az account show --o json"
command = "az account show -o json"
token_resp = check_output(command, shell=True).decode()
account = json.loads(token_resp)

Expand All @@ -62,7 +62,7 @@ def create_service_endpoint(self, repository_name):
service_principle_name = self._get_service_endpoint_name(repository_name, "pipeline")

# A service principal name has to include the http/https to be valid
command = "az ad sp create-for-rbac --o json --name http://" + service_principle_name
command = "az ad sp create-for-rbac -o json --name http://" + service_principle_name
try:
token_resp = check_output(command, stderr=DEVNULL, shell=True).decode()
except CalledProcessError:
Expand Down