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

what-if operation doesn't seem to include all bicep defined or created resources #3682

Closed
anthonyfourie opened this issue Jul 20, 2021 · 3 comments
Labels
Needs: Author Feedback Awaiting feedback from the author of the issue

Comments

@anthonyfourie
Copy link

Bicep version
run bicep --version via the Bicep CLI, az bicep version via the AZ CLI or via VS code by navigating to the extensions tab and searching for Bicep
"azure-cli": "2.26.0"
"azure-cli-core": "2.26.0"
"azure-cli-telemetry": "1.0.6"
Bicep CLI version 0.4.412 (f1169d0)

Describe the bug
A clear and concise description of what the bug is vs what you expected to happen
The output for the what-if operation doesn't include all resources defined in the bicep template.
The deployment of all resources defined in the template succeeds, just not all show up in the what-if output.

To Reproduce
Steps to reproduce the behavior:
Extract the attached Bicep files to deploy Azure resources using the CLI.
Login to Azure with:
az login

Then issue a what-if deployment operation for a subscription level deployment:
az deployment sub what-if --name 'deploymentName' --location 'region' --template-file '.\src\bicep\deployAnalyticsPlatform.bicep'

Also tried the --no-pretty-print option:
az deployment sub what-if --name 'deploymentName' --location 'region' --template-file '.\src\bicep\deployAnalyticsPlatform.bicep' --no-pretty-print

or using:
az deployment sub --name 'deploymentName' --location 'region' --template-file '.\src\bicep\deployAnalyticsPlatform.bicep' --confirm-with-what-if

The scope, storage account, blob container resources are output but not the Azure Synapse Workspace resource:
image

image

The source files:
src.zip

Additional context
Add any other context about the problem here.

@ghost ghost added the Needs: Triage 🔍 label Jul 20, 2021
@alex-frankel
Copy link
Collaborator

Are you passing in a module output or resource property into the module as a param? If so, this is most likely an instance of Azure/arm-template-whatif#157

@anthonyfourie
Copy link
Author

Hey @alex-frankel, yes. I pass the outputs from the storage module to the synapse module:
image

I did a quick test to confirm if I supplied the string literal instead of the outputs then the resources appear in the what-if output.
image

Seems it is an instance of Azure/arm-template-whatif#157

@alex-frankel
Copy link
Collaborator

Cool - I'm going to close this as a dup. Hopefully we can get this resolved soon!

@ghost ghost locked as resolved and limited conversation to collaborators May 27, 2023
@StephenWeatherford StephenWeatherford added Needs: Author Feedback Awaiting feedback from the author of the issue and removed awaiting response labels Oct 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs: Author Feedback Awaiting feedback from the author of the issue
Projects
None yet
Development

No branches or pull requests

3 participants