Skip to content

deploy-azure-storage command no longer creates container that does not exist yet. #7472

@rickhellenthal

Description

@rickhellenthal

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

Versions used:

  • SPFX: 1.13.0 (tried 1.13.0-beta.17 as well)
  • Node: v14.17.6
  • npm: 7.24.0
  • gulp: 4.0.2

Describe the bug / error

We used to change the container name inside the deploy-azure-storage.json file dynamically based on our package version, then we would upload this build to our azure storage account. In this way we have a container for each version of our project. In SPFX 1.21.1 the deploy-azure-storage command would create the container if it didn't exist yet automatically.

However, since upgrading to SPFX 1.13.0 azure storage containers are no longer created automatically, instead we receive the following error:

RestError: The specified container does not exist.
Time:2021-11-02T14:53:48.7614729Z 404 ContainerNotFound

This means we have to create the container each time by hand each time we increment our version, which is quite inconvenient. Keeping the same container is not an option for our use case.

Steps to reproduce

  1. Setup an azure storage account as you would normally
  2. Fill in the fields in deploy-azure-storage.sjon and write-manifest.json as per the microsoft documentation.
  3. Set the 'container' field to a container that does not exist within your azure storage account.
  4. bundle your solution
  5. run gulp deploy-azure-storage

Expected behavior

We expected that the gulp deploy-azure-storage command would create the container within our storage account automatically (just as in spfx version 1.12.1), however this was not the case and we received an error instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋Original poster responded to request for feedback, awaiting attention from Microsoft / community.area:spfxCategory: SharePoint Framework (not extensions related)status:fixed-next-dropIssue planned to be fixed in an upcoming release.type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions