Skip to content

Unable to get the deploy.ps1 script to run based on some conditional expressions #82

@billymild

Description

@billymild

deployifneeded : Failed to create Solution in resource group 'cdranalyticsrg'. Please ensure you have access to the
subscription and try again.
At C:\microsoft-teams-apps-callrecord-insights-main\deploy\deploy.ps1:468 char:15

  • $Deployment = deployifneeded 'Solution' deploy (@{
  •           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,deployifneeded

deployifneeded : ERROR: C:\microsoft-teams-apps-callrecord-insights-main\deploy\bicep\deployFunction.bicep(566,10) :
Error BCP420: The scope could not be resolved at compile time because the supplied expression is ambiguous or too
complex. Scoping expressions must be reducible to a specific kind of scope without knowledge of parameter values.
[https://aka.ms/bicep/core-diagnostics#BCP420]
At C:\microsoft-teams-apps-callrecord-insights-main\deploy\deploy.ps1:468 char:15

  • $Deployment = deployifneeded 'Solution' deploy (@{
  •           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (ERROR: C:\micro...nostics#BCP420]:String) [Write-Error], RemoteException
    • FullyQualifiedErrorId : NativeCommandErrorMessage,deployifneeded

deployifneeded : C:\microsoft-teams-apps-callrecord-insights-main\deploy\bicep\deploy.bicep(67,23) : Error BCP104: The
referenced module has errors. [https://aka.ms/bicep/core-diagnostics#BCP104]
At C:\microsoft-teams-apps-callrecord-insights-main\deploy\deploy.ps1:468 char:15

  • $Deployment = deployifneeded 'Solution' deploy (@{
  •           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (C:\microsoft-te...nostics#BCP104]:String) [Write-Error], RemoteException
    • FullyQualifiedErrorId : NativeCommandErrorMessage,deployifneeded

I am logged in using Graph and AZ. Copilot has said these errors can happen with condtional expressions and to be more defined. Is anyone else having this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions