Skip to content

Commit a6cb02f

Browse files
fix: required field when creating a backend and ran a live test
1 parent 5f9560d commit a6cb02f

4 files changed

Lines changed: 1739 additions & 2669 deletions

File tree

src/azure-cli/azure/cli/command_modules/apim/_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def load_arguments(self, _):
510510
c.argument('service_name', options_list=['--service-name', '-n'],
511511
help='The name of the API Management service instance.')
512512
c.argument('backend_id', arg_type=backend_id, help='Identifier of the Backend.')
513-
c.argument('url', help='Required. Backend service URL.')
513+
c.argument('url', help='Backend service URL.', required=True)
514514
c.argument('protocol', arg_type=get_enum_type(BACKEND_PROTOCOLS),
515515
help='Protocol used to communicate with the backend service. Possible values include: `http`, `soap`.')
516516
c.argument('description', help='Description of the Backend. May include HTML formatting tags.')
@@ -520,7 +520,7 @@ def load_arguments(self, _):
520520
c.argument('service_name', options_list=['--service-name', '-n'],
521521
help='The name of the API Management service instance.')
522522
c.argument('backend_id', arg_type=backend_id, help='Identifier of the Backend.')
523-
c.argument('url', required=True, help='Backend service URL.')
523+
c.argument('url', help='Backend service URL.')
524524
c.argument('protocol', arg_type=get_enum_type(BACKEND_PROTOCOLS),
525525
help='Protocol used to communicate with the backend service. Possible values include: `http`, `soap`.')
526526
c.argument('description', help='Description of the Backend. May include HTML formatting tags.')

0 commit comments

Comments
 (0)