Create Azure Web App target command
Last updated
Azure Web App
Command: New-OctopusAzureWebAppTarget
Parameter | Value |
---|---|
-name |
name for the Octopus deployment target |
-azureWebApp |
Name of the Azure Web App |
-azureWebAppSlot |
Name of the Azure Web App Slot |
-azureResourceGroupName |
Name of the Azure Resource Group |
-octopusAccountIdOrName |
Name or Id of the Account Resource in Octopus |
-octopusRoles |
Comma separated list of Roles to assign |
-updateIfExisting |
Will update an existing Web App target with the same name, create if it doesn't exist |
-octopusDefaultWorkerPoolIdOrName |
Name or Id of the Worker Pool for the deployment target to use. (Optional). Added in 2020.6.0. |
Examples
# Using default options
New-OctopusAzureWebAppTarget -name "My Azure Web Application" `
-azureWebApp "WebApp1" `
-azureResourceGroupName "WebApp1-ResourceGroup" `
-octopusAccountIdOrName "Dev Azure Account" `
-octopusRoles "AzureWebApp" `
-updateIfExisting
# Specifying a default worker pool for the target
New-OctopusAzureWebAppTarget -name "My Azure Web Application" `
-azureWebApp "WebApp1" `
-azureResourceGroupName "WebApp1-ResourceGroup" `
-octopusAccountIdOrName "Dev Azure Account" `
-octopusRoles "AzureWebApp" `
-octopusDefaultWorkerPoolIdOrName "Worker Pool with Azure Access" `
-updateIfExisting
Need support? We're here to help.