Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading deployment state file from Azure Blob Storage for Incremental Deployment #434

Open
d-cegielka opened this issue Dec 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@d-cegielka
Copy link

d-cegielka commented Dec 13, 2024

Currently, reading a json file from Azure Blob Storage uses the Get-AzStorageContainer function which requires permission to list containers on storage. In the case of saving changes, the Set-AzStorageBlobContent function is used which refers directly to the file and the permission to list containers is not needed.

Is your feature request related to a problem? Please describe.
The service principal that I have does not have permission to list containers, which is why I get the error

"##[error]This request is not authorized to perform this operation using this permission."

and I have a problem with using the Incremental Deployment functionality.

Describe the solution you'd like
I propose replacing the Get-AzStorageContainer function with the Get-AzStorageBlobContent function (or another one) which would require less permissions - it would read the file directly from the path (container).
DeploymentState.class.ps1

Additional context
In the organization, the permission to list containers is not granted, which is why we have a problem using Incremental Deployment.

@NowinskiK NowinskiK added the enhancement New feature or request label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants