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

Failed to create or update the enterprise policy, request body is null #615

Closed
cpinotossi opened this issue Aug 1, 2024 · 4 comments
Closed

Comments

@cpinotossi
Copy link

Hello,
trying to setup enterprisePolicies via Bicep with thr following Bicep Resource Configuration:

resource ppep 'Microsoft.PowerPlatform/enterprisePolicies@2020-10-30-preview' = {
  name: prefix
  location: 'Germany'
  kind: 'NetworkInjection'
  properties: {
    encryption: {}
    networkInjection: {
      virtualNetworks: {
        value: [
          {
            id: vnet.id
            subnet: {
              name: 'PowerPlatformSubnet'
            }
          }
          {
            id: vnet.id
            subnet: {
              name: 'PowerPlatformSubnet2'
            }
          }
        ]
      }
    }
  }
}

Does result into the following Error Message:

{"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/f474dec9-5bab-47a3-b4d3-e641dac87ddb/resourceGroups/cptdazpowerp/providers/Microsoft.Resources/deployments/deploy","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"InputValidationError","message":"Failed to create or update the enterprise policy, request body is null."}]}}

Having a look at PowerApps-Samples\powershell\enterprisePolicies\Common\EnterprisePolicyOperations.ps1 it seems like my settings are all like expected for "NetworkInjection".

QUESTION: Any idea how to fix this error Message,

@cpinotossi
Copy link
Author

Did manage to solve the issue.

@robjdav
Copy link

robjdav commented Aug 5, 2024

Hello - can you let us know what you did to resolve this? I'm getting the same error

thanks

@rajeshkrrajjo
Copy link

Please use the previous version API and it works there.
Use API version: 2020-10-30

@sadjadbp
Copy link

sadjadbp commented Nov 5, 2024

#620 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants