Describe the bug
When running this command az functionapp vnet-integration add --<function name> --vnet <vnet name> --subnet <subnet name> -g <group> it errors with:
azure.core.exceptions.HttpResponseError: Operation returned an invalid status 'Bad Request'
Content: {"Code":"BadRequest","Message":"Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer.","Target":null,"Details":[{"Message":"Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer."},{"Code":"BadRequest"},{"ErrorEntity":{"ExtendedCode":"51021","MessageTemplate":"{0} is invalid. {1}","Parameters":["Site.FunctionAppConfig","It is only supported for 2023-12-01 api-version or newer."],"Code":"BadRequest","Message":"Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer."}}],"Innererror":null}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 664, in execute
raise ex
File "/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 731, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/__init__.py", line 723, in _run_job
return cmd_copy.exception_handler(ex)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/command_modules/appservice/commands.py", line 46, in _ex_handler
raise ex
knack.util.CLIError: Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer.
cli.azure.cli.core.azclierror: Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer.
az_command_data_logger: Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer.
I've run with debug and verbose and nothing actually tells me what is wrong with the function definition. If I run this command in the UI portal it executes no problems. My local.settings.json for this function is effectively empty:
{
"IsEncrypted": false,
"Values": {
}
}
Is there anyway to actually see what the issue is?
Related command
az functionapp vnet-integration add -- --vnet --subnet -g
Errors
az_command_data_logger: Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer.
Issue script & Debug output
azure.core.exceptions.HttpResponseError: Operation returned an invalid status 'Bad Request'
Content: {"Code":"BadRequest","Message":"Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer.","Target":null,"Details":[{"Message":"Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer."},{"Code":"BadRequest"},{"ErrorEntity":{"ExtendedCode":"51021","MessageTemplate":"{0} is invalid. {1}","Parameters":["Site.FunctionAppConfig","It is only supported for 2023-12-01 api-version or newer."],"Code":"BadRequest","Message":"Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer."}}],"Innererror":null}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 664, in execute
raise ex
File "/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 731, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 723, in _run_job
return cmd_copy.exception_handler(ex)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/command_modules/appservice/commands.py", line 46, in _ex_handler
raise ex
knack.util.CLIError: Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer.
cli.azure.cli.core.azclierror: Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer.
az_command_data_logger: Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer.
Expected behavior
Either this command should just work or it should actually tell me what the issue is. saying the configuration is invalid and then not actually telling me which part it doesn't like is not very helpful
Environment Summary
azure-cli 2.62.0
core 2.62.0
telemetry 1.1.0
Extensions:
account 0.2.5
aks-preview 6.0.0b1
containerapp 0.3.53
front-door 1.2.0
webpubsub 1.4.0
Dependencies:
msal 1.28.1
azure-mgmt-resource 23.1.1
Python location '/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/bin/python'
Extensions directory '/Users/joelnation/.azure/cliextensions'
Python (Darwin) 3.11.9 (main, Apr 2 2024, 08:25:04) [Clang 15.0.0 (clang-1500.3.9.4)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response
Describe the bug
When running this command
az functionapp vnet-integration add --<function name> --vnet <vnet name> --subnet <subnet name> -g <group>it errors with:I've run with debug and verbose and nothing actually tells me what is wrong with the function definition. If I run this command in the UI portal it executes no problems. My local.settings.json for this function is effectively empty:
Is there anyway to actually see what the issue is?
Related command
az functionapp vnet-integration add -- --vnet --subnet -g
Errors
az_command_data_logger: Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer.
Issue script & Debug output
azure.core.exceptions.HttpResponseError: Operation returned an invalid status 'Bad Request'
Content: {"Code":"BadRequest","Message":"Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer.","Target":null,"Details":[{"Message":"Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer."},{"Code":"BadRequest"},{"ErrorEntity":{"ExtendedCode":"51021","MessageTemplate":"{0} is invalid. {1}","Parameters":["Site.FunctionAppConfig","It is only supported for 2023-12-01 api-version or newer."],"Code":"BadRequest","Message":"Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer."}}],"Innererror":null}
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 664, in execute
raise ex
File "/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 731, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/core/commands/init.py", line 723, in _run_job
return cmd_copy.exception_handler(ex)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/lib/python3.11/site-packages/azure/cli/command_modules/appservice/commands.py", line 46, in _ex_handler
raise ex
knack.util.CLIError: Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer.
cli.azure.cli.core.azclierror: Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer.
az_command_data_logger: Site.FunctionAppConfig is invalid. It is only supported for 2023-12-01 api-version or newer.
Expected behavior
Either this command should just work or it should actually tell me what the issue is. saying the configuration is invalid and then not actually telling me which part it doesn't like is not very helpful
Environment Summary
azure-cli 2.62.0
core 2.62.0
telemetry 1.1.0
Extensions:
account 0.2.5
aks-preview 6.0.0b1
containerapp 0.3.53
front-door 1.2.0
webpubsub 1.4.0
Dependencies:
msal 1.28.1
azure-mgmt-resource 23.1.1
Python location '/opt/homebrew/Cellar/azure-cli/2.62.0/libexec/bin/python'
Extensions directory '/Users/joelnation/.azure/cliextensions'
Python (Darwin) 3.11.9 (main, Apr 2 2024, 08:25:04) [Clang 15.0.0 (clang-1500.3.9.4)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response