Skip to content

Include Default Worker Pool for Azure Web App targets#603

Open
benPearce1 wants to merge 2 commits into
mainfrom
benpearce/fd-357-sev-3-low-octopus-cli-deployment-target-view-command-does
Open

Include Default Worker Pool for Azure Web App targets#603
benPearce1 wants to merge 2 commits into
mainfrom
benpearce/fd-357-sev-3-low-octopus-cli-deployment-target-view-command-does

Conversation

@benPearce1
Copy link
Copy Markdown
Contributor

Fixes #600

❯ octopus deployment-target azure-web-app view "az target 5" -s default -f json
Name                 az target 5 (Machines-406)
Health status        Unhealthy
Current status       There was a problem communicating with this machine (last checked: Friday, 15 May 2026 11:24:12 am +10:00)
Account              azure fnm sandbox
Web App              testappforfd-339
Environments         Dev
Roles                pi
Tenants              None
Tenant Tags          None
Default Worker Pool  second
❯ octopus deployment-target view "az target" -s default -f json
{
  "Id": "Machines-401",
  "Name": "az target",
  "HealthStatus": "Unhealthy",
  "StatusSummary": "There was a problem communicating with this machine (last checked: Friday, 15 May 2026 11:24:25 am +10:00)",
  "CommunicationStyle": "AzureWebApp",
  "Environments": [
    "Dev"
  ],
  "Roles": [
    "pi"
  ],
  "Tenants": null,
  "TenantTags": [],
  "EndpointDetails": {
    "Web App": "testappforfd-339"
  },
  "WebUrl": "http://localhost:8066/app#/Spaces-1/infrastructure/machines/Machines-401/settings",
  "DefaultWorkerPool": ""
}
❯ octopus deployment-target view "az target 5" -s default -f json
{
  "Id": "Machines-406",
  "Name": "az target 5",
  "HealthStatus": "Unhealthy",
  "StatusSummary": "There was a problem communicating with this machine (last checked: Friday, 15 May 2026 11:24:12 am +10:00)",
  "CommunicationStyle": "AzureWebApp",
  "Environments": [
    "Dev"
  ],
  "Roles": [
    "pi"
  ],
  "Tenants": null,
  "TenantTags": [],
  "EndpointDetails": {
    "Web App": "testappforfd-339"
  },
  "WebUrl": "http://localhost:8066/app#/Spaces-1/infrastructure/machines/Machines-406/settings",
  "DefaultWorkerPool": "second"
}
❯ octopus deployment-target view "cr" -s default -f json
{
  "Id": "Machines-262",
  "Name": "cr",
  "HealthStatus": "Healthy",
  "StatusSummary": "This target is enabled.",
  "CommunicationStyle": "None",
  "Environments": [
    "Dev"
  ],
  "Roles": [
    "pi"
  ],
  "Tenants": null,
  "TenantTags": [],
  "EndpointDetails": {},
  "WebUrl": "http://localhost:8066/app#/Spaces-1/infrastructure/machines/Machines-262/settings"
}

@benPearce1 benPearce1 requested a review from a team May 15, 2026 01:56
@benPearce1 benPearce1 changed the title Benpearce/fd 357 sev 3 low octopus cli deployment target view command does Include Default Worker Pool for Azure Web App targets May 15, 2026
Copy link
Copy Markdown
Contributor

@mik-ky mik-ky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First pass, one question that I'd like to understand.

}

func getEndpointDetails(target *machines.DeploymentTarget) map[string]string {
func getEndpointDetails(target *machines.DeploymentTarget, opts *shared.ViewOptions) map[string]string {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like opts isn't used

workerPoolMap, _ := shared.GetWorkerPoolMap(opts)
return resolveValues([]string{endpoint.DefaultWorkerPoolID}, workerPoolMap)[0]
} else {
return ""
Copy link
Copy Markdown
Contributor

@mik-ky mik-ky May 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: else is redundant and we can just return empty string without it

}
}

return "N/A"
Copy link
Copy Markdown
Contributor

@mik-ky mik-ky May 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would return "N/A" for non azure web app targets - what about other targets that have worker pool?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default Worker Pool not shown for deployment targets

2 participants