https://pulumi.com logo
#general
Title
# general
n

narrow-ghost-95764

03/17/2023, 6:47 PM
I am attempting to use azure.appservice.Slot to create a new deployment slot for my Azure App Service via Pulumi. I am not able to find a way to create a deployment slot that clones the config of the parent App Service as you can via Azure portal. Does anyone have any advice when creating a deployment slot in Pulumi on best way to go about it and its capabilities? I've been following https://www.pulumi.com/registry/packages/azure/api-docs/appservice/slot/ and I know there's an option to import but the imports have been super messy in another Stack with config mis-matches even after copying/pasting import output, so trying to avoid any potentially messy imports
b

billowy-army-68599

03/17/2023, 6:48 PM
do you have a comparable ARM template? or is it done via the portal?
half the battle is figuring out the API that the portal uses 😅
n

narrow-ghost-95764

03/17/2023, 7:07 PM
That's a great question. I know I used Pulumi to create the resources under RG and pipelines are using AzureRmWebAppDeployment@4 with Azure RM connection type and service connections. If you set up deployment slot via portal there's an option to clone settings so I'm wondering if that should be managed via Pulumi or just have Pulumi create the slot and clone settings in portal since they are separate services and add a "do not delete" lock on it
b

billowy-army-68599

03/17/2023, 7:18 PM
ahhh are you using
azure-classic
or
azure-native
?
not super familiar with this resource
I don’t think it’s in classic, at least I can’t find it
n

narrow-ghost-95764

03/17/2023, 7:23 PM
Thanks this is what I was finding for classic (https://www.pulumi.com/registry/packages/azure/api-docs/appservice/slot/) but my RG etc is azure-native so I'll take a look at using this one. Thank you!