-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
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
- Setup an azure storage account as you would normally
- Fill in the fields in deploy-azure-storage.sjon and write-manifest.json as per the microsoft documentation.
- Set the 'container' field to a container that does not exist within your azure storage account.
- bundle your solution
- 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.