Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
Based on your CLI Query,
- path_rules[0].backend_address_pool should be path_rules[0].backend_address_pool.id
- path_rules[0].backend_http_settings should be path_rules[0].backend_http_settings.id
- And in both the cases, you must input the entire resource ID of the resources.
i.e.,
- backend_address_pool will have '/subscriptions/<SUBSID>/resourceGroups/<RGNAME>/providers/Microsoft.Network/<APPGWNAME>/appgw/backendAddressPools/<BACKENDPOOLNAME>'
- backend_http_settings will have '/subscriptions/<SUBSID>/resourceGroups/<RGNAME>/providers/Microsoft.Network/<APPGWNAME>/appgw/backendHttpSettingsCollection/<HTTPSETTINGSNAME>'
Of course, you can entire input the entire path or get the values of each of this and store it in a variable and pass the variable.id to the command.
Kindly let us know if this helps or you need further assistance on this issue.
Thanks,
Kapil
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.