microsoft / PowerApps-Samples

Sample code for Power Apps, including Dataverse, model-driven apps, canvas apps, Power Apps component framework, portals, and AI Builder.
https://docs.microsoft.com/powerapps
MIT License
1.51k stars 1.7k forks source link

NewNetworkInjection cannot be performed on Power Platform environment because of the governance configuration #618

Closed johnnafa closed 2 months ago

johnnafa commented 2 months ago

Hi,

I'm running in on this issue. It seems to he a governance configuration over at Power Platform Environment but I can't find what setting.

Linking of vnet policy did not start for environement ***** Error: { "StatusCode": 400, "StatusDescription": null, "Headers": [ { "Key": "Date", "Value": "Fri, 02 Aug 2024 12:12:30 GMT" }, { "Key": "Cache-Control", "Value": "no-store, no-cache" }, { "Key": "Strict-Transport-Security", "Value": "max-age=31536000; includeSubDomains" }, { "Key": "x-ms-islandgateway", "Value": "GA00000IL" }, { "Key": "x-ms-request-id", "Value": "westeurope:2ec10d50-2b5a-4a7b-a30a-5b3cbf5c39e3" }, { "Key": "x-ms-correlation-request-id", "Value": "30825dbe-66ce-4cef-a37e-fa1bf84411a9" }, { "Key": "x-ms-correlation-id", "Value": "30825dbe-66ce-4cef-a37e-fa1bf84411a9" }, { "Key": "Server-Timing", "Value": "x-ms-igw-upstream-headers;dur=1080.9,x-ms-igw-req-overhead;dur=0.7" }, { "Key": "X-Content-Type-Options", "Value": "nosniff" }, { "Key": "x-ms-service-request-id", "Value": "e4924964-3d75-4b5e-937e-47d221a2d6f9" }, { "Key": "x-ms-activity-vector", "Value": "00" } ], "Error": { "code": "InvalidLifecycleOperationRequest", "message": "NewNetworkInjection cannot be performed on Power Platform environment because of the governance configuration.", "detailUrlType": "NotSpecified" }, "Message": "NewNetworkInjection cannot be performed on Power Platform environment because of the governance configuration.", "Internal": { "Version": { "Major": 1, "Minor": 1, "Build": -1, "Revision": -1, "MajorRevision": -1, "MinorRevision": -1 }, "Content": { "Headers": "[Content-Length, System.String[]] [Content-Type, System.String[]]" }, "StatusCode": 400, "ReasonPhrase": "Bad Request", "Headers": [ "[Date, System.String[]]", "[Cache-Control, System.String[]]", "[Strict-Transport-Security, System.String[]]", "[x-ms-islandgateway, System.String[]]", "[x-ms-request-id, System.String[]]", "[x-ms-correlation-request-id, System.String[]]", "[x-ms-correlation-id, System.String[]]", "[Server-Timing, System.String[]]", "[X-Content-Type-Options, System.String[]]", "[x-ms-service-request-id, System.String[]]", "[x-ms-activity-vector, System.String[]]" ], "TrailingHeaders": [], "RequestMessage": { "Version": "1.1", "VersionPolicy": 0, "Content": "System.Net.Http.ByteArrayContent", "Method": "POST", "RequestUri": "https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/environments/b4192d6e-fb29-e80a-a638-ea18b7009b54/enterprisePolicies/NetworkInjection/link?&api-version=2019-10-01", "Headers": "[User-Agent, System.String[]] [Authorization, System.String[]] [Accept-Encoding, System.String[]]", "Properties": "", "Options": "" }, "IsSuccessStatusCode": false

johnnafa commented 2 months ago

Activate Managed Environments on Power Platform Environment to fix this.