Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az webapp hybrid-connection add #28057

Closed
MikeSCSU opened this issue Dec 18, 2023 · 26 comments
Closed

az webapp hybrid-connection add #28057

MikeSCSU opened this issue Dec 18, 2023 · 26 comments
Assignees
Labels
app-service-transfer Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team. Similar-Issue Web Apps az webapp

Comments

@MikeSCSU
Copy link

Describe the bug

We used to be able to add a hybrid connection to an App Service with this command.

az webapp hybrid-connection add -g www8-dev-rg -n timerfunctions-www8-dev --namespace relayns-www8-dev --hybrid-connection replcapb-www8-dev

This suddenly stopped working.

Related command

None. This has worked both in an Azure Cloud Shell from the Portal and CICD pipeline in Azure DevOps

Errors

PS /home/tc7353cb> az webapp hybrid-connection add -g www8-dev-rg -n timerfunctions-www8-dev --namespace relayns-www8-dev --hybrid-connection replcapb-www8-dev

relayns-www9-dev

relayns-www8-dev

(InvalidApiVersionParameter) The api-version '2017-04-01' is invalid. The supported versions are '2023-07-01,2023-07-01-preview,2023-03-01-preview,2022-12-01,2022-11-01-preview,2022-09-01,2022-06-01,2022-05-01,2022-03-01-preview,2022-01-01,2021-04-01,2021-01-01,2020-10-01,2020-09-01,2020-08-01,2020-07-01,2020-06-01,2020-05-01,2020-01-01,2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'.
Code: InvalidApiVersionParameter
Message: The api-version '2017-04-01' is invalid. The supported versions are '2023-07-01,2023-07-01-preview,2023-03-01-preview,2022-12-01,2022-11-01-preview,2022-09-01,2022-06-01,2022-05-01,2022-03-01-preview,2022-01-01,2021-04-01,2021-01-01,2020-10-01,2020-09-01,2020-08-01,2020-07-01,2020-06-01,2020-05-01,2020-01-01,2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'.
PS /home/tc7353cb>

Issue script & Debug output

PS /home/tc7353cb> az webapp hybrid-connection add -g www8-dev-rg -n timerfunctions-www8-dev --namespace relayns-www8-dev --hybrid-connection replcapb-www8-dev --debug
cli.knack.cli: Command arguments: ['webapp', 'hybrid-connection', 'add', '-g', 'www8-dev-rg', '-n', 'timerfunctions-www8-dev', '--namespace', 'relayns-www8-dev', '--hybrid-connection', 'replcapb-www8-dev', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7fdd9ac2d1f0>, <function OutputProducer.on_global_arguments at 0x7fdd9ab47d30>, <function CLIQuery.on_global_arguments at 0x7fdd9aadf310>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'webapp': ['azure.cli.command_modules.appservice', 'azure.cli.command_modules.serviceconnector']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: appservice 0.155 73 260
cli.azure.cli.core: serviceconnector 0.065 16 235
cli.azure.cli.core: Total (2) 0.219 89 495
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: ai-examples 0.069 1 1 /usr/lib/python3.9/site-packages/azure-cli-extensions/ai-examples
cli.azure.cli.core: Total (1) 0.069 1 1
cli.azure.cli.core: Loaded 88 groups, 496 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : webapp hybrid-connection add
cli.azure.cli.core: Command table: webapp hybrid-connection add
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7fdd99f853a0>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home/tc7353cb/.azure/commands/2023-12-18.17-15-46.webapp_hybrid-connection_add.997.log'.
az_command_data_logger: command args: webapp hybrid-connection add -g {} -n {} --namespace {} --hybrid-connection {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x7fdd99f29f70>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x7fdd99f61040>, <function register_cache_arguments..add_cache_arguments at 0x7fdd99ee8e50>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7fdd9ab47dc0>, <function CLIQuery.handle_query_parameter at 0x7fdd9aadf3a0>, <function register_ids_argument..parse_ids_arguments at 0x7fdd99ee8dc0>]
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=WebSiteManagementClient
urllib3.connectionpool: Starting new HTTP connection (1): localhost:50342
urllib3.connectionpool: http://localhost:50342 "POST /oauth2/token HTTP/1.1" 200 6713
msrestazure.azure_active_directory: MSI: Retrieving a token from http://localhost:50342/oauth2/token, with payload {'resource': 'https://management.core.windows.net/'}
urllib3.connectionpool: Starting new HTTP connection (1): localhost:50342
urllib3.connectionpool: http://localhost:50342 "POST /oauth2/token HTTP/1.1" 200 6713
msrestazure.azure_active_directory: MSI: Retrieving a token from http://localhost:50342/oauth2/token, with payload {'resource': 'https://management.core.windows.net/'}
cli.azure.cli.core.auth.adal_authentication: MSIAuthenticationWrapper.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
urllib3.connectionpool: Starting new HTTP connection (1): localhost:50342
urllib3.connectionpool: http://localhost:50342 "POST /oauth2/token HTTP/1.1" 200 6713
msrestazure.azure_active_directory: MSI: Retrieving a token from http://localhost:50342/oauth2/token, with payload {'resource': 'https://management.core.windows.net/'}
cli.azure.cli.core.auth.adal_authentication: Normalize expires_on: '1702923339' -> 1702923339
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/c4dab8d3-b3d4-4254-b577-4af3cde25ec8/providers/Microsoft.Relay/namespaces?api-version=2017-04-01'
cli.azure.cli.core.sdk.policies: Request method: 'GET'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '15354d98-9dc9-11ee-93ed-00155d535c1a'
cli.azure.cli.core.sdk.policies: 'CommandName': 'webapp hybrid-connection add'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '-g -n --namespace --hybrid-connection --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.55.0 (RPM) (AAZ) azsdk-python-core/1.26.0 Python/3.9.14 (Linux-5.10.102.2-microsoft-standard-x86_64-with-glibc2.35) cloud-shell/1.0'
cli.azure.cli.core.sdk.policies: 'Authorization': ''
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: This request has no body
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/c4dab8d3-b3d4-4254-b577-4af3cde25ec8/providers/Microsoft.Relay/namespaces?api-version=2017-04-01 HTTP/1.1" 200 669
cli.azure.cli.core.sdk.policies: Response status: 200
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Content-Encoding': 'gzip'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'Vary': 'Accept-Encoding'
cli.azure.cli.core.sdk.policies: 'x-ms-original-request-ids': '4cc9ab4a-5652-4051-81a3-bc5bf58ed6f6_M0CH3_M0CH3, '
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '11998'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '6ecba3b5-a3dd-4268-9e23-d224cf817521'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '6ecba3b5-a3dd-4268-9e23-d224cf817521'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'EASTUS:20231218T171547Z:6ecba3b5-a3dd-4268-9e23-d224cf817521'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'Date': 'Mon, 18 Dec 2023 17:15:47 GMT'
cli.azure.cli.core.sdk.policies: 'Content-Length': '669'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"value":[{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/c4dab8d3-b3d4-4254-b577-4af3cde25ec8/resourceGroups/www9-dev-rg/providers/Microsoft.Relay/namespaces/relayns-www9-dev","name":"relayns-www9-dev","type":"Microsoft.Relay/Namespaces","location":"Central US","tags":{"Data Owner":"ITS","SCSU Department":"ITS","SCSU SME":"DevOps","Data Profile":"Highly Restricted"},"properties":{"provisioningState":"Succeeded","metricId":"c4dab8d3-b3d4-4254-b577-4af3cde25ec8:relayns-www9-dev","createdAt":"2023-10-11T13:14:04.747Z","updatedAt":"2023-10-11T13:36:20Z","serviceBusEndpoint":"https://relayns-www9-dev.servicebus.windows.net:443/","status":"Active"}},{"id":"/subscriptions/c4dab8d3-b3d4-4254-b577-4af3cde25ec8/resourcegroups/www8-dev-rg/providers/Microsoft.Relay/namespaces/relayns-www8-dev","name":"relayns-www8-dev","type":"Microsoft.Relay/Namespaces","location":"northcentralus","tags":{"Data Owner":"ITS","SCSU Department":"ITS","SCSU SME":"DevOps","Environment":"none"},"properties":{"metricId":"c4dab8d3-b3d4-4254-b577-4af3cde25ec8:relayns-www8-dev","updatedAt":"2023-12-12T18:12:29.8567835Z","serviceBusEndpoint":"https://relayns-www8-dev.servicebus.windows.net","provisioningState":"Succeeded","status":"Active","createdAt":"2022-05-25T18:52:31.4941535Z"},"sku":{"name":"Standard","tier":"Standard"}}]}
cli.azure.cli.command_modules.appservice.custom: relayns-www9-dev
cli.azure.cli.command_modules.appservice.custom: relayns-www8-dev
urllib3.connectionpool: Starting new HTTP connection (1): localhost:50342
urllib3.connectionpool: http://localhost:50342 "POST /oauth2/token HTTP/1.1" 200 6713
msrestazure.azure_active_directory: MSI: Retrieving a token from http://localhost:50342/oauth2/token, with payload {'resource': 'https://management.core.windows.net/'}
cli.azure.cli.core.auth.adal_authentication: MSIAuthenticationWrapper.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
urllib3.connectionpool: Starting new HTTP connection (1): localhost:50342
urllib3.connectionpool: http://localhost:50342 "POST /oauth2/token HTTP/1.1" 200 6713
msrestazure.azure_active_directory: MSI: Retrieving a token from http://localhost:50342/oauth2/token, with payload {'resource': 'https://management.core.windows.net/'}
cli.azure.cli.core.auth.adal_authentication: Normalize expires_on: '1702923339' -> 1702923339
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/c4dab8d3-b3d4-4254-b577-4af3cde25ec8/resourceGroups//providers/Microsoft.Relay/namespaces/relayns-www8-dev/hybridConnections/replcapb-www8-dev?api-version=2017-04-01'
cli.azure.cli.core.sdk.policies: Request method: 'GET'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '15354d98-9dc9-11ee-93ed-00155d535c1a'
cli.azure.cli.core.sdk.policies: 'CommandName': 'webapp hybrid-connection add'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '-g -n --namespace --hybrid-connection --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.55.0 (RPM) (AAZ) azsdk-python-core/1.26.0 Python/3.9.14 (Linux-5.10.102.2-microsoft-standard-x86_64-with-glibc2.35) cloud-shell/1.0'
cli.azure.cli.core.sdk.policies: 'Authorization': '
'
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: This request has no body
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/c4dab8d3-b3d4-4254-b577-4af3cde25ec8/resourceGroups//providers/Microsoft.Relay/namespaces/relayns-www8-dev/hybridConnections/replcapb-www8-dev?api-version=2017-04-01 HTTP/1.1" 400 761
cli.azure.cli.core.sdk.policies: Response status: 400
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'x-ms-failure-cause': 'gateway'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '50bc682f-345a-49ef-b724-27ab8f396cf1'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '50bc682f-345a-49ef-b724-27ab8f396cf1'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'EASTUS:20231218T171547Z:50bc682f-345a-49ef-b724-27ab8f396cf1'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'Date': 'Mon, 18 Dec 2023 17:15:47 GMT'
cli.azure.cli.core.sdk.policies: 'Content-Length': '761'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"error":{"code":"InvalidApiVersionParameter","message":"The api-version '2017-04-01' is invalid. The supported versions are '2023-07-01,2023-07-01-preview,2023-03-01-preview,2022-12-01,2022-11-01-preview,2022-09-01,2022-06-01,2022-05-01,2022-03-01-preview,2022-01-01,2021-04-01,2021-01-01,2020-10-01,2020-09-01,2020-08-01,2020-07-01,2020-06-01,2020-05-01,2020-01-01,2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'."}}
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/usr/lib64/az/lib/python3.9/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/command_modules/appservice/custom.py", line 4401, in add_hc
hy_co = HyCoShow(cli_ctx=cmd.cli_ctx)(command_args={"resource_group": hy_co_resource_group,
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/aaz/_command.py", line 155, in call
return self._handler(*args, **kwargs)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/command_modules/appservice/aaz/latest/relay/hyco/_show.py", line 30, in _handler
self._execute_operations()
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/command_modules/appservice/aaz/latest/relay/hyco/_show.py", line 70, in _execute_operations
self.HybridConnectionsGet(ctx=self.ctx)()
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/command_modules/appservice/aaz/latest/relay/hyco/_show.py", line 94, in call
return self.on_error(session.http_response)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/aaz/_operation.py", line 332, in on_error
raise HttpResponseError(response=response, error_format=error_format)
azure.core.exceptions.HttpResponseError: (InvalidApiVersionParameter) The api-version '2017-04-01' is invalid. The supported versions are '2023-07-01,2023-07-01-preview,2023-03-01-preview,2022-12-01,2022-11-01-preview,2022-09-01,2022-06-01,2022-05-01,2022-03-01-preview,2022-01-01,2021-04-01,2021-01-01,2020-10-01,2020-09-01,2020-08-01,2020-07-01,2020-06-01,2020-05-01,2020-01-01,2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'.
Code: InvalidApiVersionParameter
Message: The api-version '2017-04-01' is invalid. The supported versions are '2023-07-01,2023-07-01-preview,2023-03-01-preview,2022-12-01,2022-11-01-preview,2022-09-01,2022-06-01,2022-05-01,2022-03-01-preview,2022-01-01,2021-04-01,2021-01-01,2020-10-01,2020-09-01,2020-08-01,2020-07-01,2020-06-01,2020-05-01,2020-01-01,2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'.

cli.azure.cli.core.azclierror: (InvalidApiVersionParameter) The api-version '2017-04-01' is invalid. The supported versions are '2023-07-01,2023-07-01-preview,2023-03-01-preview,2022-12-01,2022-11-01-preview,2022-09-01,2022-06-01,2022-05-01,2022-03-01-preview,2022-01-01,2021-04-01,2021-01-01,2020-10-01,2020-09-01,2020-08-01,2020-07-01,2020-06-01,2020-05-01,2020-01-01,2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'.
Code: InvalidApiVersionParameter
Message: The api-version '2017-04-01' is invalid. The supported versions are '2023-07-01,2023-07-01-preview,2023-03-01-preview,2022-12-01,2022-11-01-preview,2022-09-01,2022-06-01,2022-05-01,2022-03-01-preview,2022-01-01,2021-04-01,2021-01-01,2020-10-01,2020-09-01,2020-08-01,2020-07-01,2020-06-01,2020-05-01,2020-01-01,2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'.
az_command_data_logger: (InvalidApiVersionParameter) The api-version '2017-04-01' is invalid. The supported versions are '2023-07-01,2023-07-01-preview,2023-03-01-preview,2022-12-01,2022-11-01-preview,2022-09-01,2022-06-01,2022-05-01,2022-03-01-preview,2022-01-01,2021-04-01,2021-01-01,2020-10-01,2020-09-01,2020-08-01,2020-07-01,2020-06-01,2020-05-01,2020-01-01,2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'.
Code: InvalidApiVersionParameter
Message: The api-version '2017-04-01' is invalid. The supported versions are '2023-07-01,2023-07-01-preview,2023-03-01-preview,2022-12-01,2022-11-01-preview,2022-09-01,2022-06-01,2022-05-01,2022-03-01-preview,2022-01-01,2021-04-01,2021-01-01,2020-10-01,2020-09-01,2020-08-01,2020-07-01,2020-06-01,2020-05-01,2020-01-01,2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x7fdd99f855e0>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 1.253 seconds (init: 0.141, invoke: 1.112)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 4995 in cache
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/usr/bin/python3.9 /usr/lib/az/lib/python3.9/site-packages/azure/cli/telemetry/init.py /home/tc7353cb/.azure"
telemetry.process: Return from creating process
telemetry.main: Finish creating telemetry upload process.
PS /home/tc7353cb>

Expected behavior

Hybrid Connection is added to the App Service

Environment Summary

PS /home/tc7353cb> az --version
azure-cli 2.55.0

core 2.55.0
telemetry 1.1.0

Extensions:
ai-examples 0.2.5
front-door 1.0.17
ml 2.22.0
ssh 2.0.2

Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2

Python location '/usr/bin/python3.9'
Extensions directory '/home/tc7353cb/.azure/cliextensions'
Extensions system directory '/usr/lib/python3.9/site-packages/azure-cli-extensions'

Python (Linux) 3.9.14 (main, Oct 12 2023, 19:48:32)
[GCC 11.2.0]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.
PS /home/tc7353cb>

Additional context

No response

@MikeSCSU MikeSCSU added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Dec 18, 2023
Copy link

Hi @MikeSCSU
Find similar issue #10530.

Issue title The az webapp command is missing 'Hybrid-Connection'
Create time 2019-09-14
Comment number 3

Please confirm if this resolves your issue.

@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Web Apps az webapp Service Attention This issue is responsible by Azure service team. Auto-Assign Auto assign by bot app-service-networking labels Dec 18, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Dec 18, 2023

Thank you for opening this issue, we will look into it.

@pka-fr
Copy link

pka-fr commented Dec 22, 2023

Same problem when adding a hybrid connection to Azure Function App. The command was previously working locally and on DevOps. Now it returns the API version error as bellow.

Command

az functionapp hybrid-connection add --name function_app_name --resource-group resource_group --namespace connection_name_space --hybrid-connection connection_name

Result

(InvalidApiVersionParameter) The api-version '2017-04-01' is invalid. The supported versions are '2023-07-01,2023-07-01-preview,2023-03-01-preview,2022-12-01,2022-11-01-preview,2022-09-01,2022-06-01,2022-05-01,2022-03-01-preview,2022-01-01,2021-04-01,2021-01-01,2020-10-01,2020-09-01,2020-08-01,2020-07-01,2020-06-01,2020-05-01,2020-01-01,2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'.
Code: InvalidApiVersionParameter
Message: The api-version '2017-04-01' is invalid. The supported versions are '2023-07-01,2023-07-01-preview,2023-03-01-preview,2022-12-01,2022-11-01-preview,2022-09-01,2022-06-01,2022-05-01,2022-03-01-preview,2022-01-01,2021-04-01,2021-01-01,2020-10-01,2020-09-01,2020-08-01,2020-07-01,2020-06-01,2020-05-01,2020-01-01,2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'.

Az CLI version

{
"azure-cli": "2.55.0",
"azure-cli-core": "2.55.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"account": "0.2.5",
"azure-devops": "0.26.0",
"logic": "1.0.0"
}
}

@MikeSCSU
Copy link
Author

Looks like this works in Central US but not in North Central US

@seligj95
Copy link
Contributor

seligj95 commented Jan 3, 2024

Unable to repro. Can you please try again and let us know if this is still an issue? I did not see any issues with the CLI code so I believe this must have been a bug with the Relay API that has now been addressed.

Edit: tested in North Central US as well and was successful. Assuming discrepancy was due to deployment order across the regions.

@MikeSCSU
Copy link
Author

MikeSCSU commented Jan 3, 2024 via email

@MikeSCSU
Copy link
Author

MikeSCSU commented Jan 3, 2024

HCM

@seligj95
Copy link
Contributor

seligj95 commented Jan 3, 2024

Still unable to repro on my side. Are you able to add a hybrid connection to that app in North Central US from the portal?

@pka-fr
Copy link

pka-fr commented Jan 3, 2024

I'll let answer @MikeSCSU but in my case the assigning of hybrid connection does not work via PowerShell but it's possible to add the hybrid connection via Azure Portal (France Central region).

@MikeSCSU
Copy link
Author

MikeSCSU commented Jan 3, 2024 via email

@MikeSCSU
Copy link
Author

MikeSCSU commented Jan 3, 2024

Example: www8 is in the North Central US Region and www9 is in the Central US region

image

@seligj95
Copy link
Contributor

seligj95 commented Jan 5, 2024

I'm still unable to repro so I will be sharing this with the Relay team for them to have a look. The CLI and portal are using the same underlying APIs so not sure what the discrepancy is. The issue doesn't seem to be related to the CLI or App Service specifically.

@pka-fr
Copy link

pka-fr commented Jan 5, 2024

@seligj95 it depends on the region in which you create the Function App. I've created a Function App from scratch in the North Europe region and assigned a hybrid connection with the CLI without a problem. Then I created the same Function App in France's Central region (in the same subscription) and I got the error. I've tried to add the debug switch to see more details.

I think as well it's not CLI related. It crashes on the REST API GET call to obtain the list of hybrid connections in a specific region so it looks like there are different versions of REST API throughout the regions which is quite painful.

CLI command North Europe (OK):
az functionapp hybrid-connection add --debug --name func-hybrid-demo --resource-group rg-function-demo --namespace demo-sb-namespace-01 --hybrid-connection demo-hybrid-connection-01
Output, response 200:
image

CLI command France Central (KO):
az functionapp hybrid-connection add --debug --name func-hybrid-demo-fr --resource-group rg-function-demo-fr --namespace 'demo-sb-namespace-fr-01' --hybrid-connection demo-hybrid-connection-fr-01
Output, response 400:
image

@seligj95
Copy link
Contributor

seligj95 commented Jan 5, 2024

Thanks @pka-fr . I've shared this issue with the Relay team and am waiting for their investigation.

@andygjp
Copy link

andygjp commented Jan 26, 2024

It seems this error has spread to UK South.

In my case, I'm calling az functionapp hybrid-connection add.

@MikeSCSU
Copy link
Author

MikeSCSU commented Feb 5, 2024

Example: www8 is in the North Central US Region and www9 is in the Central US region

image

This is failing in the CentralUS now as well

image

@nickfoster
Copy link

Is there a work around for this available at all? We are getting failures for our infrastructure deploys in the UK South region.

@antonjenkins
Copy link

We're also getting failures in UK South with this exact same issue.

@MikeSCSU
Copy link
Author

MikeSCSU commented Feb 9, 2024

Is there a work around for this available at all? We are getting failures for our infrastructure deploys in the UK South region.

We perform this task in an Azure DevOps pipeline and since it's worked in the past our hybrid connections have been made, so when it started failing we just marked that task in the pipeline as "continue on error" and the connection remains. Assuming this is one day fixed when we see these "partially succeeded" pipelines turn green again we'll take the "continue on error" off.

The bad part here is that given this bug we've become desensitized to the "partially succeeded" state our our deployments and can now miss legitimate errors so hopefully this gets fixed at some point.

@ndelo
Copy link

ndelo commented Feb 21, 2024

Seeing same exact issue with identical debug output in EASTUS.

@ndelo
Copy link

ndelo commented Feb 21, 2024

Looking at the debug posted by @pka-fr, the api version being called is the same in both a working and non-working API call.

The difference is in what Request URI is being called.

In the broken debug, the uri path is missing the resource group. I see the same in my debugs, despite the fact that I am specifying a resource group in my CLI command.

Untitled

Is it possible the resource group is being dropped, or is not found, as part of the hybrid-connection creation?

Just a thought.

@pka-fr
Copy link

pka-fr commented Feb 26, 2024

Hello @ndelo. I've double checked the CLI command and I confirm that the resource group is present. I've re-run the command and the resource group was missing in the debug printing at that place. There is probably a bug in printing/logging the resource group in the request URL.

@seligj95
Copy link
Contributor

Hi folks. This should be fixed now. A bug in the Relay resource provider has been patched and rolled out to all regions. Please let us know if you're still facing issues here.

@pka-fr
Copy link

pka-fr commented Feb 29, 2024

I confirm it's working for France Central region. Thanks!

@MikeSCSU
Copy link
Author

Confirmed in NorthCentralUS and CentralUS. Thanks all.

@seligj95
Copy link
Contributor

Thank you! Will close this. Please follow up if there are any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-service-transfer Auto-Assign Auto assign by bot Auto-Resolve Auto resolve by bot bug This issue requires a change to an existing behavior in the product in order to be resolved. customer-reported Issues that are reported by GitHub users external to the Azure organization. Service Attention This issue is responsible by Azure service team. Similar-Issue Web Apps az webapp
Projects
None yet
Development

No branches or pull requests

9 participants