我当前正在Azure中执行一些工作,并且正在尝试获取位于Azure虚拟网络中的内部IP地址的资源ID。我基本上需要以下命令的等价物,但对于内部IP。有人知道我怎么才能找回这个吗?
谢谢,
az网络公网ip列表--查询"?ipAddress!=null|?contains(ipAddress,'$IP').id“--输出tsv
发布于 2021-09-16 08:48:35
我已经在我的环境中进行了测试。
要获取与用作AKS群集入口控制器的应用程序网关关联的专用IP地址的资源ID,请使用以下命令:
az network application-gateway frontend-ip list -g RGName --gateway-name ApplicationGatewayName --query "[?privateIpAddress!=null]|[?contains(privateIpAddress, ‘$IP’)].[id]" --output tsv

https://stackoverflow.com/questions/69191219
复制相似问题