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

Exclude specific resources from what-if output #358

Open
aslan-im opened this issue Feb 29, 2024 · 6 comments
Open

Exclude specific resources from what-if output #358

aslan-im opened this issue Feb 29, 2024 · 6 comments
Labels
enhancement New feature or request Needs: Triage 🔍

Comments

@aslan-im
Copy link

Bicep version
0.23.1

Describe the bug
The whatif feature shows the deploymentScript content each time when we run whatif, what creates additional noise in the output

To Reproduce
Steps to reproduce the behavior:

  • Create the template with PowerShell Script in deploymentScript resource and run New-AzDeployment -WhatIf -template
    Additional context
    Is there any way to exclude the script content from the output?
@stephaniezyen
Copy link
Collaborator

Can you please send a screenshot of the output you are receiving?

@aslan-im
Copy link
Author

aslan-im commented Mar 7, 2024

Screenshot 2024-03-07 at 09 06 53

@stephaniezyen
Resources are already exist

@stephaniezyen stephaniezyen transferred this issue from Azure/bicep Mar 13, 2024
@alex-frankel
Copy link
Contributor

What are the values for cleanupPreference and retentionInterval? Deployment Scripts clean themselves up (either immediately or after a specific time window, depending on settings) so you may in fact be creating a new Deployment Script on each execution.

@aslan-im
Copy link
Author

I will collect the info and let you know

@aslan-im
Copy link
Author

@alex-frankel
cleanupPreference: 'OnSuccess'
retentionInterval: 'PT1H'
Is it possible just to disable the output of deploymentScript if I use whatif?

@alex-frankel
Copy link
Contributor

This is not possible today, but is something we can look into. @sydkar FYI on this one. I'm going to change the title to match the feature request.

@alex-frankel alex-frankel changed the title Deployment Script WhatIf output Exclude specific resources from what-if output Mar 25, 2024
@alex-frankel alex-frankel added the enhancement New feature or request label Mar 25, 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 Needs: Triage 🔍
Projects
Status: Todo
Development

No branches or pull requests

3 participants