从Azure Cloud Shell显示所有Azure Web应用程序自定义域的列表

发布于 2025-01-17 20:06:18 字数 133 浏览 4 评论 0原文

我能够获得应用程序服务 URL 的完整列表,例如 some.azurewebsites.net,但在网络上找不到任何内容来列出所有 azure webapps 的自定义域。如何从 Azure CLI 获取所有 azure webapp 的自定义域列表?

I am able to get the complete list of appservice URLs like something.azurewebsites.net but nothing found on the web to list custom domains of all azure webapps. How can I get a list of custom domains for all azure webapps from Azure CLI?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

|煩躁 2025-01-24 20:06:18
  • 获取订阅中所有Web应用的自定义
$webApp = Get-AzWebApp
$hostName = $webApp.HostNames 
# or get all enabled hostnames using $hostName = $webApp.enabledHostNames 
Write-Host $hostName

域noreferrer“> “在此处输入映像”

  • 以获取所选资源中的自定义域组
$webApp = Get-AzWebApp -ResourceGroupName YourResourceGroupName 
$hostName = $webApp.HostNames
Write-Host $hostName

”在此处输入图像描述“

  • 获取所选Web应用程序的自定义域
$webApp = Get-AzWebApp -ResourceGroupName YourResourceGroupName -Name WebAppName
$hostName = $webApp.HostNames
Write-Host $hostName

  • To get the custom domains for all the web apps in the Subscription
$webApp = Get-AzWebApp
$hostName = $webApp.HostNames 
# or get all enabled hostnames using $hostName = $webApp.enabledHostNames 
Write-Host $hostName

enter image description here

  • To get the custom domains in the selected Resource Group
$webApp = Get-AzWebApp -ResourceGroupName YourResourceGroupName 
$hostName = $webApp.HostNames
Write-Host $hostName

enter image description here

  • To get the custom domains for the selected web apps
$webApp = Get-AzWebApp -ResourceGroupName YourResourceGroupName -Name WebAppName
$hostName = $webApp.HostNames
Write-Host $hostName

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文