|
32 | 32 | validate_acs_ssh_or_warn, validate_apm_properties, validate_apm_secrets, |
33 | 33 | validate_apm_not_exist, validate_apm_update, validate_apm_reference, |
34 | 34 | validate_apm_reference_and_enterprise_tier, validate_cert_reference, |
35 | | - validate_build_cert_reference, validate_acs_create, not_support_enterprise) |
| 35 | + validate_build_cert_reference, validate_acs_create, not_support_enterprise, |
| 36 | + validate_create_app_binding_default_application_configuration_service, validate_create_app_binding_default_service_registry) |
36 | 37 | from ._app_validator import (fulfill_deployment_param, active_deployment_exist, |
37 | 38 | ensure_not_active_deployment, validate_deloy_path, validate_deloyment_create_path, |
38 | 39 | validate_cpu, validate_build_cpu, validate_memory, validate_build_memory, |
@@ -333,6 +334,16 @@ def load_arguments(self, _): |
333 | 334 | nargs='+', |
334 | 335 | validator=validate_create_app_with_user_identity_or_warning, |
335 | 336 | help="Space-separated user-assigned managed identity resource IDs to assgin to an app.") |
| 337 | + c.argument('bind_service_registry', |
| 338 | + action='store_true', |
| 339 | + options_list=['--bind-service-registry', '--bind-sr'], |
| 340 | + validator=validate_create_app_binding_default_service_registry, |
| 341 | + help='Bind the app to the default Service Registry automatically.') |
| 342 | + c.argument('bind_application_configuration_service', |
| 343 | + action='store_true', |
| 344 | + options_list=['--bind-application-configuration-service', '--bind-acs'], |
| 345 | + validator=validate_create_app_binding_default_application_configuration_service, |
| 346 | + help='Bind the app to the default Application Configuration Service automatically.') |
336 | 347 | c.argument('cpu', arg_type=cpu_type) |
337 | 348 | c.argument('memory', arg_type=memory_type) |
338 | 349 | c.argument('instance_count', type=int, |
|
0 commit comments