text:
[Event Request] CU 5987 PostSalesTaxToGL no events

PostSalesTaxToGL function in Codeunit 5987 which posts NA sales tax for service documents has no events at all.  Probably the only function like this I've seen lately where we cannot touch the GenJnlLine to add our custom posting values.  At least a CopyFromServiceHeader like there is in the PostCustomerEntry would be good.  Would also like some at the end to track the postings as well but anything would be a start thank you!

Hi @MattR818 . Please be precise in description of what event should added, where it should be added and with which parameters.
You can take a look at this request for example https://github.com/microsoft/ALAppExtensions/issues/8389 or others.

Thanks @RomanZanizdra  .
In ServPostingJournalsMgt.Codeunit.al , Codeunit 5987 "Serv-Posting Journals Mgt." , in function PostSalesTaxToGL , please add the the following event before the GenJnlLine is posted (this is similar to SalesPost codeunit 80):

                    if ServiceHeader."Currency Code" <> '' then
                        TotalServiceLineLCY."Amount Including VAT" :=
                          TotalServiceLineLCY."Amount Including VAT" + GenJnlLine."VAT Amount (LCY)";
+                   OnBeforePostSalesTaxToGL(GenJnlLine, ServiceHeader, TempSalesTaxAmtLine);
                    GenJnlPostLine.RunWithCheck(GenJnlLine);
                end;
            until TempSalesTaxAmtLine.Next = 0;

    [IntegrationEvent(false, false)]
    local procedure OnBeforePostSalesTaxToGL(var GenJnlLine: Record "Gen. Journal Line"; ServiceHeader: Record "Service Header"; SalesTaxAmountLine: Record "Sales Tax Amount Line")
    begin
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

authors: MattR818 RomanZanizdra bc-ghost


text:
[Event Request] Codeunit::"Whse.-Post Shipment" - Function HandlePurchaseLine - OnBeforeFindWhseShptLineForPurchLine

We like to request the following Event:
Object: Codeunit::"Whse.-Post Shipment"
Function: HandlePurchaseLine
Publisher Event: OnBeforeFindWhseShptLineForPurchLine
Reason: To implement custom business logic
Where is the event placed:
local procedure HandlePurchaseLine(var WhseShptLine: Record "Warehouse Shipment Line")
var
PurchLine: Record "Purchase Line";
ModifyLine: Boolean;
IsHandled: Boolean;
begin
with WhseShptLine do begin
PurchLine.SetRange("Document Type", "Source Subtype");
PurchLine.SetRange("Document No.", "Source No.");
if PurchLine.Find('-') then
repeat
SetRange("Source Line No.", PurchLine."Line No.");
IsHandled := false;
OnBeforeFindWhseShptLineForPurchLine(WhseShptLine, PurchLine, WhseShptHeader, ModifyLine, IsHandled);
if not IsHandled then begin
if Find('-') then begin
Event Code:
[IntegrationEvent(false,   false)]         local procedure   OnBeforeFindWhseShptLineForPurchLine(var WarehouseShipmentLine: Record   "Warehouse Shipment Line"; var PurchLine: Record "Purchase   Line"; WhseShptHeader: Record "Warehouse Shipment Header"; var   ModifyLine: Boolean; var IsHandled: Boolean)         begin         end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

source: gharchive/issue

authors: acadonAG-dev bc-ghost

repo: microsoft/ALAppExtensions

license: MIT

license_type: permissive

license_source: github-api


text:
[Feature Request] Support backgroundcolor or font color on containers and textblocks and such

Problem Statement
It doesn't seem possible to set a background color or text color in the card.
I can somewhat understand why this is so, as cards have to render in different environments. So just render hints are provided.
However there is value in color. Red for warnings, green for safe.
Proposed solution
If actual color rgb information isn't possible. could the selection of hints like bold, bolder, normal be expanded to include things like "error", "warning" ,"ok" etc. ?
Alternatives or Workarounds
using a background image with an rgb color

The actual color coding is determined by the host application, such as Teams and Outlook. In other words, if you are rendering the card, you can specify its color using hostConfig.

I know the host application determines color, but it does so based on the hints it gets from the card. There are no hints for warning, error, ok and all such kinds of information. Therefor the second solution I suggested was adding more rendering hints. Not just bold and normal, that is a rather limited set.

From: Joseph Woo @.>
Sent: Thursday, December 7, 2023 10:17:34 PM
To: microsoft/AdaptiveCards @.>
Cc: bzuidgeest @.>; Author @.>
Subject: Re: [microsoft/AdaptiveCards] [Feature Request] Support backgroundcolor or font color on containers and textblocks and such (Issue #8766)
The actual color coding is determined by the host application, such as Teams and Outlook. In other words, if you are rendering the card, you can specify its color using hostConfig.
—
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/AdaptiveCards/issues/8766#issuecomment-1846126316, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAJ3TRC7OMKWE24UUND4JW3YIIW65AVCNFSM6AAAAABALEDZJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBWGEZDMMZRGY.
You are receiving this because you authored the thread.Message ID: @.***>

authors: bzuidgeest jwoo-msft

repo: microsoft/AdaptiveCards


text:
Include visualization for Active Work Process for SM66 Transaction

PR Checklist

[x] Explain your changes, so people looking at the PR know what and why, the code changes are the how.

If adding or updating templates:

[x] post a screenshot of templates and/or gallery changes
[x] ensure your template has a corresponding gallery entry in the gallery folder
[x] If you are adding a new template, add your team and template/gallery file(s) to the CODEOWNERS file. CODEOWNERS entries should be teams, not individuals
[x] ensure all steps have meaningful names
[x] ensure all parameters and grid columns have display names set so they can be localized
[x] ensure that parameters id values are unique or they will fail PR validation (parameter ids are used for localization)
[x] ensure that steps names are unique or they will fail PR validation (step names are used for localization)
[x] grep /subscription/ and ensure that your parameters don't have any hardcoded resourceIds or they will fail PR validation
[x] remove fallbackResourceIds and fromTemplateId fields from your template workbook or they will fail PR validation

Description :
Included new visualization for SM66 - active work process

does this only show if you have data?

Yes @PakDLiu

source: gharchive/pull-request

authors: PakDLiu hsridharan


text:
Can't override Success of RequestTelemetry

List of NuGet packages and version that you are using: Microsoft.ApplicationInsights.AspNetCore 2.18.0
Runtime version: netcoreapp3.1
Hosting environment (e.g. Azure Web App, App Service on Linux, Windows, Ubuntu, etc.): Windows 10, Azure Web App

Describe the bug
The task is to override the Success of some calls to the Web API which consciously returns 404 in the case when some entity isn't found in order not to see these requests on Failures section in Azure portal.
The approach was taken from the docs https://docs.microsoft.com/en-us/azure/azure-monitor/app/api-filtering-sampling#addmodify-properties-itelemetryinitializer
To Reproduce

Create .net core 3.1 Web API project
Add latest Microsoft.ApplicationInsights.AspNetCore Nuget package
Add AppInsigts telemetry in Startup.Configure services: services.AddApplicationInsightsTelemetry();
Create an initializer in the same way it is done in docs:

 public class MyTelemetryInitializer : ITelemetryInitializer
    {
        public void Initialize(ITelemetry telemetry)
        {
            if (telemetry is RequestTelemetry request && request.ResponseCode == "404") {
                request.Success = true;
            }
        }
    }

Register initializer in the Startup:             services.AddSingleton<ITelemetryInitializer, MyTelemetryInitializer>();
Make sure MyTelemetryInitializer.Initialize is being called and request.Success is set to true
See the results in App Insights Search

Can you look at the VS Debug window output (it should show the full json payload), and paste it here as well? That'll help confirm if this is an VS issue or not.

Pay attention that I observe the same situation in AppInsights on Azure Portal.
Application Insights Telemetry (unconfigured): {
    "name": "AppRequests",
    "time": "2021-09-01T10:11:32.7786101Z",
    "tags": {
        "ai.application.ver": "1.0.0.0",
        "ai.cloud.roleInstance": "LT-913658",
        "ai.user.id": "UrPUAgWCguh8QjAJYsAFgh",
        "ai.operation.id": "f64dba1a584b9240b1a2230ff4a63ad7",
        "ai.operation.name": "GET WeatherForecast/Get",
        "ai.location.ip": "::1",
        "ai.internal.sdkVersion": "aspnet5c:2.18.0+a9fc6af7538cc287d263d9bc216c7910bfc34566",
        "ai.internal.nodeName": "LT-913658.kyiv.ciklum.net"
    },
    "data": {
        "baseType": "RequestData",
        "baseData": {
            "ver": 2,
            "id": "5c7b8dc33e89ad48",
            "name": "GET WeatherForecast/Get",
            "duration": "00:00:00.1001573",
            "success": true,
            "responseCode": "404",
            "url": "https://localhost:44313/weatherforecast",
            "properties": {
                "_MS.ProcessedByMetricExtractors": "(Name:'Requests', Ver:'1.1')",
                "DeveloperMode": "true",
                "AspNetCoreEnvironment": "Development"
            }
        }
    }
}
Application Insights Telemetry (unconfigured): {
    "name": "AppRequests",
    "time": "2021-09-01T10:11:33.1465644Z",
    "tags": {
        "ai.application.ver": "1.0.0.0",
        "ai.cloud.roleInstance": "LT-913658",
        "ai.user.id": "UrPUAgWCguh8QjAJYsAFgh",
        "ai.operation.id": "5d61966b2dfaab41868cdef3f30cd8df",
        "ai.operation.name": "GET /favicon.ico",
        "ai.location.ip": "::1",
        "ai.internal.sdkVersion": "aspnet5c:2.18.0+a9fc6af7538cc287d263d9bc216c7910bfc34566",
        "ai.internal.nodeName": "LT-913658.kyiv.ciklum.net"
    },
    "data": {
        "baseType": "RequestData",
        "baseData": {
            "ver": 2,
            "id": "98e7a15632268349",
            "name": "GET /favicon.ico",
            "duration": "00:00:00.0016771",
            "success": true,
            "responseCode": "404",
            "url": "https://localhost:44313/favicon.ico",
            "properties": {
                "_MS.ProcessedByMetricExtractors": "(Name:'Requests', Ver:'1.1')",
                "DeveloperMode": "true",
                "AspNetCoreEnvironment": "Development"
            }
        }
    }
}
Application Insights Telemetry (unconfigured): {
    "name": "AppRequests",
    "time": "2021-09-01T10:11:34.5710993Z",
    "tags": {
        "ai.application.ver": "1.0.0.0",
        "ai.cloud.roleInstance": "LT-913658",
        "ai.user.id": "UrPUAgWCguh8QjAJYsAFgh",
        "ai.operation.id": "6616c1ebc1879b4bae95e3254918d93a",
        "ai.operation.name": "GET /favicon.ico",
        "ai.location.ip": "::1",
        "ai.internal.sdkVersion": "aspnet5c:2.18.0+a9fc6af7538cc287d263d9bc216c7910bfc34566",
        "ai.internal.nodeName": "LT-913658.kyiv.ciklum.net"
    },
    "data": {
        "baseType": "RequestData",
        "baseData": {
            "ver": 2,
            "id": "62b23abbe3beef49",
            "name": "GET /favicon.ico",
            "duration": "00:00:00.0010633",
            "success": true,
            "responseCode": "404",
            "url": "https://localhost:44313/favicon.ico",
            "properties": {
                "_MS.ProcessedByMetricExtractors": "(Name:'Requests', Ver:'1.1')",
                "DeveloperMode": "true",
                "AspNetCoreEnvironment": "Development"
            }
        }
    }
}

The above json output shows that "success": true already, so SDK is working as expected (i.e it respects your override and serializes it too)

I was not able to reproduce this.
I copied the exact json into our powershell script (https://github.com/microsoft/ApplicationInsights-dotnet/blob/develop/troubleshooting/Ingestion/PostTelemetry.ps1).
I also tried to reproduce this by manually creating RequestTelemetry using the ConsoleApp in our Examples.sln (https://github.com/microsoft/ApplicationInsights-dotnet/tree/develop/examples).
            telemetryClient.Track(new RequestTelemetry
            {
                Timestamp = DateTimeOffset.Now,
                ResponseCode = "404",
                Success = false,
                Url = new Uri("http://www.bing.com"),
            });

            telemetryClient.Track(new RequestTelemetry
            {
                Timestamp = DateTimeOffset.Now,
                ResponseCode = "400",
                Success = true,
                Url = new Uri("http://www.bing.com"),
            });

            // Explicitly call Flush() followed by sleep is required in Console Apps.
            // This is to ensure that even if application terminates, telemetry is sent to the back-end.
            telemetryClient.Flush();
            Task.Delay(5000).Wait();

@ISkomorokh is this still occurring for you?
I would be very interested to know if you can reproduce this in any of our example projects.

@TimothyMothra yes, I was able to reproduce this with AspNetCoreWebApp example easily.

Add Issue action to the HomeController

        public IActionResult Issue()
        {
            return new NotFoundResult();
        }

Run the app and navigate to the http://......../Home/Issue
Check the Json and VS AppInsights UI. Everything is correct. success is false and Successful request is shown as false

Application Insights Telemetry: {
    "name": "AppRequests",
    "time": "2021-09-03T05:29:24.1161831Z",
    "iKey": "00000000-0000-0000-0000-000000000000",
    "tags": {
        "ai.application.ver": "1.0.0.0",
        "ai.cloud.roleInstance": "xxxxxxx",
        "ai.user.id": "UrPUAgWCguh8QjAJYsAFgh",
        "ai.operation.id": "fd153437098814488f6512f80deebb6b",
        "ai.operation.name": "GET Home/Issue",
        "ai.location.ip": "::1",
        "ai.internal.sdkVersion": "aspnet5c:2.18.0+d54bae8aeaf74b6fa08c8033c2ce54ea6d8f437b",
        "ai.internal.nodeName": "xxxxxxx"
    },
    "data": {
        "baseType": "RequestData",
        "baseData": {
            "ver": 2,
            "id": "e27bf9880f6ab647",
            "name": "GET Home/Issue",
            "duration": "00:00:00.0036758",
            "success": false,
            "responseCode": "404",
            "url": "https://localhost:44318/Home/Issue",
            "properties": {
                "AspNetCoreEnvironment": "Development",
                "_MS.ProcessedByMetricExtractors": "(Name:'Requests', Ver:'1.1')",
                "DeveloperMode": "true",
                "MyCustomKey": "MyCustomValue"
            }
        }
    }
}

Modify an existing telemetry initializer MyCustomTelemetryInitializer

internal class MyCustomTelemetryInitializer : ITelemetryInitializer
        {
            public void Initialize(ITelemetry telemetry)
            {
                // Replace with actual properties.
                (telemetry as ISupportProperties).Properties["MyCustomKey"] = "MyCustomValue";
                // new peace of code
                if (telemetry is RequestTelemetry requestTelemetry && requestTelemetry.ResponseCode == "404") {
                    requestTelemetry.Success = true;
                }
            }
        }

Run the app again and navigate to the http://......../Home/Issue
Check the Json and VS AppInsights UI. Json is correct. success is true and Successful request is shown as false which is incorrect

Application Insights Telemetry: {
    "name": "AppRequests",
    "time": "2021-09-03T05:32:51.9551237Z",
    "iKey": "00000000-0000-0000-0000-000000000000",
    "tags": {
        "ai.application.ver": "1.0.0.0",
        "ai.cloud.roleInstance": "xxxxxxx",
        "ai.user.id": "UrPUAgWCguh8QjAJYsAFgh",
        "ai.operation.id": "0c21b859211b904bb7c37f263f7833c7",
        "ai.operation.name": "GET Home/Issue",
        "ai.location.ip": "::1",
        "ai.internal.sdkVersion": "aspnet5c:2.18.0+d54bae8aeaf74b6fa08c8033c2ce54ea6d8f437b",
        "ai.internal.nodeName": "xxxxxxx"
    },
    "data": {
        "baseType": "RequestData",
        "baseData": {
            "ver": 2,
            "id": "1d251ecf12a2154c",
            "name": "GET Home/Issue",
            "duration": "00:00:00.0035988",
            "success": true,
            "responseCode": "404",
            "url": "https://localhost:44318/Home/Issue",
            "properties": {
                "DeveloperMode": "true",
                "_MS.ProcessedByMetricExtractors": "(Name:'Requests', Ver:'1.1')",
                "MyCustomKey": "MyCustomValue",
                "AspNetCoreEnvironment": "Development"
            }
        }
    }
}

And the same can be observed in Azure portal App Insights.

Today I noticed that it started to work right in Azure portal App Insights 👍

authors: ISkomorokh TimothyMothra cijothomas

repo: microsoft/ApplicationInsights-dotnet


text:
Support ubuntu 22.04

Fixes https://github.com/microsoft/Azure-Kinect-Sensor-SDK/issues/1790
Support building on ubuntu22.04
Description of the changes:

Update submodules azure_c_shared, libebml and libmatroska
Update cord for breaking change of libraries
Update docker container and setup scripts for ubuntu22.04

Before submitting a Pull Request:

[x] I reviewed CONTRIBUTING.md
[x] I built my changes locally
[x] I ran the unit tests
[x] I ran the functional tests with a device
[x] I ran the performance tests with a device

I have a device so I cannot pass the multi devices test on the functional tests.
# clang -L function
The following tests FAILED:
        104 - executables_ft.green_screen_double_cam (Failed)
        134 - multidevice_ft.open_close_two (Failed)
        135 - multidevice_ft.stream_two_1_then_2 (Failed)
        136 - multidevice_ft.stream_two_2_then_1 (Failed)
        137 - multidevice_ft.ensure_color_camera_is_enabled (Failed)
        138 - multidevice_ft.start_parallel (Failed)
        139 - multidevice_ft.close_parallel (Failed)
        140 - multidevice_sync_ft.multi_sync_validation (Failed)
        141 - multidevice_sync_ft.multi_sync_no_color (Failed)

I cannot pass one of the performance tests.
I doubt that process delay because of running on docker container.
# clang -L perf
The following tests FAILED:
        205 - 30FPS_TESTS/throughput_perf.testTest/testindex:(FPS_30_BGRA32_2160P_NFOV_UNBINNED)28 (Failed)

I tested changes on:

[ ] Windows
[x] Linux

The commands I build and test.
PATH_OF_REPO=$(pwd) # execute in directory of repo
cd $PATH_OF_REPO/scripts/docker
# build a container
docker buildx build . -t ubuntu-for-k4a-build
# build source
docker run -v $PATH_OF_REPO:/app -it ubuntu-for-k4a-build /bin/bash -c "rm -rf build && mkdir -p build && cd build && cmake .. -GNinja && ninja"
# put libdepthengine on build directory
cd /tmp
wget https://packages.microsoft.com/ubuntu/18.04/prod/pool/main/libk/libk4a1.4/libk4a1.4_1.4.1_amd64.deb
ar vx libk4a1.4_1.4.1_amd64.deb
tar xvf data.tar.gz
sudo cp usr/lib/x86_64-linux-gnu/libk4a1.4/libdepthengine.so.2.0 $PATH_OF_REPO/build/bin
cd $PATH_OF_REPO/scripts/docker
# run tests
docker run -v $PATH_OF_REPO:/app -it ubuntu-for-k4a-build /bin/bash -c "cd build && ctest -L unit"
docker run -v $PATH_OF_REPO:/app -v /dev:/dev --net host --privileged -it ubuntu-for-k4a-build /bin/bash -c "export DISPLAY=:0 && cd build && ctest -L function"
docker run -v $PATH_OF_REPO:/app -v /dev:/dev --net host --privileged -it ubuntu-for-k4a-build /bin/bash -c "export DISPLAY=:0 && cd build && ctest -L perf"

The libdepthengine require x window system so we need to connect window to docker engine.
Referendes:
https://github.com/microsoft/Azure-Kinect-Sensor-SDK/issues/810
https://scrapbox.io/opzriv/ヘッドレスでKinectのDepthエンジンを使う

@microsoft-github-policy-service agree

Hey @asukiaaa. I would like to use Azure with Ubuntu 22.04. Is this fix working? I have just tried pulling this PR instead of master in one of my docker images and it did not work, but maybe I just need to update more packages then. I can see failing tests, but that does not necessarily mean too much.

I created deb file for ubuntu22.04 and upload to github.
How about to try this?
https://github.com/asukiaaa/Azure-Kinect-Sensor-SDK/releases/tag/2923-08-26-ubuntu-22-04
An article about the deb file in Japanese.
https://asukiaaa.blogspot.com/2023/08/deb-file-of-azure-kinect-sdk-for-ubuntu-2204.html

repo: microsoft/Azure-Kinect-Sensor-SDK

license: mit

license_source: bigquery


text:
Unable to create keys in HSM using pkcs11 from F5

We are having trouble connecting to the HSMs in order to create keys.  We believe the issue is related to a failed handshake after the initial connection is made, and could use MS's help resolving this issue.
Thanks,
Steve
Note:  shot of trace attached

You're able to access your Managed HSM Pool via REST API or Azure CLI but just not through the TLS Offload Library?

Keith,
Yes, that's correct.  We have no issue accessing the HSMs via AKV.  I can create keys without issue and we've been able to integrate our applications via a Service Principal that provides an authentication mechanism.  We are using a similar approach with the F5s where an SP provides the necessary authentication and we think that works, but as you can see from the included screen shot, key creation is failing.
Thanks,
Steve Agather
Project and Consulting Services for Managed Cloud(s)
kyndryl

From: Keith Prunella @.>
Sent: Monday, November 14, 2022 10:07 PM
To: microsoft/AzureManagedHsmTLSOffload @.>
Cc: Steve Agather @.>; Author @.>
Subject: [EXTERNAL] Re: [microsoft/AzureManagedHsmTLSOffload] Unable to create keys in HSM using pkcs11 from F5 (Issue #1)
You're able to access your Managed HSM Pool via REST API or Azure CLI but just not through the TLS Offload Library? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread. Message
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
ZjQcmQRYFpfptBannerEnd
You're able to access your Managed HSM Pool via REST API or Azure CLI but just not through the TLS Offload Library?
—
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/AzureManagedHsmTLSOffload/issues/1#issuecomment-1314699767, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A4F5XLU6RBLYD3G5FPJLED3WIL5ADANCNFSM6AAAAAASAFUDIQ.
You are receiving this because you authored the thread.Message ID: @.***>

The trace screenshot you shared shows TLSv1.  Are you using TLS V1.0?  Our TLS Offload Library supports only TLS 1.2 and TLS 1.3.

Triage of Shared Log Data and Progression
Original error message in logs shared prior enabling private link for Managed HSM.
== P11 Call: ERROR:   :KeyVaultSession_FindObject.cppL#64:EXCEPT: std::exception: Curl error 35 (CURLE_SSL_CONNECT_ERROR)
== P11 Call: INFO:    :KeyVaultSession_FindObject.cppL#69:FindObjectsInit exit (6)
== P11 Call: INFO:    :pkcs11_interface.cppL#762:C_FindObjectsInit exit (6)
Returning 6 (CKR_FUNCTION_FAILED)
With now private link enabled the error below is due to not having firewall rules.
== P11 Call: ERROR:   :KeyVaultSession.cppL#1062:EXCEPT: KeyVaultClientException(401): Authentication Failed.  An unknown error occurred in the authentication callback: Curl error 35 (CURLE_SSL_CONNECT_ERROR)
== P11 Call: INFO:    :KeyVaultSession.cppL#1062:GenerateRandom exit (257)
== P11 Call: INFO:    :pkcs11_interface.cppL#1595:C_GenerateRandom exit (257)
Returning 257 (CKR_USER_NOT_LOGGED_IN)
After applying firewall rules to allow traffic through it shows we can now reach the Managed HSM but error returned ‘Not Authorized’.  This is due to not having access policies / role assignments applied to the Managed HSM.
== CURL Info: Response body={"error":{"code":"AccessDenied","message":"Not authorized to access Microsoft.KeyVault/managedHsm/rng/action on "/" (Activity ID: ----)"}}
== CURL Info: Response code=403
== P11 Call: ERROR:   :KeyVaultSession.cppL#1062:EXCEPT: KeyVaultClientException(403): {"error":{"code":"AccessDenied","message":"Not authorized to access Microsoft.KeyVault/managed
After applying role assignments and access permissions to the Managed HSM to create/list/etc keys we can see role assignments are now applied correctly. The latest error in logs shows that an incorrect object id for your F5 VM is being passed. Once you update and correct to use expected object id for VM this should resolve issue.
Reference Documents for applying Role Assignments & Local RBAC
Managed HSM Role Management

https://learn.microsoft.com/en-us/azure/key-vault/managed-hsm/role-management

Local RBAC (Built-In-Roles)

https://learn.microsoft.com/en-us/azure/key-vault/managed-hsm/built-in-roles

From our support call the not authorized error has been resolved after applying correct role assignments and access controls to Managed HSM. Customer has successfully created a key along with a single CSR generated. Closing Issue. Thank you.

Customer Feedback
Two things came out of this issue that may assist others experiencing similar issues:

When creating the role, use the identifier --assignee-object-id and use the ID for the entity (service provider in our case) but NOT the Object ID as shown in Azure Portal.  To find the ID run the CLI command az ad sp list --display-name  and take the ID from that output.

When creating the role, set the scope to '--scope /'.  Using '--scope /keys' seems like the correct option, but that was insufficient based on the errors we were getting in our testing.

The final command in CLI follows this form:
az keyvault role assignment create --hsm-name  --role "Managed HSM Crypto User" --assignee-object-id  --scope /

authors: SteveAgather kprunella

repo: microsoft/AzureManagedHsmTLSOffload


text:
It is better to update 'Select all' to 'Select All' on the toolbar of app configuration explorer

Storage Explorer Version: 1.29.1
Build Number: 20230509.5
Branch: hotfix/1.29.1
Platform/OS: Windows 10/Linux Ubuntu 20.04/MacOS Ventura 13.3.1 (Apple M1 Pro)
Architecture: ia32/x64/arm64
App configuration version: 0.2.0
How Found: Exploratory testing
Regression From: Not a regression
Steps to Reproduce

Expand 'App Configurations' node -> Open one app configuration.
Observe the toolbar actions.

Expected Experience
It is better to update 'Select all' to 'Select All'.
Actual Experience
Show 'Select all' on the toolbar.

The string in this label matches the strings in the dropdown so won't fix for now.

authors: JasonYeMSFT v-xianya

repo: microsoft/AzureStorageExplorer


text:
Storage Explorer unexpectedly closes after closing a formatted JSON tab

Storage Explorer Version: 1.36.0-dev (101)
Build Number: 20241012.1
Branch: main
Platform/OS: Windows11/Windows11/Linux Ubuntu 22.04/MacOS Sequoia 15.0(Apple M1 Pro)
Architecture: arm64/x64/x64/arm64
How Found: From running test cases
Regression From: Previous release (1.35.0)
Steps to Reproduce

Expand one Storage Account -> Blob Containers.
Create a blob container -> Upload a .json file.
Right click the .json file -> Click 'Preview'.
In the preview panel, right-click and choose 'Format JSON'.
Close the preview tab.
Check whether Storage Explorer is still open.

Expected Experience
Storage Explorer remains open.
Actual Experience
Storage Explorer closes unexpectedly.

A user has already reported on this (#8235).

@v-xianya Does this also repro on macOS Sonoma (14)? Sequoia is a pretty new version, which we aren't yet ready to test on.

@craxal We verified this issue on the macOS Sonoma (14.6.1), it reproduces.

authors: craxal v-xianya


text:
Add pagination to [GET] /workspaces if we expect to have a large amount of workspaces

[GET] /workspaces could potentially return a lot of workspaces, suggestion from @sachinkundu to add pagination to the API

I am retiring this issue - we would have to have a lot (100s) of concurrent workspaces for this to make sense and that is not likely

repo: microsoft/AzureTRE


text:
SecuredByRole fails if app roles are not loaded

Fixes #3752
Update so that app roles being undefined does not cause an issue.

/test-force-approve
UI only.

/test-force-approve
UI only.


text:
[BC Idea]: New Compare Methods for Time and DateTime Comparison

BC Idea Link
https://experience.dynamics.com/ideas/idea/?ideaid=59c5f0fb-0683-ee11-a81c-000d3adc4046
Description
🕮 Describe the issue
The comparison of time values does not work if you compare the time value before writing to the database with the time value that was written to the database.
The cause of the problem is that in BC DateTime and Time values are rounded by SQL Server (See MS Docs). This means that a DateTime / Time value can change just because it was written to the database, the comparison with the original value then runs on error.
For DateTimes there is a method "CompareDateTime" in the codeunit TypeHelper to compare DateTimes with a small threshold value to compensate for the rounding of the DateTime values. However, the threshold seems to be unnecessarily large.
Also, there is no method to compare Times.
🔧 To Reproduce
Run the follwowing code:
codeunit 50100 "Insert Time"
{
    trigger OnRun()
    var
        Contact: Record Contact;
        NewLastModifiedTime: Time;
        TimeText: Text;
    begin
        TimeText := '12:40:22.468Z';
        Contact.Get('KT100006');
        Evaluate(NewLastModifiedTime, TimeText, 9);
        Contact."Last Time Modified" := NewLastModifiedTime;
        Contact.Modify();

       Message('Before Write to Database %1 = %2', Format(Contact."Last Time Modified", 0, 9), Format(NewLastModifiedTime, 0, 9));

        Commit();
        Contact.Get('KT100006');
        Message('After Write to Database %1 <> %2', Format(Contact."Last Time Modified", 0, 9), Format(NewLastModifiedTime, 0, 9));
    end;
}

The code will output the following Messages:
Before Write to Database 12:40:22.468Z = 12:40:22.468Z
After Write to Database 12:40:22.467Z <> 12:40:22.468Z
📣 Expected behavior
There should be methods to compare DateTime / Time values that take care of the sql rounding.
Additional context
Previous Disscussion to this topic: https://github.com/microsoft/BusinessCentralApps/issues/483
Yammer Thread: https://www.yammer.com/dynamicsnavdev/#/threads/show?threadId=2506817338753024

@JesperSchulz i created a pr draft, if you could approve the issue i would make it into a real pr.

I am just waiting for a reply from our platform team, if this is the right way to go. If they agree, I'll approve this one instantly! 😊

Discussions are still ongoing. I'll soon post an update!

Aimed for BC 24 :-)
https://x.com/KennieNP/status/1730162200612933716?s=20

I fully agree. A fix at platform level is the best solution here.

authors: JesperSchulz JohnnyUndercover NKarolak

repo: microsoft/BCApps


text:
Zoma/move

Add the integrate work item into chrimc/move branch

Delete file

Refers to: experimental/rush.json:16 in 6e6e47d. [](commit_id = 6e6e47d92cbd4c7b552b6a8bca233d721e7716ca, deletion_comment = False)

dependencies:

Delete file

Refers to: experimental/common/config/rush/pnpm-lock.yaml:1 in 6e6e47d. [](commit_id = 6e6e47d92cbd4c7b552b6a8bca233d721e7716ca, deletion_comment = False)

Once you get the test to pass, you can check-in.

repo: microsoft/BotBuilder-Samples


text:
fix: dialog ref lg/lu name formate to lowercase

Description

Task Item
close #3760

Screenshots

Coverage increased (+0.003%) to 57.16% when pulling 9e9f1f37d63454d4cfa59df0a4147ca6fcd62412 on zhixzhan:dialog-ref-fix into e157b0f498f6c6e648ab7e16dbf4881a6bee7d10 on microsoft:main.

authors: coveralls zhixzhan

repo: microsoft/BotFramework-Composer


text:
Sample Code

Is there any sample code/application that illustrates the use of the DirectLine JS API? As such the code snippets in the README.md or on Azure Docs page are not very informative to get a head start, at least for someone who is a beginners.

Thanks @spaniard81 for the report..

The API documentation and example code is here: https://github.com/microsoft/BotFramework-DirectLineJS#how-to-create-and-use-a-directline-object
We do not have working samples available for users for this library.

"We do not have working samples available for users for this library." @cwhitten So how do someone know this library works? Do you know of any project on GitHub that is using this? Would be have some reference. Working samples offer people a head start in their tasks (reducing the efforts from a few days to few hrs).

hello @spaniard81. BotFramework WebChat uses this library and is open source. Browse the samples in that project to different uses: https://github.com/microsoft/BotFramework-WebChat/tree/master/samples

Thank you @cwhitten, I was also thinking about looking at the WebChat.

authors: CezaryMarcjan cwhitten spaniard81

repo: microsoft/BotFramework-DirectLineJS


text:
Is there a way to install 32 bit version of the glibc on 64 bit Mariner systems?

Similar to libc6-i386(for debian)/ glibc.i686(for rhel)/ glibc-32bit(for openSUSE) is there a package to provide the shared libraries, development headers, and object files needed to compile and link 32 bit programs on 64 bit platforms in Mariner systems?

AzureLinux does not support 32 bit architectures.
/cc @christopherco @jslobodzian

@mfrw is correct. We currently only build and supply packages for supporting x86_64 and ARM64 architectures.

I'm going to close to close this as "wontfix" for now as this won't be added in the 2.0 timeframe. if there's a justification to support this in future versions, we can consider it. Since many distros are trying to reduce 32bit support, it would take a pretty significant justification though.

authors: AyushSingh-c christopherco jperrin mfrw

repo: microsoft/CBL-Mariner


text:
Add package libcmpiutil version 0.5.7

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

[x] The toolchain has been rebuilt successfully (or no changes were made to it)
[x] The toolchain/worker package manifests are up-to-date
[x] Any updated packages successfully build (or no packages were changed)
[x] Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
[x] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
[x] All package sources are available
[x] cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
[x] LICENSE-MAP files are up-to-date (./SPECS/LICENSES-AND-NOTICES/data/licenses.json, ./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md, ./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)
[x] All source files have up-to-date hashes in the *.signatures.json files
[x] sudo make go-tidy-all and sudo make go-test-coverage pass
[x] Documentation has been updated to match any changes to the build system
[ ] Ready to merge

Summary

What does the PR accomplish, why was it needed?
Add package libcmpiutil version 0.5.7
Change Log

NA

Does this affect the toolchain?

NO
Associated issues

NA

Links to CVEs

NA

Test Methodology

Buddy Build

AMD64
ARM64

@mfrw  / @oliviacrain, Thanks for the review. I have addressed your comments. Please look at the latest commits.
I have also reran Buddy Builds after that. Both of them passed. Here are the results.

AMD64
ARM64

Thanks @mfrw / @oliviacrain for the approvals. I have once again rebased with mainline. Ran the Buddy Builds. Both of them looks good. Going to merge the PR shortly.

AMD64
ARM4


text:
Generated method signature may not be completely correct for cfapi->CfConnectSyncRoot

Actual behavior
The definition of method CfConnectSyncRoot in cfapi.h is as follows:
STDAPI
CfConnectSyncRoot (
    _In_ LPCWSTR SyncRootPath,
    _In_ CONST CF_CALLBACK_REGISTRATION *CallbackTable,
    _In_opt_ LPCVOID CallbackContext,
    _In_ CF_CONNECT_FLAGS ConnectFlags,
    _Out_ CF_CONNECTION_KEY *ConnectionKey
    );

generated C# method signature is respectively
[SupportedOSPlatform("windows10.0.16299")]internal static unsafe win32.Foundation.HRESULT CfConnectSyncRoot(
    string SyncRootPath,
    in win32.Storage.CloudFilters.CF_CALLBACK_REGISTRATION CallbackTable,
    void* CallbackContext,
    win32.Storage.CloudFilters.CF_CONNECT_FLAGS ConnectFlags,
    out win32.Storage.CloudFilters.CF_CONNECTION_KEY ConnectionKey)
{ ... }

where
_In_ CONST CF_CALLBACK_REGISTRATION *CallbackTable
translates to
in win32.Storage.CloudFilters.CF_CALLBACK_REGISTRATION CallbackTable
This parameter as the name suggests is used to pass in a table of typed callbacks to handle certain filesystem events, however I am not completely sure if I fail to understand how to properly call the method, or is the parameter's type not generated correctly.
I became more suspicious when I looked at the P/Invoke signature provided by the Vanara project for the same method, which I add for reference:
 [PInvokeData("cfapi.h", MSDNShortId = "287DA978-9797-48DF-9C90-BA53BB82475C")]
 public static HRESULT CfConnectSyncRoot(
    string SyncRootPath,
    CF_CALLBACK_REGISTRATION[] CallbackTable,
    IntPtr CallbackContext,
    CF_CONNECT_FLAGS ConnectFlags,
    out CF_CONNECTION_KEY ConnectionKey);

There we have an array to pass for CallbackTable.
I would like to know:

is the method signature generated correctly
if yes, what would be the correct idiom in C# to call it (as I am currently becoming a C# programmer by necessity It is highly likely that I am missing something obvious here so please, do not spare details in any explanations that would follow)

Repro steps

NativeMethods.txt content:

CldApi.*

Try to call Windows.Win32.PInvoke.CfConnectSyncRoot

Context

CsWin32 version: v0.1.506-beta
Win32Metadata version (if explicitly set by project):
Target Framework: net5.0-windows10.0.19041.0

Thanks and regards,
Stefan

Yes, I think CfConnectSyncRoot is being generated correctly. Vanara is sub-optimally exposing it as an array but per the docs, the parameter is a pointer to exactly one struct. The in modifier we emit causes the interop layer to send a pointer instead of the value itself, which in interop is equivalent to Vanara's approach of using an array.

Greetings, again,
Is there anything special I need to do when calling this method, because if I just pass the array parameter I receive a compile-time error:
unsafe
{
    CF_CONNECTION_KEY key;
    CF_CALLBACK_REGISTRATION[] callbacks = new CF_CALLBACK_REGISTRATION[13];

    PInvoke.CfConnectSyncRoot(null, callbacks, null, Windows.Win32.Storage.CloudFilters.CF_CONNECT_FLAGS.CF_CONNECT_FLAG_NONE, out key);
}

error being:
CS1503	Argument 2: cannot convert from 'Windows.Win32.Storage.CloudFilters.CF_CALLBACK_REGISTRATION[]' to 'in Windows.Win32.Storage.CloudFilters.CF_CALLBACK_REGISTRATION'
among others that popped up.
I'd appreciate further tips on how to make the actual call, because reading into MS Interop documentation for C# did not shed more light.
Regards,
Stefan

Why are you trying to pass in an array for the second argument? The function only takes one as documented here.

Maybe I spoke too soon. The documentation doesn't mention it, but perhaps that really is a pointer to an array. As evidence, this specially-terminated array is passed in as the second argument to this method.
So I guess this is a bug in the metadata.

authors: AArnott stefan-agl


text:
Add caching for type lookup of runtime class name, to address exception storm perf issue

This change improves perf by caching mapping from runtime class to managed type, especially in scenarios where IInspectable::GetRuntimeClassName returns invalid strings like "TrackerCollection".
#fixes 486

@azchohfi - FYI, this should help your debug experience

repo: microsoft/CsWinRT


text:
Publishing a DACPAC to a database ignores master.dacpac same directory

Introduction
My solution makes use of the Microsoft.SqlServer.DacFx.x64 (v150.4826.1) NuGet-package to programmatically publish a DACPAC, built using Visual Studio 2019 (Version 16.6.2) and SQL Server Data Tools (16.0.62006.03190), to an existing database.
The DACPAC references types contained in the master.dacpac file which is referenced in the model.xml file as follows:
<CustomData Category="Reference" Type="SqlSchema">
	<Metadata Name="FileName" Value="C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\EXTENSIONS\MICROSOFT\SQLDB\EXTENSIONS\SQLSERVER\100\SQLSCHEMAS\MASTER.DACPAC" />
	<Metadata Name="LogicalName" Value="master.dacpac" />
	<Metadata Name="ExternalParts" Value="[master]" />
	<Metadata Name="SuppressMissingDependenciesErrors" Value="True" />
</CustomData>

Before starting the publish operation, both DACPACs are copied to the same directory:
C:\MyDirectory\MyDatabase.dacpac
C:\MyDirectory\master.dacpac

Issue
When publishing the DACPAC using C:\Program Files (x86)\Microsoft SQL Server\140\DAC\bin\SqlPackage.exe, the master.dacpac of the same directory (MyDirectory) is used and the operation works.
But when publishing the same file using the DacFx assemblies, they try to load master.dacpac from exactly the same directory as specified in the reference definition in the metadata (C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\EXTENSIONS\MICROSOFT\SQLDB\EXTENSIONS\SQLSERVER\100\SQLSCHEMAS\MASTER.DACPAC) which of course doesn't exist on a production machine.
Thus the operation failes.
25.06.2020 22:59:48 - E - Error SQL0: The reference to external elements from the source named 'master.dacpac' could not be resolved, because no such source is loaded.
25.06.2020 22:59:48 - E - Warning SQL72025: No file was supplied for reference master.dacpac; deployment might fail. When package was created, the original referenced file was located C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO\2019\COMMUNITY\COMMON7\IDE\EXTENSIONS\MICROSOFT\SQLDB\EXTENSIONS\SQLSERVER\100\SQLSCHEMAS\MASTER.DACPAC.
25.06.2020 22:59:48 - E -  ---> Microsoft.Data.Tools.Schema.Sql.Deployment.DeploymentFailedException: An error occurred while adding references.  Deployment cannot continue.
25.06.2020 22:59:48 - E -    bei Microsoft.Data.Tools.Schema.Sql.Deployment.SqlDeployment.ThrowIfErrors(String message, ErrorManager errors, Object category)
25.06.2020 22:59:48 - E -    bei Microsoft.Data.Tools.Schema.Sql.Deployment.SqlDeploymentEndpointPackage.DeploymentEndpointReferenceLoader.OnLoaded(ErrorManager errors)
25.06.2020 22:59:48 - E -    bei Microsoft.Data.Tools.Schema.Sql.Deployment.DacpacHeaderLoader.Load(ErrorManager errors)
25.06.2020 22:59:48 - E -    bei Microsoft.Data.Tools.Schema.Sql.Deployment.SqlDeploymentEndpointPackage.OnLoad(ErrorManager errors, DeploymentEngineContext context)
25.06.2020 22:59:48 - E -    bei Microsoft.Data.Tools.Schema.Sql.Deployment.SqlDeployment.PrepareModels()
25.06.2020 22:59:48 - E -    bei Microsoft.Data.Tools.Schema.Sql.Deployment.SqlDeployment.InitializePlanGeneratator()
25.06.2020 22:59:48 - E -    bei Microsoft.Data.Tools.Schema.Sql.Deployment.SqlDeployment.CreateController(Action`1 msgHandler)
25.06.2020 22:59:48 - E -    bei Microsoft.SqlServer.Dac.DacServices.CreateController(SqlDeployment deploymentEngine, ErrorManager errorManager)
25.06.2020 22:59:48 - E -    --- Ende der internen Ausnahmestapelüberwachung ---
25.06.2020 22:59:48 - E -    bei Microsoft.SqlServer.Dac.DacServices.CreateController(SqlDeployment deploymentEngine, ErrorManager errorManager)
25.06.2020 22:59:48 - E -    bei Microsoft.SqlServer.Dac.DeployOperation.<>c__DisplayClass3.<>c__DisplayClass5.<CreatePlanInitializationOperation>b__1()
25.06.2020 22:59:48 - E -    bei Microsoft.Data.Tools.Schema.Sql.Dac.OperationLogger.Capture(Action action)
25.06.2020 22:59:48 - E -    bei Microsoft.SqlServer.Dac.DeployOperation.<>c__DisplayClass3.<CreatePlanInitializationOperation>b__0(Object operation, CancellationToken token)
25.06.2020 22:59:48 - E -    bei Microsoft.SqlServer.Dac.Operation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context)
25.06.2020 22:59:48 - E -    bei Microsoft.SqlServer.Dac.ReportMessageOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context)
25.06.2020 22:59:48 - E -    bei Microsoft.SqlServer.Dac.OperationExtension.CompositeOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context)
25.06.2020 22:59:48 - E -    bei Microsoft.SqlServer.Dac.OperationExtension.CompositeOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context)
25.06.2020 22:59:48 - E -    bei Microsoft.SqlServer.Dac.OperationExtension.CompositeOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context)
25.06.2020 22:59:48 - E -    bei Microsoft.SqlServer.Dac.OperationExtension.CompositeOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context)
25.06.2020 22:59:48 - E -    bei Microsoft.SqlServer.Dac.DeployOperation.Microsoft.SqlServer.Dac.IOperation.Run(OperationContext context)
25.06.2020 22:59:48 - E -    bei Microsoft.SqlServer.Dac.OperationExtension.Execute(IOperation operation, DacLoggingContext loggingContext, CancellationToken cancellationToken)
25.06.2020 22:59:48 - E -    bei Microsoft.SqlServer.Dac.DacServices.InternalDeploy(IPackageSource packageSource, Boolean isDacpac, String targetDatabaseName, DacDeployOptions options, CancellationToken cancellationToken, DacLoggingContext loggingContext, Action`3 reportPlanOperation, Boolean executePlan)
25.06.2020 22:59:48 - E -    bei Microsoft.SqlServer.Dac.DacServices.InternalPublish(DacPackage package, String targetDatabaseName, PublishOptions publishOptions, Boolean executePlan)

(Timestamps were added by my application)
How to solve this?
Is there a way to specify additional directories, where the DacFx assemblies look for referenced DACPACs?
Is there something like a "reference resolving event" that can be handled by my application returning the path or a stream to the referenced DACPAC?
Are there any other options, that make the DacFx assemblies incorporate the source DACPAC's directory when searching for referenced DACPACs?
Is there anything else that SqlPackage.exe does additionally which makes the reference discovery work and which I could also add to my application?
Thank you for your help!

You could use the code here to delete and add the master reference in the .dacpac before publishing: https://github.com/GoEddie/Dacpac-References/blob/master/src/DacpacHeaderParser.Tests/WriteHeaderTests.cs

Thanks for the link!
Of course, modifying the DACPAC file before the deployment is a way of solving the problem - but I'd rather call it a "workaround" than a "solution". Especially as it works with sqlpackage.exe without prior modification.
Do you know, where I can file this issue so it will receive attention from the DacFx developers?

I am facing the same issue too. I have some views who are referring to the master database information schema views. Please let me know if any solution is identified to fix this one.

authors: ErikEJ sajanmittal t-mxcom

repo: microsoft/DACExtensions


text:
[REQUEST]can deepspeed support hybrid shard

pytorch fsdp support hybrid shard which and reduce communication across machine, does deepspeed has similar config.
Thanks!

Please check out recently released ZeRO++ -- communication efficient ZeRO.

Hi, it seems that the newly released ZeRO++ is enabled only when using stage 3?
In FSDP there's also a mode named "_HYBRID_SHARD_ZERO2" which is the same strategy but for stage 2 which doesn't seem to be supported in ZeRO++.
I tried activating it via the config but it seemed to make no difference. Any help or pointers would be appreciated thanks!

authors: QingruiSun najeeb5 samadejacobs

repo: microsoft/DeepSpeed


text:
Questions about Pytorch with DirectML

Could you please comment if you have any plans to support newer versions of Pytorch such as the current release 1.11? Version 1.8 was released  at the beginning of March in 2021.�

I didn’t see any plans to support aten::reflection_pad2d in the wiki roadmap. Could this functionality please be added to the list?�

P.S. I am asking here because an email to askdirectml@microsoft.com as listed in the readme, was rejected with a "The group directmldev only accepts messages from people in its organization or on its allowed senders..."
Thanks,
Lars

@Adele101, @smk2007, as the question is about PyTorch rather than DirectML.

I noticed that Pytorch 1.12 was just released with lots of cool new stuff.

Hello,
Thanks for reachihng out! Yes, we will be supporting the latest version PyTorch with our next release of PyTorch-DirectML. We will add aten::reflection_pad2d to our backlog for operator support and will update this thread when more information is available.

Hi @LRystrom, the newest version of torch-directml-0.1.13.dev221216 supports torch 1.13.0. aten::reflection_pad2d is still on the backlog for future releases.

authors: Adele101 LRystrom fdwr larry-rystrom linnealovespie

repo: microsoft/DirectML


text:
Compose new Tweet / Twitter

https://twitter.com/intent/tweet

spam

authors: markymarkfunky sebmerry

repo: microsoft/DirectX-Graphics-Samples


text:
Update CMake to work with Intel compilers

/Qspectre is MSVC only
IntelLLVM should be treated the same as Clang
Intel Classic Compiler doesn't support /ZH:SHA_256, does use /arch
Whitespace cleanup

Intel Classic Compiler is deprecated. I only support it here to improve conformance validation.

https://github.com/walbourn/directxtextest/pull/37

repo: microsoft/DirectXTex


text:
optimize docker image size

Description
Using multistage build for the docker image the size should be much smaller.
The new size is 237 Mb from 1.2Gb
Related issues
none
Testing
There should be no

Thank you very much for such a helpful improment. I've invited some reviewers, and several comments will be leaved later on.

authors: ACMoretxj gjergjsheldija

repo: microsoft/FHIR-Converter


text:
Delete DeltaConnection

After PR https://github.com/microsoft/FluidFramework/pull/3904 is in, remove DeltaConnection - it is simple pass-through wrapper that does nothing.

Vlad did this in #3937

authors: ChumpChief vladsud

repo: microsoft/FluidFramework


text:
fluidErrorCode content in telemetry does not seem like what we expect to see

Office_Fluid_FluidRuntime_Error
| where Data_loaderVersion contains "0.49"
| summarize count() by Data_fluidErrorCode
I think it is supposed to be a call site, i.e. unique tag in the code.
But with exception of very few cases (including first one), it's not the case:
deltaManagerEmitDelayInfo	3337
Error 403 (Forbidden)	2616
fetchError	1477
Error 403	1338
Error 404	674
Error 401	655
Load from summary, runtime metadata sequenceNumber !== initialSequenceNumber	410
realizeFluidDataStoreContext	319
Error 503	288
Error 400	206
Error 401 (Unauthorized)	163
Error 404 (Not Found)	155
failedToRetrieveOpsFromStorage:TooManyRetries	82
errorWhileParsingFetchResponse	52
epochMismatch	37
none	34
Error 412	31
Error 400 (Bad Request)	29
timeoutDuringFetch	14
storageServiceDisposedCannotRetry	13
errorWhileParsingFetchResponse (OK)	7
Error 503 (Service Unavailable)	4
Error 412 (Precondition Failed)	3
Error 500 (Internal Server Error)	1
channelDeltaConnectionFailedToProcessMessage	1

Some of these are from #7788 and will clean up over time as that change saturates.  Others need follow-up discussion on how we use fluidErrorCode.  Will dig in in December to get clarity and fix as needed.

@vladsud - The list is looking better in >= 0.50:

Here are the exceptions IMO, but they're from old driver versions (based on knowledge or code, and I spot-checked a couple... #8069 would help here!):

Error XXX
socket.io ...

If you take those out, I'm happy with what's left, for now.
We will continue to refine how fluidErrorCode is instrumented/interpreted, and some issues are open now about it, but as for this issue I'm closing it.

authors: markfields vladsud


text:
[0.35] Build esmodules for some projects

This is a port of PR #5612 to the 0.35 release branch. This will let us publish 0.35 packages with esmodules without waiting for the 0.37 release.
Main branch: #5612
0.36 branch: #5613
0.35 branch: #5614

/azp run Build - client packages


text:
Flip AgentScheduler flag to omit it by default

Following up on the next step of the stage approach outlined here: https://github.com/microsoft/FluidFramework/pull/5716#issuecomment-816015051
This change flips the default behavior to not include the AgentScheduler, but retains the ability to enable it by explicitly opting-in.  After Bohemia picks up 0.38 I expect we'll start by explicitly opting them into the flag (to protect current behavior) so this change should not have any impact by the time they're ready to pick up 0.39.
Within our repo, we opt-out in all cases where we don't explicitly need the functionality (a few of the end-to-end tests explicitly testing AgentScheduler/leader functionality and snapshot back-compat).
Also a couple changes to avoid stamping the flag with undefined (rather than leaving it unset).

The change to explicitly opt Bohemia into the flag is now merged.


text:
set_params to n_jobs does not resolve predict hanging with multiprocessing

How you are using LightGBM?

Python package

LightGBM component:  2.3.0 and 2.3.1
Environment info
Operating System: Ubuntu 18.04
CPU/GPU model: N/A
C++ compiler version:  N/A
CMake version:  N/A
Java version:  N/A
Python version: 3.7.1
R version:  N/A
Other:  N/A
LightGBM version or commit hash:  2.3.0 and 2.3.1
Error message and / or logs
I have a number of trained lgbm models that are being used in the app to make predictions. Each request causes spawn of a worker proocess that is making prediction. Yet lightgbm models hang during execution. After making some reading i found similar issue https://github.com/Microsoft/LightGBM/issues/989 and potential cure - change n_jobs param to 1, so it will work with multiprocess. Yet it didn't work on already trained model, despite parameters of the models being changed by set_params.
Reproducible example(s)
`
import lightgbm as lgb
import numpy as np
import multiprocessing as mp
import joblib

def test_context_manager():
    # this runs fine
    X = [[i for i in range(5)] for j in range(5)]
    y = [i/10 for i in range(5)]

    model = lgb.LGBMRegressor(n_jobs=1)
    print(model)

    model.fit(X, y)

    test = [np.random.random((1, 5)), ]

    with mp.Pool(processes=1) as pool:
        predict = pool.map(model.predict, test)

    print(predict)

def test_context_manager_with_jobs():
    # This function hangs
    X = [[i for i in range(5)] for j in range(5)]
    y = [i/10 for i in range(5)]

    model = lgb.LGBMRegressor()
    print(model)

    model.fit(X, y)
    model.set_params(n_jobs=1)
    print(model)

    test = [np.random.random((1, 5)), ]

    with mp.Pool(processes=1) as pool:
        predict = pool.map(model.predict, test)

    print(predict)

`
Steps to reproduce
Just paste and run, nothing fancy

@ElmiRakh I can't preproduce the issue locally, but n_jobs for prediction should be set via kwargs of predict() method. set_params() is for fit().
https://lightgbm.readthedocs.io/en/latest/pythonapi/lightgbm.LGBMModel.html#lightgbm.LGBMModel.predict

authors: ElmiRakh StrikerRUS

repo: microsoft/LightGBM


text:
[R-package] fix R examples and lgb.plot.interpretation()

See comments from @StrikerRUS

https://github.com/microsoft/LightGBM/pull/2989#issuecomment-614374151
https://github.com/microsoft/LightGBM/pull/2989#issuecomment-614375963

A few of the R examples are broken right now. These weren't caught by tests because one is only a warning, one is a plot that is generated successfully but is incorrect, and one is an issue specific to our readthedocs builds.
I think the issue for lgb.cv() is #2715. In that issue we found that data.table 1.11.4 and R 3.6.0 lead to a data.table error ending in column or argument 2 is NULL. I think this can be fixed by upgrading to the data.table  1.12.1 in conf.py.
To fix the lgb.set.categorical() example, I changed file names across several examples to be sure that no two examples write to the same file name.

This issue with lgb.plot.interpretation() is because I made a change and forgot to use abs().

new plot:

I was not able to reproduce the data.table error in  https://github.com/microsoft/LightGBM/pull/2989#issuecomment-614374151. It

Thanks @jameslamb for taking a look!

I think the issue for lgb.cv() is #2715.

But we do not use lgb.dl() at RTD and R version is 3.5 there. Probably we should update our FAQ entry...
If you work from LightGBM's branch, not from your fork, then I'll be able to enable RTD builds for that branch and make sure that all issues are gone. Will it make sense?

Thanks @jameslamb for taking a look!

I think the issue for lgb.cv() is #2715.

But we do not use lgb.dl() at RTD and R version is 3.5 there. Probably we should update our FAQ entry...
If you work from LightGBM's branch, not from your fork, then I'll be able to enable RTD builds for that branch and make sure that all issues are gone. Will it make sense?

Sure! I can recreate the PR from a LightGBM branch.

closing in favor of #3002

authors: StrikerRUS jameslamb


text:
partner consent redirecting to HTTP instead of HTTPs

Steps to reproduce

Deploy the partner consent to a server where a load balancer is used

Expected behavior

You will be able to authenticate successfully and the refresh token will be stored in the vault

Actual behavior

Authentication is failing because it is redirecting to HTTP instead of HTTPS

This issue has been resolved with PR #15

repo: microsoft/Partner-Center-Java-Samples


text:
PowerApps Unpack Solution not working with Enviroment variable

Hi i am getting the following error as soon as i introduce an enviroment variable in my solution that i am unpacking in my pipeline.

@saadnadir
If you need assistance with the Power Apps build tools, post a message to the Power Apps component framework, ALM & Pro Dev forum.

@saadnadir
If this issue is related to the build tools hands-on labs that you downloaded here, then let us know in a followup comment.

authors: phecke saadnadir

repo: microsoft/PowerApps-Samples


text:
Metadata DisplayName LocalizedLabels sometimes null

Hi, we are trying to get attribute display names of certain entities via metadata requests. Sometimes (but not always) the requests doesn't return the LocalizedLabels. We tried multiple ways to get the metadata, for example with the RetrieveMetadataChangesRequest, but the behaviour stays the same. An example request looks like this:
ServiceClient client = new ServiceClient("AuthType=ClientSecret;Url=ZZZ;ClientId=XXX;ClientSecret=YYY");
if (client.IsReady)
{
    client.ResetLocalMetadataCache("contact");
    var attr = client.GetEntityAttributeMetadataForAttribute("contact", "address2_line1");

    RetrieveMetadataChangesRequest retrieveMetadataChangesRequest = new RetrieveMetadataChangesRequest();

    var attrCriteria = new MetadataFilterExpression();
    attrCriteria.Filters.Add(new MetadataFilterExpression()
    {
        Conditions =
        {
            new MetadataConditionExpression("LogicalName", MetadataConditionOperator.Equals, "address2_line1")
        }
    });

    attrCriteria.Filters.Add(new MetadataFilterExpression()
    {
        Conditions =
        {
            new MetadataConditionExpression("IsRetrievable", MetadataConditionOperator.Equals, false)
        }
    });

    retrieveMetadataChangesRequest.Query = new EntityQueryExpression()
    {
        Criteria = new MetadataFilterExpression()
        {
            Conditions =
            {
                new MetadataConditionExpression("LogicalName", MetadataConditionOperator.Equals, "contact")
            }
        },
        AttributeQuery = new AttributeQueryExpression()
        {
            Criteria = attrCriteria,
            Properties = new MetadataPropertiesExpression()
            {
                AllProperties = true
            }
        },
        Properties = new MetadataPropertiesExpression()
        {
            AllProperties = false,
            PropertyNames = { "Attributes" }
        }
    };

    RetrieveMetadataChangesResponse response = client.Execute(retrieveMetadataChangesRequest) as RetrieveMetadataChangesResponse;

    var result = response.EntityMetadata[0];
    var labels = result.Attributes[0].DisplayName.LocalizedLabels; //labels.Count sometimes 0

    //same behaviour as before:
    //RetrieveEntityRequest req = new RetrieveEntityRequest();
    //req.LogicalName = "contact";
    //req.RetrieveAsIfPublished = false;
    //req.EntityFilters = EntityFilters.Attributes;

    //RetrieveEntityResponse response = client.Execute(req) as RetrieveEntityResponse;

    //var attr = response.EntityMetadata.Attributes.Where(a => a.LogicalName=="address2_line1").First();

    //while (attr.DisplayName.LocalizedLabels.Count <= 0)
    //{
    //    RetrieveAttributeRequest request = new()
    //    {
    //        EntityLogicalName = "contact",
    //        LogicalName = "address2_line1"
    //    };
    //    var response2 = (RetrieveAttributeResponse)client.Execute(request);
    //    attr = response2.AttributeMetadata;
    //}
}

Are you seeing this inconsistently for the same entity/attribute in the same environment?
if so, that would be something we would want to have a support ticket opened with a request ID so that the environment itself can be investigated.

Going to close this at this time.
This would need to be taken up with support.

authors: BernhardWeidingerACE MattB-msft


text:
Kicad and FancyZones not playing along nicely

Microsoft PowerToys version
0.37
Running as admin

[ ] Yes

Area(s) with issue?
FancyZones
Steps to reproduce
When using FancyZones with the "Move newly created windows to their last known zone" option enabled, KiCad will crash on startup.
✔ Expected Behavior
Not crashing
❌ Actual Behavior
Crashing
Other Software
KiCad 5.1.9
Lastest Windows 10 release

does this issue still happen with v0.73.0? /needinfo

authors: TheJoeFin amantunes

repo: microsoft/PowerToys


text:
[Run-Plugin] [Calculator] Wrong multiplication result

Microsoft PowerToys version
0.41.4
Running as admin

[ ] Yes

Area(s) with issue?
PowerToys Run
Steps to reproduce
Calculate 1.449*51.06=

✔ Expected Behavior
correct result is 73.98594
❌ Actual Behavior
it returned 74.7684
Other Software
No response

Strange. Just did a super quick check on my Surface with 0.36 and then it gave the correct result.

@marcellohi
I think the problem is using dots instead of commas. Dots are not used for decimal numbers on your system.

I can replicate this issue as well, as my system uses commas for decimal numbers as well.
1.44951.6 = 74,7684 (this is correct)
1.44951.06 = 74,7684 (this is incorrect)
1.449*51.006 = 74,7684 (this is incorrect)
It seems that 0s after the dots are being ignored.

This is a known issue, nothing we can do about it. Without an engine swap to the calc engine (we do have a tracking issue here), mages uses the OS number format
We can’t make assumptions also due to languages like German which use decimal for a thousand marker.

If gelieve the the of you are wrong. If the incorrect results are numbers that do not have decimals, but thousands-indicators, there should be groups of three, from right to left. And that's not the case.

@marcellohi what is the decimal symbol on your OS?

@crutkas does mages split the numbers in integers and fractures? Maybe there's an issue where leading zeros in the fracture part get truncated?

@marcellohi what is the decimal symbol on your OS?
@Jay-o-Way do you mean this (please, see screenshot)?

Yes, that is exactly what I mean. Funny, I also use the apostrophe for grouping :)

if the issue is the decimal separator

IT IS NOT!
I just did a check on my computer with 0.41.4 and this is the 👍🏻 result:

My next advice is to manually remove PowerToys and then install the latest verion.

I don't understand the different behavior between Windows built-in Calculator and PowerToysRun

They use a different "engine". It's a technical thing and I don't know the details, but @crutkas should be able to explain.

@Jay-o-Way please, let me rephrase: I don't understand why Windows built-in Calculator (and any other program like, for instance,  Excel) interprets the dot key as a decimal separator while PowerToysRun does not seem to do it, as you can notice from my first screenshot.

@Jay-o-Way please, let me rephrase: I don't understand why Windows built-in Calculator (and any other program like, for instance, Excel) interprets the dot key as a decimal separator while PowerToysRun does not seem to do it, as you can notice from my first screenshot.

Windows Calculator is forgiving. It does not deal with thousands-grouping, the "dot" on a numpad is treated as decimal.

@Jay-o-Way , I'm able to replicate this on the latest version, as well.
Every 0 after the dot on my comma-decimal system configurations seems to be ignored.
1.449*51.0000006 gives the same result (74,7684).
Even 1.0000449*51.0000006 gives the same result (74,7684).

It is best to use both dot and comma as decimal separator. Because even is country uses comma, dot is often used as international variant (like in programming languages).

Work to execute this is by #2265 so whatever the calc engine uses we will.
Until then we leverage the mages engine for doing free form text for calculations. It uses your language settings and like I said above, comma and periods have different meanings and a hybrid model means someone will always be upset since the calculation will be wrong.
If there is a pattern we can follow, please help other wise as of now, I'm not aware of any.

@crutkas the issue here is NOT in the decimal character, because that IS recognised. The problem is that trailing zeros for the fracture part are trimmed off before the calculation. Please tell me you see the difference?
#2265 might solve this too, but I really want to stress the difference. And since that issue does not mention the problem of the zeros, I am not marking this as duplicate for that issue.

One way around this might be to only accept the actual decimal separator configured in the system. That should fix this and make it more correct.

I see that we're also translating the numbers between cultures 🤔  May be this is where the issue is.

I can confirm. Basically we're trying to translate numbers between cultures but then removing leading zeroes...

@jaimecbernardo you already figured that out in your comment from 19 july. Why does literally everyone keep pointing at the decimals chars?! 😖😖

authors: Jay-o-Way Vanav crutkas jaimecbernardo marcellohi mykhailopylyp


text:
Error 0x80010135

Provide a description of requested docs changes

Trying to unzip the folder and i get this.
"An unexpected error prevents the file from being copied. If this error persists, you can use the error code to seek help for this issue.
Error 0x80010135: path is too long"

@Christonn93 Are you using Windows 10 or 11 now? Feedback hub should be a pre-installed application.

@Christonn93 So then I try to help you. Is it possible for you to extract it with a third party software like 7-zip?
If not try to extract it first into a folder with a smaller path. (For example if you tried extracting it into c:\users\testuser\documents\...\... you should try to extract it into c:\[somefolder] and then move it from there.

I will try that :) I'll let you know

It worked! Thanks :)

You're welcome. I'm just curious, did it work with a third party application or did the other thing I proposed work?

@Christonn93 So then I try to help you. Is it possible for you to extract it with a third party software like 7-zip?
If not try to extract it first into a folder with a smaller path. (For example if you tried extracting it into c:\users\testuser\documents\...\... you should try to extract it into c:\[somefolder] and then move it from there.

I will try that :) I'll let you know

It worked! Thanks :)

You're welcome. I'm just curious, did it work with a third party application or did the other thing I proposed work?

I used 7-zip :)


text:
Mouse Highlighter: draw dragging paths on screen

Description of the new feature / enhancement
If Mouse Highlighter is enabled, draw a solid path when dragging an object and remove this path shortly after dropping it.
Scenario when this would be used?
Displaying mouse actions in MS Word and MS Excel to remote students via Google Meet or MS Teams. Displaying clicks is already extremely helpful for them, but displaying drag-n-drop actions (e. g. array filling in MS Excel) will be even more useful.
Supporting information
No response

Have you tried ZoomIt? https://docs.microsoft.com/en-us/sysinternals/downloads/zoomit

rel: #149 / #5021 /needinfo

Have you tried ZoomIt?

I'll try it, but I am not sure it has the same exact functionality.

/dup #149

authors: crutkas franky920920 jaimecbernardo watchmakerful


text:
unable to open PowerToys

Microsoft PowerToys version
0.58.0
Running as admin

[X] Yes

Area(s) with issue?
General
Steps to reproduce

click on icon in the icontray
open it via the .exe
open it via windows search
..

✔ Expected Behavior
trying to open the running/minimized application, should open a window with the application's GUI
❌ Actual Behavior
the application is running, but the gui does not appear. in the attached picture you can find that nothing happens after clicking on the icon in the icontray.

Other Software
No response

here's what I've tried:

reinstalling the application
opening the application via windows search
opening the application via it's .exe
right clicking on the powertoys tray icon and clicking on "settings

"
killing the task and restarting the application

I tried something new:

I used BCuninstaller as a more powerfull/clean way to uninstall powertoys again. It found 2 instances, uninstalled both.
restarted pc
reinstalled powertoys, same issue. The features work, but I can't access any of the settings, can't open the application GUI

I figured out the issue:

RTSS seems to not let me open the settings if I have any type of application detection level that is higher than "none"

when set on "none", I can open the settings.
I was able to use RTSS and PowerToys together for several months without an issue.
I believe that the only thing that might have changed before this, is that I installed "Azurite Optimizer" and ran it. It's about the only new tweak/program I have installed since.
I might reverse this and see if that solves the problem later and I'll keep you up to date

Closing RivaTuner Statistics Server worked for me. I do not have Azurite Optimizer. The behavior began for me after updating PowerToys.

authors: HardyPotato oKazuhiro


text:
Ability to append Prefix and Suffix in PowerRename

Description of the new feature / enhancement
Ability to append Prefix and Suffix text to file name in PowerRename
Scenario when this would be used?
When renaming files, to add some text in front of or at the end of file name. Also useful when file has no file extention, to add one.
Supporting information
No response

This is already possible. Please have another look at the documentation.

authors: Jay-o-Way RudyShare


text:
[GPOs] Group policies

Description of the new feature / enhancement
We should group the policy by creating the following structure:
Power Toys
   -> Available Utilities
       * Always On Top: Configure Enabled State
       * ......
   -> General settings
       * Updater Policy
       * Experimentation Service

Scenario when this would be used?
Makes finding a policy easier.
Supporting information
Requires the following Categories attribute:
  <categories>
    <category name="PowerToys" displayName="$(string.PowerToys)"/>
    <category name="AvailableUtilities" displayName="$(string.AvailableUtilities)">
        <parentCategory ref="PowerToys"/>
    </category>
    <category name="GeneralSettings" displayName="$(string.GeneralSettings)">
        <parentCategory ref="PowerToys"/>
    </category>
  </categories>

And the existing policies mus be change to <parentCategory ref="AvailableUtilities"/>.

@jaimecbernardo
What do you think?

I'm open to this. Original idea was having General settings, (which I thought included on/off) in the "root", while then having future utility-specific policies in a folder for that utility.
This works too and I guess utility specific folders can be added under "Available utilitities" when needed.
This proposal will only really change the way the policies look in Group Policy Editor, since the registry keys will be the same.
Thumbs up and thanks for the proposal! 👍

I'm open to this. Original idea was having General settings, (which I thought included on/off) in the "root", while then having future utility-specific policies in a folder for that utility.
This works too and I guess utility specific folders can be added under "Available utilitities" when needed.
This proposal will only really change the way the policies look in Group Policy Editor, since the registry keys will be the same.
Thumbs up and thanks for the proposal! 👍

I personally be unsure what is the best layout.
Maybe it's the best to have on/off in PowerToys category and module specific settings under PowerToys\<Moduel>. The main trigger behind this was that I think people will find settings from the General page like "Experimentation" easier if they are separated from the "module on/off" policy.

Closing this as there is no implementation requirement yet. We can improve/update layout whenever it makes sense because of new policies.

authors: htcfreek jaimecbernardo


text:
Settings: update, error, retry

Microsoft PowerToys version
0.70
Installation method
PowerToys auto-update
Area(s) with issue?
Settings
Steps to reproduce

Click Update
Wait for error (possibly bad connection or whatever)
Click Retry

✔ Expected Behavior
Neutral color and text, because a new attempt has been started
❌ Actual Behavior

Jay, think we have a tracking issue for this

Best to combine with #14700

authors: Jay-o-Way crutkas


text:
Image Resizer no show

Microsoft PowerToys version
0.76.2
Installation method
Microsoft Store
Running as admin
Yes
Area(s) with issue?
Image Resizer
Steps to reproduce
Windows 11
Nothing changed, just one day when I want to resize my image, right click the image, select the Image Resizer, nothing happend
✔ Expected Behavior
open resizer UI
❌ Actual Behavior
nothing happen
Other Software
No response

PowerToysReport_2023-12-29-02-17-31.zip
here is the report

https://github.com/microsoft/PowerToys/issues/25361
https://github.com/microsoft/PowerToys/issues/20255
https://github.com/microsoft/PowerToys/issues/30321
I figured out that the global menu not works, but when extend the menu, click the group entry, it works

the not working image resizer entry located at [HKEY_CLASSES_ROOT\PackagedCom\ClassIndex{8F491918-259F-451A-950F-8C3EBF4864AF}]