我的目标是在Azure中找到特定App Service的所有实例ID,这样我就可以编写一个预热例程并针对所有正在运行的实例(ARRAfinity)进行测试.
我可以使用ASM Powershell执行以下操作,但我需要在ARM(RM)中为其配置Octopus.
(Get-AzureWebsite -Name "site-name" -Slot "Production").Instances
Run Code Online (Sandbox Code Playgroud)
我找到了关于RM备用的文档,以下内容并没有让我有所帮助:
Get-AzureRmWebApp -Name "site-name"
Run Code Online (Sandbox Code Playgroud)
任何帮助都会非常有帮助.
powershell azure azure-web-sites octopus-deploy azure-resource-manager
我无法找到从 azure Web 应用/应用服务中删除主机名的方法。
我尝试使用以下方法过滤我们不需要的主机,但没有删除任何内容。
Set-AzureWebsite -Name "<<name>>" -HostNames $hosts
Run Code Online (Sandbox Code Playgroud)
和
Set-AzureRmWebApp -Name "<<name>>" -ResourceGroupName "<<name>>" -HostNames $hosts
Run Code Online (Sandbox Code Playgroud)
我有大约 200 个主机需要删除,但是,我似乎找不到自动执行此操作的方法。