microsoft / Microsoft-Fabric-workload-development-sample

Demonstrates how to implement a Microsoft Fabric workload in .net and typescript
Other
30 stars 16 forks source link

CreateDevAADApp.ps1 fails with `az` 2.63.0 and Powershell 7.4.4 #67

Closed LeonardHd closed 2 months ago

LeonardHd commented 3 months ago

When running the script CreateDevAADApp.ps1 with Powershell 7.4.4 I am getting the following error:

ERROR: Bad Request({"error":{"code":"Request_BadRequest","message":"An unexpected 'StartObject' node was found for property named 'id' when reading from the JSON reader. A 'PrimitiveValue' node was expected.","innerError":{"date":"2024-08-15T10:43:38","request-id":"dae4962b-aa48-42a7-a981-112fbd4002fd","client-request-id":"dae4962b-aa48-42a7-a981-112fbd4002fd"}}})

I was able to fix this issue by forcing the New-Guid to be string:

$FabricWorkloadControlGuid = (New-Guid).ToString()
$Item1ReadAllGuid = (New-Guid).ToString()
$Item1ReadWriteAllGuid = (New-Guid).ToString()
$FabricLakehouseReadAllGuid = (New-Guid).ToString()
$FabricLakehouseReadWriteAllGuid = (New-Guid).ToString()
anitamayorov commented 2 months ago

Resolving due to fix merge - thanks