https://pulumi.com logo
Title
s

swift-hamburger-98290

01/11/2021, 4:40 PM
Regarding azure web applications, deployment slots, and running from zip: can we do it with pulumi? We have this:
...

var blob = new azure.storage.Blob("bl-slot", {
  ...
});

const app = new azure.appservice.AppService("app-slot", {
  ...
});

const slot = new azure.appservice.Slot("apps-slot", {
  appServiceName: app.name,
  appSettings: {
    WEBSITE_RUN_FROM_PACKAGE: azure.storage.signedBlobReadUrl(blob, storage),
  },
  siteConfig: {
    ...
    autoSwapSlotName: "production",
  },
  ...
});
Now the problem we face is on the second deployment: the ZIP which is used by the
production
slot (in case the swap was performed) will be replaced by the new one. So we need 2 blobs (ZIPs) to exist at any given time, but pulumi only has one. I understand this is quite a special case, but is there any pulumi mechanism to deal with this?