Octopus Deploy Documentation

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

Example:

New-OctopusAzureWebAppTarget -name "My Azure Web Application" `
                             -azureWebApp "WebApp1" `
                             -azureResourceGroupName "WebApp1-ResourceGroup"  `
                             -octopusAccountIdOrName "Dev Azure Account" `
                             -octopusRoles "AzureWebApp" `
                             -updateIfExisting

Welcome! We use cookies and data about how you use our website allow us to improve the website and your experience, and resolve technical errors. Our website uses cookies and shares some of your data with third party analytics companies for these purposes.

If you decline, we will respect your privacy. A single cookie will be used in your browser to remember your preference.