Trying to add an AzureWebApp to an existing WAF address pool
This is autogenerated. Please review and update as needed.
Describe the bug
On a Windows environment the following command works as intended, but on a Linux environment i get strange error messages. I'm using azure-cli 2.0.75 on both Windows and Linux. And an az network application-gateway address-pool has been created prior to this command.
az network application-gateway address-pool update --gateway-name Waf20191030R2 --name 20191030R2-Ontwikkel --resource-group 20191030R2 --add backendAddresses '{\"fqdn\":\"20191030R2-Ontwikkel.azurewebsites.net\",\"ip_address\":null"}'
Command Name
az network application-gateway address-pool update
Errors:
Unable to build a model: Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get', DeserializationError: Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'
Traceback (most recent call last):
python3.6/site-packages/msrest/serialization.py, ln 1291, in _deserialize
found_value = key_extractor(attr, attr_desc, data)
...
return data.get(found_key)
msrest.exceptions.SerializationError: Unable to build a model: Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get', DeserializationError: Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get'
To Reproduce:
Steps to reproduce the behavior. See bug description.
az network application-gateway address-pool update --gateway-name {} --name {} --resource-group {} --add {} {}
Expected Behavior
{ "backendAddresses": [ { "fqdn": "20191030R2-Ontwikkel.azurewebsites.net", "ipAddress": null } ], "backendIpConfigurations": null, "etag": "W/"cd6a5d85-8d5b-49fe-9ae7-4b6f9b9a33c3"", "id": "/subscriptions/8d92ab2a-1b6e-4523-9350-1ba1f3677239/resourceGroups/20191030R2/providers/Microsoft.Network/applicationGateways/Waf20191030R2/backendAddressPools/20191030R2-Ontwikkel", "name": "20191030R2-Ontwikkel", "provisioningState": "Succeeded", "resourceGroup": "20191030R2", "type": "Microsoft.Network/applicationGateways/backendAddressPools" }
Environment Summary
Linux-4.4.0-17134-Microsoft-x86_64-with-debian-buster-sid
Python 3.6.5
Shell: bash
azure-cli 2.0.75
Extensions:
azure-devops 0.11.0
interactive 0.4.3
Additional Context
@sirwarshade Hello. We may need to investigate this one. Could you please re-run the command with --debug and pasted the log below?
az network application-gateway address-pool update --gateway-name WafI20191031R13 --name I20191031R13-Ontwikkel --resource-group I20191031R13 --add backendAddresses '{"fqdn":"I20191031R13-Ontwikkel.azurewebsites.net","ip_address":null"}' --debug
Command arguments: ['network', 'application-gateway', 'address-pool', 'update', '--gateway-name', 'WafI20191031R13', '--name', 'I20191031R13-Ontwikkel', '--resource-group', 'I20191031R13', '--add', 'backendAddresses', '{\"fqdn\":\"I20191031R13-Ontwikkel.azurewebsites.net\",\"ip_address\":null"}', '--debug']
Event: Cli.PreExecute []
Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7f429bb31d08>, <function OutputProducer.on_global_arguments at 0x7f429b65bb70>, <function CLIQuery.on_global_arguments at 0x7f429b684bf8>]
Event: CommandInvoker.OnPreCommandTableCreate []
Installed command modules ['acr', 'acs', 'advisor', 'ams', 'apim', 'appconfig', 'appservice', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'configure', 'consumption', 'container', 'cosmosdb', 'deploymentmanager', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive', 'iot', 'iotcentral', 'keyvault', 'kusto', 'lab', 'managedservices', 'maps', 'monitor', 'natgateway', 'netappfiles', 'network', 'policyinsights', 'privatedns', 'profile', 'rdbms', 'redis', 'relay', 'reservations', 'resource', 'role', 'search', 'security', 'servicebus', 'servicefabric', 'signalr', 'sql', 'sqlvm', 'storage', 'vm']
Loaded module 'acr' in 0.021 seconds.
Loaded module 'acs' in 0.010 seconds.
Loaded module 'advisor' in 0.003 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'ams' in 0.007 seconds.
Loaded module 'apim' in 0.006 seconds.
Loaded module 'appconfig' in 0.004 seconds.
Loaded module 'appservice' in 0.010 seconds.
Loaded module 'backup' in 0.004 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'batch' in 0.011 seconds.
Loaded module 'batchai' in 0.005 seconds.
Loaded module 'billing' in 0.004 seconds.
Loaded module 'botservice' in 0.006 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'cdn' in 0.005 seconds.
Loaded module 'cloud' in 0.004 seconds.
Loaded module 'cognitiveservices' in 0.004 seconds.
Loaded module 'configure' in 0.002 seconds.
Loaded module 'consumption' in 0.004 seconds.
Loaded module 'container' in 0.004 seconds.
Loaded module 'cosmosdb' in 0.014 seconds.
Loaded module 'deploymentmanager' in 0.008 seconds.
Loaded module 'dla' in 0.005 seconds.
Loaded module 'dls' in 0.004 seconds.
Loaded module 'dms' in 0.005 seconds.
Loaded module 'eventgrid' in 0.004 seconds.
Loaded module 'eventhubs' in 0.005 seconds.
Loaded module 'extension' in 0.002 seconds.
Loaded module 'feedback' in 0.002 seconds.
Loaded module 'find' in 0.002 seconds.
Loaded module 'hdinsight' in 0.003 seconds.
Loaded module 'interactive' in 0.001 seconds.
Loaded module 'iot' in 0.008 seconds.
Loaded module 'iotcentral' in 0.003 seconds.
Loaded module 'keyvault' in 0.007 seconds.
Loaded module 'kusto' in 0.003 seconds.
Loaded module 'lab' in 0.006 seconds.
Loaded module 'managedservices' in 0.003 seconds.
Loaded module 'maps' in 0.002 seconds.
Loaded module 'monitor' in 0.006 seconds.
Loaded module 'natgateway' in 0.004 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'netappfiles' in 0.006 seconds.
Loaded module 'network' in 0.029 seconds.
Loaded module 'policyinsights' in 0.004 seconds.
Loaded module 'privatedns' in 0.009 seconds.
Loaded module 'profile' in 0.003 seconds.
Loaded module 'rdbms' in 0.006 seconds.
Loaded module 'redis' in 0.003 seconds.
Loaded module 'relay' in 0.006 seconds.
Loaded module 'reservations' in 0.003 seconds.
Loaded module 'resource' in 0.008 seconds.
Loaded module 'role' in 0.006 seconds.
Loaded module 'search' in 0.003 seconds.
Loaded module 'security' in 0.003 seconds.
Loaded module 'servicebus' in 0.007 seconds.
Loaded module 'servicefabric' in 0.003 seconds.
Loaded module 'signalr' in 0.002 seconds.
Loaded module 'sql' in 0.009 seconds.
Loaded module 'sqlvm' in 0.004 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'storage' in 0.033 seconds.
Loaded module 'vm' in 0.019 seconds.
Loaded all modules in 0.375 seconds. (note: there's always an overhead with the first module loaded)
Extensions directory: '/home/sysop/.azure/cliextensions'
Found 2 extensions: ['azure-devops', 'interactive']
Extensions directory: '/home/sysop/.azure/cliextensions'
Extension compatibility result: is_compatible=True cli_core_version=2.0.75 min_required=2.0.49 max_required=None
Extensions directory: '/home/sysop/.azure/cliextensions'
Loaded extension 'azure-devops' in 0.032 seconds.
Extensions directory: '/home/sysop/.azure/cliextensions'
Extension compatibility result: is_compatible=True cli_core_version=2.0.75 min_required=2.0.62 max_required=None
Loaded extension 'interactive' in 0.001 seconds.
Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7f429b3ffea0>]
az_command_data_logger : command args: network application-gateway address-pool update --gateway-name {} --name {} --resource-group {} --add {} {} --debug
metadata file logging enabled - writing logs to '/home/sysop/.azure/commands'.
Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.
The command failed with an unexpected error. Here is the traceback:
cli.azure.cli.core.util : Unable to build a model: Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get', DeserializationError: Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get' Traceback (most recent call last): File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1291, in _deserialize found_value = key_extractor(attr, attr_desc, data) File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1081, in rest_key_case_insensitive_extractor return attribute_key_case_insensitive_extractor(key, None, working_data) File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1104, in attribute_key_case_insensitive_extractor return data.get(found_key) AttributeError: 'str' object has no attribute 'get'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 571, in body
data = deserializer._deserialize(data_type, data)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1261, in _deserialize
self._deserialize(local_type, value)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1270, in _deserialize
return self.deserialize_data(data, response)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1450, in deserialize_data
return self.deserialize_type[iter_type](data, data_type[1:-1])
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1481, in deserialize_iter
return [self.deserialize_data(a, iter_type) for a in attr]
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1481, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 603, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 661, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 654, in _run_job
six.reraise(*sys.exc_info())
File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 631, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 306, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/arm.py", line 555, in handler
result = cached_put(cmd, setter, **setterargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 414, in cached_put
return _put_operation()
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 409, in _put_operation
result = operation(parameters=parameters, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/mgmt/network/v2019_04_01/operations/_application_gateways_operations.py", line 267, in create_or_update
**operation_config
File "/opt/az/lib/python3.6/site-packages/azure/mgmt/network/v2019_04_01/operations/_application_gateways_operations.py", line 212, in _create_or_update_initial
body_content = self._serialize.body(parameters, 'ApplicationGateway')
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 574, in body
SerializationError, "Unable to build a model: "+str(err), err)
File "/opt/az/lib/python3.6/site-packages/msrest/exceptions.py", line 51, in raise_with_traceback
raise error.with_traceback(exc_traceback)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 571, in body
data = deserializer._deserialize(data_type, data)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1261, in _deserialize
self._deserialize(local_type, value)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1270, in _deserialize
return self.deserialize_data(data, response)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1450, in deserialize_data
return self.deserialize_type[iter_type](data, data_type[1:-1])
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1481, in deserialize_iter
return [self.deserialize_data(a, iter_type) for a in attr]
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1481, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 571, in body
data = deserializer._deserialize(data_type, data)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1261, in _deserialize
self._deserialize(local_type, value)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1270, in _deserialize
return self.deserialize_data(data, response)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1450, in deserialize_data
return self.deserialize_type[iter_type](data, data_type[1:-1])
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1481, in deserialize_iter
return [self.deserialize_data(a, iter_type) for a in attr]
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1481, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 603, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 661, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 654, in _run_job
six.reraise(*sys.exc_info())
File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 631, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 306, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/arm.py", line 555, in handler
result = cached_put(cmd, setter, **setterargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 414, in cached_put
return _put_operation()
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 409, in _put_operation
result = operation(parameters=parameters, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/mgmt/network/v2019_04_01/operations/_application_gateways_operations.py", line 267, in create_or_update
**operation_config
File "/opt/az/lib/python3.6/site-packages/azure/mgmt/network/v2019_04_01/operations/_application_gateways_operations.py", line 212, in _create_or_update_initial
body_content = self._serialize.body(parameters, 'ApplicationGateway')
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 574, in body
SerializationError, "Unable to build a model: "+str(err), err)
File "/opt/az/lib/python3.6/site-packages/msrest/exceptions.py", line 51, in raise_with_traceback
raise error.with_traceback(exc_traceback)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 571, in body
data = deserializer._deserialize(data_type, data)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1261, in _deserialize
self._deserialize(local_type, value)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1270, in _deserialize
return self.deserialize_data(data, response)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1450, in deserialize_data
return self.deserialize_type[iter_type](data, data_type[1:-1])
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1481, in deserialize_iter
return [self.deserialize_data(a, iter_type) for a in attr]
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1481, in
@sirwarshade Thanks. Usually this kind of issue happened because the responses is not consistent with the swagger spec definition. I need to dive into this issue a little bit.
How is the issue progressing ?, is there maybe another way on Linux how i could automate the back-end pools for my azure web apps ?
added into S162. Sorry for the delay. I just went through your issue again. '{"fqdn":"20191030R2-Ontwikkel.azurewebsites.net","ip_address":null"}' Could you try '{\"fqdn\":\"20191030R2-Ontwikkel.azurewebsites.net\",\"ip_address\":null\"}'? Different bash and terminal may cause such errors.
@sirwarshade Hello. Do you still meet such error?
on Linux
az network application-gateway address-pool update --gateway-name dekey-firewall --name test-apps --resource-group dekey --add backendAddresses '{\"fqdn\":\"20191030R2-Ontwikkel.azurewebsites.net\",\"ip_address\":null"}'
The command failed with an unexpected error. Here is the traceback:
Unable to build a model: Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get', DeserializationError: Unable to deserialize to object: type, AttributeError: 'str' object has no attribute 'get' Traceback (most recent call last): File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1291, in _deserialize found_value = key_extractor(attr, attr_desc, data) File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1081, in rest_key_case_insensitive_extractor return attribute_key_case_insensitive_extractor(key, None, working_data) File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1104, in attribute_key_case_insensitive_extractor return data.get(found_key) AttributeError: 'str' object has no attribute 'get'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 571, in body
data = deserializer._deserialize(data_type, data)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1261, in _deserialize
self._deserialize(local_type, value)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1270, in _deserialize
return self.deserialize_data(data, response)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1450, in deserialize_data
return self.deserialize_type[iter_type](data, data_type[1:-1])
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1481, in deserialize_iter
return [self.deserialize_data(a, iter_type) for a in attr]
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1481, in
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 206, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 608, in execute
raise ex
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 666, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 659, in _run_job
six.reraise(*sys.exc_info())
File "/opt/az/lib/python3.6/site-packages/six.py", line 693, in reraise
raise value
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 636, in _run_job
result = cmd_copy(params)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 306, in call
return self.handler(*args, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/arm.py", line 566, in handler
result = cached_put(cmd, setter, **setterargs)
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 419, in cached_put
return _put_operation()
File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/init.py", line 414, in _put_operation
result = operation(parameters=parameters, **kwargs)
File "/opt/az/lib/python3.6/site-packages/azure/mgmt/network/v2019_09_01/operations/_application_gateways_operations.py", line 267, in create_or_update
**operation_config
File "/opt/az/lib/python3.6/site-packages/azure/mgmt/network/v2019_09_01/operations/_application_gateways_operations.py", line 212, in _create_or_update_initial
body_content = self._serialize.body(parameters, 'ApplicationGateway')
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 574, in body
SerializationError, "Unable to build a model: "+str(err), err)
File "/opt/az/lib/python3.6/site-packages/msrest/exceptions.py", line 51, in raise_with_traceback
raise error.with_traceback(exc_traceback)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 571, in body
data = deserializer._deserialize(data_type, data)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1261, in _deserialize
self._deserialize(local_type, value)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1270, in _deserialize
return self.deserialize_data(data, response)
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1450, in deserialize_data
return self.deserialize_type[iter_type](data, data_type[1:-1])
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1481, in deserialize_iter
return [self.deserialize_data(a, iter_type) for a in attr]
File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 1481, in
on Windows
az network application-gateway address-pool update --gateway-name dekey-firewall --name test-apps --resource-group dekey --add backendAddresses '{\"fqdn\":\"20191030R2-Ontwikkel.azurewebsites.net\",\"ip_address\":null"}'
{ "backendAddresses": [ { "fqdn": "20191030R2-Ontwikkel.azurewebsites.net", "ipAddress": null } ], "backendIpConfigurations": null, "etag": "W/"647d6c67-8502-4cab-a1db-c0759486d7bf"", "id": "/subscriptions/a0902636-e05f-498a-9fe5-db535f4bee04/resourceGroups/dekey/providers/Microsoft.Network/applicationGateways/dekey-firewall/backendAddressPools/Test-Apps", "name": "Test-Apps", "provisioningState": "Succeeded", "resourceGroup": "dekey", "type": "Microsoft.Network/applicationGateways/backendAddressPools" }
And both are using "azure-cli 2.0.80" because of automatic updates.
@sirwarshade Hello. The last null" should be null\". This problem is caused by different parsers in different terminals. Currently, it's a know issue. But we need some time to fix it in the future.
@MyronFanQiu
az network application-gateway address-pool update --gateway-name dekey-firewall --name test-apps --resource-group dekey --add backendAddresses '{\"fqdn\":\"20191030R2-Ontwikkel.azurewebsites.net\",\"ip_address\":null\"}'
For me this gives the same error
@sirwarshade Sorry for the delay. backendAddresses is a list object, so the value should be '[{"fqdn":"20191030R2-Ontwikkel.azurewebsites.net","ip_address":null"}]'. But I agree that --add is quite hard to use. I would add native implementation for this feature.
@MyronFanQiu, I'm sorry to bother you again about it. The feature request is much appreciated 👍.
But when i use
az network application-gateway address-pool update --gateway-name dekey-firewall --name test-apps --resource-group dekey --add backendAddresses '[{"fqdn":"20191030R2-Ontwikkel.azurewebsites.net","ip_address":null"}]' it still does not work.
Also i've tried
az network application-gateway address-pool update --gateway-name dekey-firewall --name test-apps --resource-group dekey --add backendAddresses "[{\"fqdn\":\"20191030R2-Ontwikkel.azurewebsites.net\",\"ip_address\":null\"}]"
But still no luck :(
@sirwarshade Hi. I just checked the code. Looks like we already support it. Please try az network application-gateway address-pool update --gateway-name dekey-firewall --name test-apps --resource-group dekey --servers 20191030R2-Ontwikkel.azurewebsites.net and it should work.
--servers 123.4.5.6 www.mydns.com
for each backendAddreess, I think we can just choose one of fqdn or ip address. I'm not the original owner of these codes and due to low bandwidth. Sorry for such a long delay.
Yes it works YAY 👍. @MyronFanQiu Thank you very much