text:
Feature Suggestion: Rider integration

Hi,
Is it possible to add integration with the IDE rider ?
Something like a ui preview

I feel Rider would be a better integration product than VS cause it's cross-platform.

Jesus, VS became to frickin' slow over the last few iterations, I am not using it anymore - simply to avoid a heart disease. Rider has become my main IDE, especially because I can use it on my Mac and on Windows alike. Plus its more stable, faster and more productive.

Technically that's possible (Rider is ready for plugin development) but it will be long process. Even writing simple plugin with just adding avalonia project types to Rider isn't easy due to lack of documentation.

+10 on this, I hate having to use VS ever since switching to Rider and the whole JetBrains family last year.

It's available now

Rider now integrated with Avalonia
https://www.jetbrains.com/rider/whatsnew/#avalonia-support
And previewer is available from this repo
https://github.com/ForNeVeR/AvaloniaRider

authors: Gaulomatic MostHated RUSshy VladimirAkopyan ingvar1995 maxkatz6 rstm-sf

repo: AvaloniaUI/Avalonia


text:
Parent does not layout correctly if children are rotated

Describe the bug
if you rotate a control it is not measured in its rotated state and the parent is not laid out in the expected size so it could contain the complete child.
To Reproduce
use the snippet
    <Grid
        ShowGridLines="True"
        RowDefinitions="* *"
        ColumnDefinitions="* *">

        <Panel
            HorizontalAlignment="Center"
            VerticalAlignment="Center"
            Background="Aqua">

            <TextBlock Text="{Binding Greeting}">
                <TextBlock.RenderTransform>
                    <RotateTransform Angle="45" />
                </TextBlock.RenderTransform>
            </TextBlock>
        </Panel>

        <Panel
            Grid.Row="0"
            Grid.Column="1"
            HorizontalAlignment="Left"
            VerticalAlignment="Bottom"
            Background="Aqua">

            <TextBlock Text="{Binding Greeting}">
                <TextBlock.RenderTransform>
                    <RotateTransform Angle="-45" />
                </TextBlock.RenderTransform>
            </TextBlock>
        </Panel>

        <!-- clipping -->
        <Panel
            Grid.Row="1"
            Grid.Column="0"
            HorizontalAlignment="Center"
            VerticalAlignment="Center"
            Background="Aqua"
            ClipToBounds="True">

            <TextBlock Text="{Binding Greeting}">
                <TextBlock.RenderTransform>
                    <RotateTransform Angle="-45" />
                </TextBlock.RenderTransform>
            </TextBlock>
        </Panel>

        <StackPanel
            Grid.Row="1"
            Grid.Column="1"
            Orientation="Horizontal"
            Background="Cyan"
            VerticalAlignment="Center"
            HorizontalAlignment="Center">

            <TextBlock
                HorizontalAlignment="Right"
                VerticalAlignment="Center"
                Text="{Binding Greeting}">

                <TextBlock.RenderTransform>
                    <RotateTransform Angle="-90" />
                </TextBlock.RenderTransform>
            </TextBlock>

            <Border
                BorderBrush="Black"
                BorderThickness="1">
                <StackPanel
                    VerticalAlignment="Stretch">

                    <TextBlock Text="some control" />
                    <TextBlock Text="a vertical text" />
                    <TextBlock Text="needed to be set" />
                    <TextBlock Text="next to its left side" />
                </StackPanel>
            </Border>

        </StackPanel>

    </Grid>

Expected behavior
the parent of a control should be sized depending on its content even if it is rotated.
how would you lay out a vertical text next to a control without using too much space horizontally otherwise?
in the screenshot below you see some examples. i would always expect the cyan control to contain the text completely.
in the top left, you see that the parent does not size depending on the rotation. it is just sized to the content as if it were not rotated.
in the bottom left, you see that it gets even clipped if clip to bounds is activated.
in the top right, i wanted to place the text to the bottom left so it starts from the corner but it even exceeds the grid there
in the bottom right you see an example for my actual problem in my current product, where i want to place a vertical text next to a control to name it. but since it is measured as if it were not rotated it does not take the correct space in its layout container and positioning can't be done by alignments anymore
Screenshots

Environment

OS: Windows 10
Avalonia-Version: 11.0.6

i missed the Avalonia.Controls.LayoutTransformControl. i think with this control i would get the expected behavior

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
Can't install via Nuget (System.Reactive version issue)

Tried with and without the "-Pre"
PM> Install-Package Avalonia -Pre
Attempting to resolve dependency 'Serilog (≥ 1.5.14)'.
Attempting to resolve dependency 'Splat (≥ 1.6.2)'.
Attempting to resolve dependency 'Sprache (≥ 2.0.0.50)'.
Attempting to resolve dependency 'System.Reactive (≥ 3.0.0)'.
Install-Package : The 'System.Reactive 3.0.0' package requires NuGet client version '2.12' or above, but the current NuGet version is '2.8.60610.756'.
At line:1 char:16
+ Install-Package <<<<  Avalonia -Pre
    + CategoryInfo          : NotSpecified: (:) [Install-Package], NuGetVersionNotSatisfiedException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

Nevermind. looks like Reactive 3 is only available in VS2015


text:
Do not create an egl surface if the window provided is invalid

What does the pull request do?
Prevents spamming debug output with egl errors on createWindowSurface. This is caused by attempting to create a window surface when the window passed is invalid, ie is 0.
What is the current behavior?

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

[ ] Added unit tests (if possible)?
[ ] Added XML documentation to any related classes?
[ ] Consider submitting a PR to https://github.com/AvaloniaUI/Documentation with user documentation

Breaking changes

Obsoletions / Deprecations

Fixed issues

You can test this PR using the following package version. 11.0.999-cibuild0026015-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

You can test this PR using the following package version. 11.0.999-cibuild0026028-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

source: gharchive/pull-request

authors: avaloniaui-team emmauss


text:
📃: Add the Attention Is All You Need Paper :-> Transformer Code for Language Translation

:red_circle: Title : Attention is All you Need
:red_circle: Aim :Language Translation
:red_circle: Brief Explanation : Language Translation using the Transformer Model

:white_check_mark: To be Mentioned while taking the issue :

Full name : Bhanushri Chinta
SSOC Contributor

@bhanushri12 go ahead.

repo: Avdhesh-Varshney/AI-Code


text:
added Virtual-Piano

Closes:  #271

Title : Virtual-Piano
Name: : MANKALA VAISHNAVI
Idenitfy yourself: : GSSOC24

Describe the add-ons or changes you've made 📃
I have added Virtual-Piano
How Has This Been Tested? ⚙

Screenshots 📷

Type of change ☑

What sort of change have you made:

[x] New feature (non-breaking change which adds functionality)

Checklist: ☑

[x] My code follows the Contributing Guidelines & Code of Conduct of this project.
[x] This PR does not contain plagiarized content.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly wherever it was hard to understand.
[x] My changes generate no new warnings.

Note to reviewers 📄

updated the changes that are mentioned

repo: Avdhesh-Varshney/WebMasterLog


text:
🛑 Mojang's Public API is down

In 309e5e5, Mojang's Public API (https://api.mojang.com/) was down:

HTTP code: 429
Response time: 37 ms

Resolved: Mojang's Public API is back up in 7e58401 after 7 minutes.

repo: AventiumSoftworks/helios-status-page


text:
It won't work

the MFI Gamepad Feeder wont work on my computer

You must give more info about your issue:

what problem are you experiencing exactly
what's your computer specification (especially is it 32 bit or 64 bit version of Windows, and type of your gamepad)
which version of MFIGamepadFeeder have you installed (32bit or 64bit)?

More instructions how to report issues here: https://coenjacobs.me/2013/12/06/effective-bug-reports-on-github/

My computer says "MFI Gamepad Feeder has stopped working"
64 bit version of windows
Gamepad: Steelseries Nimbus
64 bit of MFIGamepadFeeder

Please give me log from this crash (it should be available in windows event logger).
With this amount of information you've provided I'm not able to diagnose the problem.

Having the same issue, where are the logs stored?

Having the same issue, where are the logs stored?

I haven't implemented any sophisticated log management tool, but I guess that something should be captured in Widows Event Logger.
Here's some online tutororial I've found about it on google: http://www.howtogeek.com/school/using-windows-admin-tools-like-a-pro/lesson3/
Please add all detail about it issue you'd find.
I'll implement something like https://github.com/soygul/NBug in the future - this will simplify whole flow of submitting issues like this one

I haven't implemented any sophisticated log management tool, but I guess that something should be captured in Widows Event Logger.
Here's some online tutororial I've found about it on google: http://www.howtogeek.com/school/using-windows-admin-tools-like-a-pro/lesson3/
Please add all detail about it issue you'd find.
I'll implement something like https://github.com/soygul/NBug in the future - this will simplify whole flow of submitting issues like this one

I've created 2.0.2 version that includes nBug (https://github.com/Axadiw/MFIGamepadFeeder/releases/tag/2.0.2).
Now, after crash, app should create "Exception_xxx" zip file in the directory of MFIGamepadFeeder.
Could you reporoduce your crashes, and attach generated zip files in this issue?

Log Name:      Application
Source:        .NET Runtime
Date:          1/4/2017 10:18:25 PM
Event ID:      1026
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      LAPTOP-MK25J4VG
Description:
Application: MFIGamepadFeeder.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.

ok, but can you try to reproduce this issue on 2.0.2, and send me zip file with the log like I've written in previous post?

authors: Axadiw NicholasParry lydomo

repo: Axadiw/MFIGamepadFeeder

license: mit

license_source: bigquery


text:
FR: it would be useful to have a foreground colour in the object

Right now the snackbars all use white as their foreground colour. I had been using my own copy of your tool from v2.1.2. I had customized it to read an "fg" field from the object and use that as the foreground colour for the text.
I decided I would try to upgrade to your lastest version and ditch my customized copy. The background colours I have chosen don't work well with white text. I think I can get around it by using a slot to render my own text, but it would be nice to not have to do that.

I could do a pull request for it if you would accept it.

I was hoping that I could implement this with the current component using the default slot, but I can't because the object isn't passed to the slot, only the message is passed to the slot, so it really does need a PR to get this type of functionality.

Can you show me the excepted render? It would help me visualize what you want to achieve!

Yes I can. Here is what my success snackbar looks like:

and here is what my error snackbar looks like:

The 'x' icon for the close I can already do with the slot for the action, although it will need to get the foreground colour as well.

I took this colour scheme from the Vuetify docs site. You can see the error and warning alert styles on this page:
https://vuetifyjs.com/en/getting-started/installation/

Thanks. I'll have a closer look tomorrow.

I use the object prop and my objects have an fg field that contains the corresponding colour of green or red. If you are going to add this, take your pick of property name. I am not wedded to "fg".

You can already do it with color and content-class:
<v-snackbars
        :messages.sync="messages"
        color="red lighten-5"
        content-class="error--text"
        bottom
        left
      >
        <template v-slot:action="{ close, message }">
          <v-btn text class="error--text" @click="close()">×</v-btn>
        </template>
      </v-snackbars>

That works if I wanted every single snackbar to be red. I have one queue of snackbars for the system. The application either puts a success message (green) or an error message (red) into the queue and then v-snackbars displays them on the screen for an appropriate amount of time (a longer period for an error).
The colour has to come from the message object itself, it can't be hard coded into the v-snackbars component.

In that case you'll have to use objects with content-class. I've just published a new version (v3.2.5) that supports content-class in objects:
<v-snackbars :objects.sync="objects">
  <template v-slot:action="{ close, message, index }">
    <!-- use `class` to inherent and get the same text color -->
    <v-btn text :class="objects[index]['content-class']" @click="close()"
      >X</v-btn
    >
  </template>
</v-snackbars>

this.objects.push({
  message: "the message to display",
  bottom: true,
  left: true,
  color: "red lighten-5",
  "content-class": "red--text",
  timeout: 30000
});
this.objects.push({
  message: "another message",
  bottom: true,
  left: true,
  color: "green lighten-5",
  "content-class": "green--text",
  timeout: 30000
});

(actually I've just found a bug that I'm fixing now… a new version will be released)

Ok, I see you also pull content-class from each message object. Ok. I will just have to create a class with the colour I want for each message type.

Version 3.2.6 is published!

@Aymkdn  I hate to ask, but content-class is not a valid javascript field name. I am using typescript which makes this a really hard object field to name. I can't create a typescript interface to define the shape of the messages object.
Can that be changed to "class". Hmm, class wont work either. That is a reserved keyword. Would you be able to rename it to contentClass? or just about anything without a '-' in it?

content-class is what Vuetify is using…
OK, I renamed content-class to contentClass when using the objects type.
<v-snackbars :objects.sync="objects">
  <template v-slot:action="{ close, index }">
    <!-- use `class` to inherent and get the same text color -->
    <v-btn text :class="objects[index].contentClass" @click="close()">X</v-btn>
  </template>
</v-snackbars>

this.objects.push({
  message: "the message to display",
  bottom: true,
  left: true,
  color: "red lighten-5",
  contentClass: "red--text",
  timeout: 30000
});
this.objects.push({
  message: "another message",
  bottom: true,
  left: true,
  color: "green lighten-5",
  contentClass: "green--text",
  timeout: 30000
});

I see the new release. Thank you very much! I have updated to the new version and it works great.

authors: Aymkdn gregveres

repo: Aymkdn/v-snackbars


text:
[v2.4.7]ニコ生番組説明文編集の文字色が黒い

内容
ダークモードＯＮ時、ニコ生の番組を作成する際に、番組説明文のエディタのとこで文字色が黒になっていて見ずらいです。
参考画像
https://drive.google.com/open?id=1ZL-dlGUEnkYYX_mHPEG03TixwtwsTNrI
問題が発生したURL
https://live.nicovideo.jp/create?ref=cat
環境
Chrome
From
Twitter:@Kaomozi1173 from GForm

対応しました
ただ、文字色選択の背景色が合うものがわからずとりあえず$main-background-colorになってます

authors: AyumuNekozuki momoirodouhu

repo: AyumuNekozuki/niconico-darkmode


text:
Create Print element in Linked List.c

First Commit

Good work Ananya


text:
can i use not working st2

st2 plugin only works single word, following selected
“overflow" will search and display
http://caniuse.com/#search=-webkit-overflow-scrolling
“scroll snap” or "scroll-snap” both 404 with
http://caniuse.com/%23search=Scroll snap
div[id*=%2522c%2522]
however, search from within caniuse.com uri gives appropriate result
http://caniuse.com/#search=scroll snap
http://caniuse.com/#search=scroll-snap

I tried it out and it works fine.
Please consider giving more information how I can produce your problem and reopen this ticket.


text:
Ancient of Arcane

Plays the Birth animation of an Ancient when trained

@HerrDave i imagine this is due to the model still having the birth animation of the normal ancient model. I can give a go at removing it , but if you know an easy way xD

Doesn't look like we're going to spend the modeling time on this and it's just behaviour that we've come to expect from Ancient models, so closing.

repo: AzerothWarsLR/WarcraftLegacies


text:
chore: simulator utils cleanup

Cleanup of utils in simulator package.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

Current dependencies on/for this PR:

master

PR #4421

PR #4473

PR #4481

PR #4507   👈

This stack of pull requests is managed by Graphite.

Benchmark results
No metrics with a significant change found.

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Values are compared against data from master at commit 295cd556 and shown if the difference exceeds 1%.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
128 txs

l1_rollup_calldata_size_in_bytes
45,700
180,580
720,100

l1_rollup_calldata_gas
222,772
870,916
3,465,880

l1_rollup_execution_gas
315,963
989,364
3,686,258

l2_block_processing_time_in_ms
1,163
4,624 (-1%)
17,519 (+1%)

note_successful_decrypting_time_in_ms
314 (-2%)
1,040
3,859 (+3%)

note_trial_decrypting_time_in_ms
25.4 (-24%)
43.7 (+3%)
157 (+9%)

l2_block_building_time_in_ms
17,766 (-1%)
70,694
285,263 (+1%)

l2_block_rollup_simulation_time_in_ms
13,077 (-1%)
51,986
210,393 (+1%)

l2_block_public_tx_process_time_in_ms
4,663 (-1%)
18,630
74,609

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
13,612 (-1%)
26,223 (-1%)

note_history_successful_decrypting_time_in_ms
2,350
4,597 (-1%)

note_history_trial_decrypting_time_in_ms
80.8 (-21%)
204 (-11%)

node_database_size_in_bytes
17,297,488
33,017,936

pxe_database_size_in_bytes
29,923
59,478

Circuits stats
Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
307
44,528
25,825

private-kernel-ordering
194
44,145
16,225

base-rollup
1,411
128,654
933

root-rollup
86.3 (+1%)
4,192
729

private-kernel-inner
438
71,331
25,825

public-kernel-private-input
241
32,287
25,825

public-kernel-non-first-iteration
237
32,329
25,825

merge-rollup
8.18 (+3%)
2,712
933

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
2 leaves
8 leaves
16 leaves
32 leaves
128 leaves
64 leaves
512 leaves
1024 leaves
2048 leaves
8192 leaves

batch_insert_into_append_only_tree_16_depth_ms
10.3 (+1%)
11.4 (+7%)
12.7
17.1 (+1%)
22.7 (-1%)
65.5 (+2%)
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.9
17.5
23.0
31.6
47.0
143
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.597 (+1%)
0.633 (+7%)
0.539
0.530 (+1%)
0.476
0.448 (+2%)
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
N/A
N/A
N/A
75.3 (+1%)
48.3 (+2%)
240
466 (+1%)
896 (-1%)
3,588 (+1%)

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
N/A
N/A
N/A
159
96.0
543
1,055
2,079
8,223

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
N/A
N/A
N/A
0.465 (+1%)
0.495 (+2%)
0.437
0.436 (+1%)
0.427
0.429

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
N/A
N/A
N/A
105 (+2%)
56.7
350 (-1%)
683
1,361 (-1%)
5,480 (+1%)

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
N/A
N/A
N/A
197
104
691
1,363
2,707
10,771

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
N/A
N/A
N/A
0.494 (+1%)
0.495
0.476
0.471
0.473
0.474

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
N/A
56.6
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
N/A
94.1
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
N/A
0.577
N/A
N/A
N/A
N/A
N/A
N/A
N/A

Miscellaneous
Transaction sizes based on how many contracts are deployed in the tx.

Metric
0 deployed contracts
1 deployed contracts

tx_size_in_bytes
16,859
40,167

Transaction processing duration by data writes.

Metric
0 new commitments
1 new commitments

tx_pxe_processing_time_ms
551 (-1%)
1,303

Metric
0 public data writes
1 public data writes

tx_sequencer_processing_time_ms
0.499 (-5%)
576

authors: AztecBot benesjan

repo: AztecProtocol/aztec-packages


text:
fix(docs): Update writing_token_contract.md

Update state variable references to Aztec addresses from Fields.

Docs Preview
Hey there! 👋 You can check your preview at https://65e9287476bd4a8fe58c0dff--aztec-docs-dev.netlify.app

authors: AztecBot critesjosh


text:
Recursive public functions in public processor (take 2)

Reintroduces #483 plus the necessary fixes to work on latest master and an e2e test. Feel free to skip the first commit while reviewing, since it's just #483 cherry-picked on top of master.
The issue was caused by a serialization error (yay!), since TxRequest was not checking the size of the arguments, and for open and unconstrained functions we were not padding these to ARGS_LENGTH. There were two possible fixes: 1) manually pad the TxRequest args whenever it's pushed to wasm, or 2) force args to always be ARGS_LENGTH. I went with (2) for robustness' sake.
However, this has a side effect: now all unconstrained and open functions need to pad their arguments to ARGS_LENGTH, which means we need to add a padding argument to all these functions in Noir. I've tweaked the ABI postprocessor script so these are ignored when crafting a tx, but they still need to be added in Noir code, which is annoying. Still, these padding args were already required when the public function was to be called from anoter public function (see here), so I figured we just standardize on always including the padding (so we can always call from another function if we want to) until we have proper brillig support.
Alternatives would've been to introduce a different SignedTxRequest type that does not enforce ARGS_LENGTH (which would have been quite confusing), or to pad the arguments when serializing only (which has the nasty side effect that, when we start serializing txs for sending them to the P2P pool the args will be altered), or to pad when calling the public kernel circuit (error prone if we pass the TxRequest to other cbinds). And in any of these, open functions still needed to be padded if we wanted them to be callable from other functions.
Fixes #430
Fixes #492

That's correct, thanks for summarising Phil.

And does this change once we have Brillig?

I believe it does, but that's why I wanted @sirasistant approval before merging.


text:
fix: avoid get row in databus

Removes use of get_row (which creates copies) from hot loop for computing inverses for databus lookup relation.
Removes ~1.5 seconds:
ClientIVCBench/Full/6      21580 ms        16468 ms            1

Benchmark results
Metrics with a significant change:

note_history_successful_decrypting_time_in_ms (5): 1,277 (-18%)
note_history_successful_decrypting_time_in_ms (10): 2,291 (-40%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
64 txs

l1_rollup_calldata_size_in_bytes
772
772
772

l1_rollup_calldata_gas
6,784
6,808
6,772

l1_rollup_execution_gas
587,265
587,289
587,253

l2_block_processing_time_in_ms
1,436 (-3%)
5,337 (-1%)
10,997 (+7%)

note_successful_decrypting_time_in_ms
220 (-1%)
582 (+7%)
918

note_trial_decrypting_time_in_ms
22.6 (+1%)
88.2 (+73%)
33.4 (-1%)

l2_block_building_time_in_ms
9,679 (-1%)
37,826 (-1%)
76,380

l2_block_rollup_simulation_time_in_ms
9,489 (-1%)
37,131 (-1%)
75,018

l2_block_public_tx_process_time_in_ms
5,308 (-1%)
20,752 (-1%)
41,719 (-1%)

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
16,141 (-8%)
30,469 (-2%)

note_history_successful_decrypting_time_in_ms
:warning: 1,277 (-18%)
:warning: 2,291 (-40%)

note_history_trial_decrypting_time_in_ms
60.0 (-48%)
79.3 (-42%)

node_database_size_in_bytes
18,706,512
35,119,184

pxe_database_size_in_bytes
29,859
59,414

Circuits stats
Stats on running time and I/O sizes collected for every circuit run across all benchmarks.

Circuit
circuit_simulation_time_in_ms
circuit_input_size_in_bytes
circuit_output_size_in_bytes

private-kernel-init
149 (-3%)
44,561
26,424

private-kernel-inner
155 (-4%)
72,188
26,424

private-kernel-ordering
109 (-4%)
51,090
39,297

base-parity
52.7 (-2%)
128
311

root-parity
10.2 (-3%)
1,244
311

base-rollup
12,595 (-3%)
110,820
957

root-rollup
48.4 (-1%)
4,551
821

public-kernel-app-logic
81.8 (-4%)
48,151
40,933

public-kernel-tail
121 (-5%)
53,644
7,385

merge-rollup
11.2 (+3%)
2,760
957

public-kernel-teardown
79.9 (+1%)
48,151
40,933

public-kernel-setup
78.6 (+1%)
48,151
40,933

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
512 leaves
1024 leaves
2048 leaves
4096 leaves
32 leaves

batch_insert_into_append_only_tree_16_depth_ms
11.0 (-3%)
17.7 (-6%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.8
31.6
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.641 (-3%)
0.547 (-7%)
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
52.0 (-2%)
79.9 (-12%)
259 (-1%)
502 (-2%)
978 (-1%)
1,949
N/A

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
96.0
159
543
1,055
2,079
4,127
N/A

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.530 (-2%)
0.494 (-12%)
0.472 (-1%)
0.469 (-2%)
0.464
0.467
N/A

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
60.3 (-3%)
119 (-6%)
375
741 (-6%)
1,458
2,927 (+1%)
N/A

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
105
207
691
1,363
2,707
5,395
N/A

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.533 (-4%)
0.539 (-6%)
0.512
0.509 (-6%)
0.507
0.511 (+1%)
N/A

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
67.9 (-3%)

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
109

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
0.592 (-3%)

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
41,005
528,889

Transaction size based on fee payment method

Metric
native fee payment method
fpc_public fee payment method
fpc_private fee payment method

tx_with_fee_size_in_bytes
905
1,161
1,377

Transaction processing duration by data writes.

Metric
0 new note hashes
1 new note hashes
2 new note hashes

tx_pxe_processing_time_ms
1,174 (+1%)
783 (-4%)
3,451 (+1%)

Metric
1 public data writes
2 public data writes
3 public data writes
4 public data writes
5 public data writes
8 public data writes

tx_sequencer_processing_time_ms
455 (-4%)
312
836
398 (-5%)
1,379
471


text:
Refactor C-bindings to adhere to new ABI format and rules

We need to convert our existing C-bindings from the current loose format to a new, more strict format. The new format is defined by the following rules:
CBind constraints:

All functions should return void.
All functions can have an arbitrary number of input and output args.
All arguments must be pointers except raw 32-bit integers
Prefer to output encoded variable length objects than passing size pointers. These have their size as the first 4 bytes, and then the rest of the elements.
If you pass size pointers, they go before the object
Input args are determined by being const or pointer to const, and end with "_in"
Output args must come after input args, and end with "_out"
The TypeScript or Rust binding function is responsible for allocating argument memory (including output memory).
The TypeScript or Rust binding function will free any variable length output args that were allocated on the heap.
Variable length output args are allocated on the heap, and the resulting pointer is written to the output arg ptr

Serialization constraints (for completeness, should already be true):

All input data is big-endian.
All output data is big-endian, except output heap alloc pointers.

The idea then is we would route all the bindings through a standard helper function, which even if we don't go full autogeneration (like we plan to consider), it will take a lot of mystery out of writing bindings:
https://github.com/AztecProtocol/barretenberg/blob/cl/ts/ts/src/call_wasm_export/index.ts
Example new bindings:
https://github.com/AztecProtocol/barretenberg/blob/cl/ts/ts/src/bindings/index.ts
Example CBind refactor:
WASM_EXPORT size_t root_rollup__sim(uint8_t const* root_rollup_inputs_buf,
                                    uint8_t const** root_rollup_public_inputs_buf)

to
WASM_EXPORT void root_rollup__sim(uint8_t const* root_rollup_inputs_in,
                                  size_t* root_rollup_public_inputs_size_out, uint8_t** root_rollup_public_inputs_out)

Task

Identify all the C-bindings in the codebase that need to be refactored according to the new format and rules.
Modify the functions to follow the new ABI format, ensuring input and output arguments adhere to the rules.
Update the binding formats to route through a uniform wrapper that understands the current format.
Test the refactored functions to ensure proper functionality and compatibility with the new format.

Thanks for putting this together, it was much needed (see https://github.com/AztecProtocol/aztec3-packages/issues/210). Agree on the new rules, I'd just add another one to define the ordering between a buf and its size. In other words, using your example, only one of these should be correct:
WASM_EXPORT void root_rollup__sim(
  uint8_t const* root_rollup_inputs_in,
  uint8_t** root_rollup_public_inputs_out,
  size_t* root_rollup_public_inputs_size_out
)

WASM_EXPORT void root_rollup__sim(
  uint8_t const* root_rollup_inputs_in,
  size_t* root_rollup_public_inputs_size_out
  uint8_t** root_rollup_public_inputs_out,
)

Also, should we integrate into the guidelines the work that @rahul-kothari is doing about returning error information? Maybe it makes sense to have all functions return an ok/error(err) object instead of void?

Good call. I guess it could return nullptr (fast case) or a serialized error object.

We could possibly also just use length-encoded buffers everywhere. The size would be the first 4 bytes

We could possibly also just use length-encoded buffers everywhere

I believe that'd help catch its own fair share of errors already. You can easily check if lengths match rather than trusting that the caller built a buffer with the same size you think it did.

I agree with all of this, and yes we should probably standardize to return an error code and message as @rahul-kothari has proposed.

GPT4 summary of a recent internal slack thread.
Title: Error Handling Standardization for Cbinds
Issue:
In a recent discussion, the team debated the pros and cons of using error objects versus error codes for error handling in cbinds. The primary concern was to ensure that error messages can be easily communicated across the stack or to users.
Error objects offer the ability to include more detailed information, such as the value of an invalid argument. However, error codes are simpler to integrate and might be more suitable for scenarios where TypeScript (TS) might not need the error message.
There was also a discussion on whether this error handling standardization should be implemented just for circuits or for all cbinds in Barretenberg. The consensus was to start small with circuits and expand later if necessary.
Proposed Solution:
The team agreed that using error objects with both a code and dynamic message would be the cleanest approach.
Additionally, the team agreed to print error messages before returning from the cbind, ensuring that errors are evident even if there are issues with processing the error object in TS.
Finally, it was decided to give the Barretenberg team an FYI on the error handling standardization and proceed with the implementation for circuits.

That sounds good to me. I don't think TS will need to know the full error length if the string length is already encoded in there. Two questions:
1- Does it make sense to return the error code directly from the function? So the function would return two uint8s: one for the code, and one for the pointer to the error message string. This way we can get the error message directly in the return value, rather than having to another part of memory to retrieve it.
2- Who's responsible for freeing the memory allocated for the string error message? Is it ts? Or are we keeping a memory scratch area, that doesn't require freeing, for keeping the latest error msg string?

No strong opinion although for now I just return a ptr.
Looking at our TS - rollupWasmWrapper, we have:

     // Free memory
      wasm.call('bbfree', outputBufPtr);
      wasm.call('bbfree', outputBufPtrPtr);
      wasm.call('bbfree', inputBufPtr);

So I guess continue freeing memory from TS?

That sounds good to me. I don't think TS will need to know the full error length if the string length is already encoded in there. Two questions:
1- Does it make sense to return the error code directly from the function? So the function would return two uint8s: one for the code, and one for the pointer to the error message string. This way we can get the error message directly in the return value, rather than having to another part of memory to retrieve it.
2- Who's responsible for freeing the memory allocated for the string error message? Is it ts? Or are we keeping a memory scratch area, that doesn't require freeing, for keeping the latest error msg string?

Hmm I do like the idea of having the error code immediately accessible without any memory handling. Do you forsee that being valuable @spalladino? It does feel pretty clean.
It would be TS' responsibility to free the serialized error object which includes the serialized msg string.

Hmm I do like the idea of having the error code immediately accessible without any memory handling. Do you forsee that being valuable @spalladino? It does feel pretty clean.

It does sound good, but I don't know enough wasm to know whether it's actually valuable. @ludamad I'll defer to you on this one.

I'm currently automatically-deduce-cbinds pilled and that would mean the error would just the serialization of an std::variant. We could pick up the error result on TS side and turn it into an exception. But the relies on msgpack type safety, so not quite yet. For now I think memory handling is not really a big deal - we have to memory allocate to make the std::string error, so not seeing why it might fail called from TS right after

Update - once https://github.com/AztecProtocol/aztec-packages/pull/464 is merged, all error handling stuff is done

No longer relevant after rewriting circuits in Noir.

authors: benesjan dbanks12 ludamad rahul-kothari spalladino


text:
Count unique listeners for Icecast

AzuraCast is showing 0 current unique listeners when connecting to an IceCast relay
Reviewing the code, I found out, connecting to my server:

Method getClients was returning an empty array because $xml->source->listeners didn't exist, but $xml->source->Listeners did.
There is no creation for unique listeners in Icecast. Using the method getClient and the parameter unique, we can count the number of unique clients connected

@danielpilot Currently, the calculations of unique listeners and appending them to the per-mount-point report is done inside AzuraCast instead of inside this library. That's why you don't see some of the code that would be responsible for that here.
I'm not opposed to the idea of actually moving that functionality over here, because right now the NowPlaying library doesn't really match how we use it internal to AzuraCast, and likely isn't all that useful to others in its current form either, for the same reason.
As for the issue with xml->source->listeners vs ->Listeners, I believe this is actually a minor version difference between builds of Icecast, since our Icecast-KH builds have the lower-case listeners property. We can check for either and

@SlvrEagle23
Hello!
Ok, I didn't know the calculations for unique listeners in Icecast were done in AzuraCast and not in this library, I was looking for a solution because I just moved a relay from ShoutCast to IceCast and it's showing me 0 unique listeners all the time, even if the number of listeners is higher. I found this repository and thought that maybe it was missing from here.
And ok for the listeners case, I just tested it with my Icecast relay and that's why I saw the difference, the getClients method was returning me an empty array so I just fixed it for me to work with my case.

@danielpilot No worries, in your case it makes sense. I'll be updating this library shortly to handle a lot of what AzuraCast is currently doing internally, so that it can serve largely standalone and will be more cleanly integrated into AC itself.

repo: AzuraCast/nowplaying


text:
Action.Submit is not supported in VoiceAssistantClient

Please provide us with the following information:

This issue is for a: (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

send an adaptive card with Action.Submit and click https://adaptivecards.io/explorer/Action.Submit.html
Any log messages given by the failure

It pops up a window

Expected/desired behavior

send back to bot
OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Windows 10
Versions

Today's master
Mention any other details that might be useful

Thanks! We'll be in touch soon.

Hi there,
This is actually the intended behavior of this field. Depending on the end to end scenario, we expect developers might want to trigger different kinds of behavior with different adaptive cards. It is possible to send an activity back to your bot if you wish by changing the event handler in the code to call the SendActivityAsync method on the DialogServiceConnector object.
You can read about the adaptive card actions in .NET WPF here: https://docs.microsoft.com/en-us/adaptive-cards/sdk/rendering-cards/net-wpf/actions

@chschrae Thanks! I modify it like StatusBox_KeyUp
var bfActivity = Activity.CreateMessageActivity();
bfActivity.Text = submitAction.Data.ToString();
if (!string.IsNullOrEmpty(this.settings.RuntimeSettings.FromId))
{
    bfActivity.From = new ChannelAccount(this.settings.RuntimeSettings.FromId);
}

var jsonConnectorActivity = JsonConvert.SerializeObject(bfActivity);
this.Messages.Add(new MessageDisplay(bfActivity.Text, Sender.User));
this.Activities.Add(new ActivityDisplay(jsonConnectorActivity, bfActivity, Sender.User));
string id = this.connector.SendActivityAsync(jsonConnectorActivity).Result;
Debug.WriteLine($"SendActivityAsync called, id = {id}");

And it works. Will you add an example to the document? It will save time.

Addressed this is https://github.com/Azure-Samples/Cognitive-Services-Voice-Assistant/pull/93

authors: chschrae xieofxie


text:
Update UsePowerShellforLTRAzureFiles.ps1.txt

Updating script to use AZ modules
Purpose
< updates the code to use the support version of the Azure modules >

...

Does this introduce a breaking change?

[X ] Yes
[ ] No

Azure RM modules cannot be used within the same automation account as the AZ modules

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[X ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Get the code

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install

Test the code

What to Check
Confirm the backups are working and the azure automation runs correctly

...

Other Information

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: samhodgkinson sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

authors: msftclas samhodgkinson


text:
Help in understanding prepdocs split_text

Can somebody please add in line comments to the prepdocs.py in the split_text function? In the current stage, I am really trying to understand the code, but it's very very difficult
For example(s)
Example 1: SENTENCE_SEARCH_LIMIT - What does this variable really mean?
Example 2: line 198 is out of context for anyone who hasn't contributed to this module :)
while start > 0 and start > end - MAX_SECTION_LENGTH - 2 * SENTENCE_SEARCH_LIMIT and all_text[start] not in SENTENCE_ENDINGS:

That is well explained is this part of presentation https://www.youtube.com/live/ujugapNEz4o?feature=share&t=1032
Document is divided by 1000 characters and 100 overlapping for story flow (to prevent CS to lose context (flow of the text))

@itmilos Thanks for replying.  I have just completed looking at the entire video. While it does provide help on different approaches for prompting open ai , prepdocs.py is not really mentioned about apart from the fact that section length = 1000 chars and overlapping = 100 chars.
To be honest, I understood the above by the variable name itself , but can't get my head around what SENTENCE_SEARCH_LIMIT means and  the reasoning behind the conditions of the while loops in the split_text function.
Below are few lines I would really appreciate if the reasoning behind each condition in the while loop can be commented. Apologies for asking such help, but I am unable to understand the reason behind expressions like 2xSENTENCE_SEARCH_LIMIT
line 187, while end < length and (end - start - MAX_SECTION_LENGTH) < SENTENCE_SEARCH_LIMIT and all_text[end] not in SENTENCE_ENDINGS:
line 198,while start > 0 and start > end - MAX_SECTION_LENGTH - 2 * SENTENCE_SEARCH_LIMIT and all_text[start] not in SENTENCE_ENDINGS:
line 211 , if (last_table_start > 2 * SENTENCE_SEARCH_LIMIT and last_table_start > section_text.rfind("</table")):

Can somebody please help here
@itmilos

This is an interesting point Aldo from my side. Why we Need overlap between sections? I encountered a case where i have some Pages with low text and multiple Pages are merged. What are the advantages of this approach?

authors: Krishna-Z itmilos ivanvaccarics

repo: Azure-Samples/azure-search-openai-demo


text:
How to set up Setting.cs in embedded_speech_samples?

I'm surprised there isn't any documentation on how to set the value of 'Setting.cs‘. For those unfamiliar with this kind of project, it's unclear how to proceed. The sample code is in here

@begood0513 Hi, are you a registered customer of the embedded speech public preview? (Otherwise the sample is not applicable.)
Instructions can be found in the sample README.
You can either modify the settings file directly and replace placeholder strings ("Your...") according to your setup as noted in how to build the sample, or use environment variables for the same effect as described in how to run the sample.
Are there some specific settings that you would like to get more information about?

Thank you for your reply. I didn't register it, it seems that I have to use Microsoft.CognitiveServices.Speech.

Closed as resolved, please create a new issue if more support is needed.


text:
Update CUDA driver to 550

What type of PR is this?

What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Requirements:

[ ] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[ ] tested upgrade from previous version

Special notes for your reviewer:
Release note:
none

Pull Request Test Coverage Report for Build 9106243002
Details

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 77.013%

Totals

Change from base Build 9104093672:
0.0%

Covered Lines:
3032

Relevant Lines:
3937

💛  - Coveralls

authors: coveralls ganeshkumarashok

repo: Azure/AgentBaker


text:
Move some install dependenices to a separate file

Currently if a new dependency is added we have to modify the test file and the install script as well. We're also planning to add prebuild test which will use similar dependencies hence it will be highly inefficient to have 3 places to modify. This change aims to overcome this mentioned problem

In general this is good, but we need to be careful/thorough in examining a large refactoring like this

update title/description

Let's make sure at the end before merging that All the images in components.json file are up to date with the recent changes in the install-dependencies.sh file


text:
Session bc60a3ba-c6fe-4b19-bfc7-a34f5ce19d57. timed out

Investigative information
Please provide the following:

UTC Timestamp: 2022-06-02 2249
Migration Tool App version : 1.0.6
OS Version: Windows Server 2019 Datacenter

Repro steps
Provide the steps required to reproduce the problem:

Run assessment, choose a site, wait for assessment report

Expected behavior
Provide a description of the expected behavior.
Assessment should complete without error.
Actual behavior
Provide a description of the actual behavior observed.
"We're sorry, there has been an error. To get help, please use the Help > Report Issues menu option and include the following information: Session bc60a3ba-c6fe-4b19-bfc7-a34f5ce19d57. timed out" Appears after 20 minutes or so.
Known workarounds

Hi @neville-mooney - thank you for letting us know this is happening! Looking at that sessionId I can see that it took about 13 minutes to get the local machine configuration details (this can happen due to a large amount of site content, which increases the amount of time to load all IIS configuration - which might be at any level of the site - or determine content size), and then additional time for a check on connection strings in web.configs, likely for the same reason. These are eventually timing out the GUI waiting for the result. You would likely be able to duplicate this behavior using the commandline iisConfigAssistant.exe (i.e. if you did step 4 as noted here: https://github.com/Azure/App-Service-Migration-Assistant/wiki/How-the-Assistant-Works#what-information-is-sent-for-assessments it would also take a very long time).
The PowerShell migration scripts would be an option to evaluate and migrate this site instead, as it has some optimizations that should make the assessment step much quicker. The scripts are available on http://aka.ms/appmigrate ("App Service migration assistant for PowerShell scripts (preview)") - notes on how to use them are here: https://github.com/Azure/App-Service-Migration-Assistant/wiki/PowerShell-Scripts

Closing due to lack of activity for over 90 days

authors: krolson neville-mooney

repo: Azure/App-Service-Migration-Assistant


text:
App Service Migration Assistant Tool failed at Publish site content Step

I am facing a migration failed issue over last step i.e Publish site content on Azure App Service Migration Tool, although App Service is created with empty content. Here below is screenshot of the error that I am facing.

Hi @Asrar0786,
I am wondering if this may be due to basic auth not being enabled - it appears the site was successfully created but the final content publish step failed. If it is due to basic auth not being enabled, this won't work in the GUI, however you can do the final content upload manually using steps like outlined in this issue (https://github.com/Azure/App-Service-Migration-Assistant/issues/31#issuecomment-620884855) - to either find an existing or create the site content .zip and then drag-and-drop that .zip content to the wwwroot location using the .scm site.


text:
Public Ip; zones are removed on AzOpsPull command

Describe the bug
During an AzOpsPull cmd the Public IP settings for Zones are removed.
  ~ Microsoft.Network/publicIPAddresses/zone-1-pip [2022-07-01]
    - zones: [
        0: "1"
      ]

Push will then fail with the following ARM error as the Zone settings are no long present in the json:
New-AzResourceGroupDeployment: 13:48:12 - The deployment
'AzOps-microsoft.network_publicipaddresses-zone-1-pip-16FA' failed with
error(s). Showing 1 out of 1 error(s). Status Message: Resource
/subscriptions/XXXXXX/resourceGroups/zdk-we-p-rg-a
dds-2/providers/Microsoft.Network/publicIPAddresses/zone-1-pip has an existing
availability zone constraint 1 and the request has availability zone constraint
NoZone, which do not match. Zones cannot be added/updated/removed once the
resource is created. The resource cannot be updated from regional to zonal or
vice-versa. (Code: ResourceAvailabilityZonesCannotBeModified)   CorrelationId:
XXXXXXX

When re-adding the zone settings to the json a validate and push are working correctly, actions taken:

Create new branch
Re-apply zone settings in the pip json
Create PR
Validate will run successful
Merge
Push will run successful

Steps to reproduce

Create a public ip or use an existing
Start AzOpsPull

Screenshots

Thank you for raising this!
This unfortunately a known limitation of the resources API we take a dependency on to export the resources.
We are looking for ways to solve this (and also improve overall pull performance), but currently no workarounds other than deploying these resources with custom templates.

@daltondhcp, Thanks for answering this issue. Good to know, we will keep this in mind untill a solution is found.

authors: buys-stash daltondhcp woutermation

repo: Azure/AzOps


text:
Taxii Connector issue

I had connected threat intelligence feed via Taxii connector, even after deleting the configuration in Taxii connector,the feeds are not stopped it is still being ingested in Log Analytics workspace. The Taxii connector is showing not connected but still logs not stopped.
Please look into before pulling the feeds, it should be looking if the configuration is still there in Taxii data connector

Hi, the data is not ingested but by design all TI indicators are refreshed every 14 days so that they stay current. So the feeds aren't the new TI data but refreshed TI data.

But how to stop it from ingesting it, even after deleting Taxii connector configuration

Currently, you will have to raise support ticket and they will assist you with the process. More user friendly way will come in the future.

authors: BenjiSec suhelajjaman

repo: Azure/Azure-Sentinel


text:
Cannot start azurite table service

Which service(blob, file, queue, table) does this issue concern?
table
Which version of the Azurite was used?
3.29.0
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
VS Code Extension
What's the Node.js version?
18.18.0
What problem was encountered?
Restarting after power failure, table service will not start

I have uninstalled azurite and reinstalled it.  Queue and blob startup fine.
Steps to reproduce the issue?
If possible, please provide the debug log using the -d parameter, replacing <pathtodebuglog> with an appropriate path for your OS, or review the instructions for docker containers:
-d "<pathtodebuglog>"

Please be sure to remove any PII or sensitive information before sharing!
The debug log will log raw request headers and bodies, so that we can replay these against Azurite using REST and create tests to validate resolution.
Have you found a mitigation/solution?

Hi @mscherotter ,
Azurite as a simulator doesn't have protection on power failure, power failure may have caused Azurite data file corruption. Reinstallation won't clean up Azurite data files. Cleaning up these data files should be able to resolve the issue.
By default, Azurite puts data file in current working directory. You can use following setting in VS Extension to change the path:

Azurite data file name starts with __:

No updates from customer for more than 2 weeks. Close this issue for now. Any further assistant required, please feel free to reopen it or open a new one.

authors: EmmaZhu mscherotter

repo: Azure/Azurite


text:
How to create ApplicationTokenCredentials instance for Azure emulator?

Which service(blob, file, queue, table) does this issue concern?
blob
Which version of the Azurite was used?
3.8.0
Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
DockerHub
What's the Node.js version?
N/A
What problem was encountered?
Need help in creating  Authentication file or ApplicationTokenCredentials instance for Azurite.
Steps to reproduce the issue?
N/A
Have you found a mitigation/solution?
N/A

Hi @kannangce Don't understand your question. What's ApplicationTokenCredentials you are referring to?

Hi @kannangce
It should work. If the token credential works for your production storage account, then it will work for Azurite. Anyway take a try, report any Azurite errors/debug.log here.

I am also wanting this information, which is not in the readme. We want to run this in a testing pipeline, however, we will not be injecting production secrets into there for testing purposes....
Specifically:
What does azurite expect for the ClientId, TenantId, and Cleint Secret. Putting fake values in there does not work, and there is no mention in the readme of what is expected here, nor is there a runnable example.

@douglasg14b
Guess you are using TokenCredential or similar SDK, which requires you input valid ClientId, TenantId etc. Unluckily the SDK cannot support granting a fake token to Azurite. The SDK will go to AAD asking for a production token.
There are 2 ways you can explorer:

Go to your Azure portal creating an application just for Azurite tests. You can decouple the credentials with your production services. The input ClientId, TenantId using the newly created application credentials.

You can build up code by-yourself to fake tokens to Azurite. Refer to https://github.com/Azure/Azurite/blob/24533376c9bb11ceef005eac5242738032f7196d/tests/blob/oauth.test.ts#L30 and https://github.com/Azure/Azurite/blob/24533376c9bb11ceef005eac5242738032f7196d/tests/testutils.ts#L179

This is unfortunately a poor design for Azurite's OAuth functionality, since OAuth tokens are one of the only ways to generate user delegation keys via Azurite (required to test self signed SAS tokens). Since a production token is accepted as is, I MITM'd my own production token, and reduced it down to the following anonymous token that is accepted by Azurite using the Java SDK:
Header:
{
  "typ": "JWT",
  "alg": "RS256",
  "x5t": "foo",
  "kid": "foo"
}

Payload:
{
  "aud": "https://storage.azure.com",
  "iss": "https://sts.windows.net/foo/",
  "iat": 1734352522,
  "nbf": 1734352522,
  "exp": 2100000000,
  "acr": "1",
  "aio": "",
  "altsecid": "1:live.com:foo",
  "amr": [
    "pwd"
  ],
  "appid": "foo",
  "appidacr": "0",
  "email": "foo@foo.com",
  "family_name": "foo",
  "given_name": "foo",
  "groups": [
    "foo"
  ],
  "idp": "live.com",
  "idtyp": "user",
  "ipaddr": "127.0.0.1",
  "name": "foo",
  "oid": "foo",
  "puid": "",
  "rh": "foo",
  "scp": "user_impersonation",
  "sub": "",
  "tid": "foo",
  "unique_name": "live.com#foo@foo.com",
  "uti": "",
  "ver": "1.0",
  "xms_idrel": "16 5"
}

Signature:
invalid_signature

Stitch them all together as a standard JWT token, by encoding each part in base64:
<base64 version of header found above>.<base64 version of payload found above>.invalid_signature

I would paste the entire token, but that would probably flag my account somewhere somehow. If you're using the Java SDK, here's what I have:
val token = ""; // read the JWT token from somewhere;
val bsc = new BlobServiceClientBuilder();
...
bsc.credential(request -> Mono.just(new AccessToken(token, OffsetDateTime.MAX)));
...

authors: XiaoningLiu douglasg14b judepereira kannangce


text:
Creation of Microsoft.DBforMySQL instance via the portal is blocked by Deny-MySql-http policy

Describe the bug
Creation of "Microsoft.DBforMySQL" instance via the portal is blocked by "Deny-MySql-http" policy
The deployment template created by the portal does`nt have field "Microsoft.DBforMySQL/servers/sslEnforcement"
"Deny-MySql-http" policy has condition that checks if that field exists and for that reason the creation of the instance is blocked via the portal.
Steps to reproduce

Go to portal.azure.com
Go to "Microsoft.DBforMySQL" create menu
Go to "Review + create"
Creation of  "Microsoft.DBforMySQL" instance is blocked by "Deny-MySql-http" policy

Screenshots

+1

Hey @nonamecoder2002 & @rokeno,
I take it these options are not exposed via the portal experience to satisfy the policy rules?
Are you about to create via IaC (Bicep, Terraform etc...)?
Alternatively you can change the policy effect to audit instead. But in ALZ we take a preventive and proactive approach. Hence being set to deny by default.
Also it may be worth you creating this as feedback for the MySQL team via https://feedback.azure.com and linking back to here once created to enable us to track further with product teams.
Thanks and look forward to hearing from you.
Jack

Hey @jtracey93. ALZ is created for big enterprises and to have best practices of security in place( in easy words). So official answer is to force thousand of ppl stop to use portal and use only IaC? Sorry, but isn't it smarter then to go with append policy?

Hi @Dushelov,
ALZ is designed for all shapes and sizes of organizations. However, as part of platform automation and devops design area we do recommend the use of IaC and therefore hence this stance we have taken. Also, large organizations commonly are driving/leading with IaC for deployment and configuration, so I don't think our approach is completely unjustified. 🙂
You make a good point that this could be made a append or modify policy, I'd lean towards modify as can then create remediation tasks etc. 👍
However, this should be a choice an organization makes as if policy does things to resources behind the scenes without app owners or platform teams being aware there is a risk.
We highly encourage consumers to build upon the foundations we provide to suit their needs/requirements based on their design decisions etc.
Would you be willing to contribute a policy to this repository for an append/modify for this scenario? If so, here are some tips and places to add it too etc.

Add the policy to the following files:

Public: eslzArm/managementGroupTemplates/policyDefinitions/policies.json
China (Mooncake): eslzArm/managementGroupTemplates/policyDefinitions/china/mcPolicies.json
US Gov (Fairfax): eslzArm/managementGroupTemplates/policyDefinitions/gov/fairfaxPolicies.json

Update docs:

WhatsNew.md - docs/wiki/Whats-new.md

Let us know

@nonamecoder2002 @rokeno, the default effect in this initiative where this policy is used and assigned in ALZ in audit did you change this via the parameter MySQLEnableSSLEffect to deny https://www.azadvertizer.net/azpolicyinitiativesadvertizer/Enforce-EncryptTransit.html
This was done for this exact scenario, so just trying to clear up if its a bug or something that we know of and as youve changed the effect, which is fine 🙂, has caused this?
Let us know

repo: Azure/Enterprise-Scale


text:
Template Validation Failed (tenant.json)

when trying to push changes through push pipeline (or workflow, as the error is the same for both ADO and GitHub), the following error occurs:

any idea how to make it work?
thanks

Can you provide template parameter artefact used?
Thanks,
Uday

From: mjazwiecki notifications@github.com
Sent: Friday, August 28, 2020 8:41:18 AM
To: Azure/Enterprise-Scale Enterprise-Scale@noreply.github.com
Cc: Subscribed subscribed@noreply.github.com
Subject: [Azure/Enterprise-Scale] Template Validation Failed (tenant.json) (#207)
when trying to push changes through push pipeline (or workflow, as the error is the same for both ADO and GitHub), the following error occurs:
[image]https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F51361414%2F91534852-8e0b2680-e912-11ea-9316-f2151dad7630.png&data=02|01|uday.pandya%40microsoft.com|00e7b5049ae0482accad08d84b25c02b|72f988bf86f141af91ab2d7cd011db47|1|0|637341972800557257&sdata=WsjKTvnb0p%2BTodB2ZIJr8BcqmO4QnRBNTtVlcQF5Ubs%3D&reserved=0
any idea how to make it work?
thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2FEnterprise-Scale%2Fissues%2F207&data=02|01|uday.pandya%40microsoft.com|00e7b5049ae0482accad08d84b25c02b|72f988bf86f141af91ab2d7cd011db47|1|0|637341972800557257&sdata=OJLS6G4hMVtaqfHkrcQVfzWhi%2BCmTqXphzjBm5AKSN4%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADNRZYO3CD4RXZSJNGNUMO3SC5NR5ANCNFSM4QN2WRAA&data=02|01|uday.pandya%40microsoft.com|00e7b5049ae0482accad08d84b25c02b|72f988bf86f141af91ab2d7cd011db47|1|0|637341972800567252&sdata=Dl9BR1YYPVbVSDdfPo%2Ff2TaNi4TJE4f3XvGOrhy0uk0%3D&reserved=0.

{   "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",   "contentVersion": "1.0.0.0",   "parameters": {     "input": {       "value": {         "Id": "/providers/Microsoft.Management/managementGroups/mat-sandboxes",         "Type": "/providers/Microsoft.Management/managementGroups",         "Name": "mat-sandboxes",         "TenantId": "[cut]",         "DisplayName": "mat-sandboxes",         "UpdatedTime": "0001-01-01T00:00:00Z",         "UpdatedBy": null,         "ParentId": "/providers/Microsoft.Management/managementGroups/mat",         "ParentName": "mat",         "ParentDisplayName": "mat",         "Children": null,         "properties": {           "policyDefinitions": [],           "policySetDefinitions": [],           "policyAssignments": [             {               "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",               "contentVersion": "1.0.0.0",               "parameters": {                 "input": {                   "value": {                     "Identity": null,                     "Location": "northeurope",                     "Name": "Allowed-RGLocation",                     "Properties": {                       "Description": null,                       "DisplayName": "Allowed locations for resource groups",                       "NotScopes": null,                       "Parameters": {                         "listOfAllowedLocations": {                           "value": [                             "northcentralus",                             "northeurope",                             "westeurope"                           ]                         }                       },                       "PolicyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/[cut]",                       "Scope": "/providers/Microsoft.Management/managementGroups/mat-sandboxes"                     },                     "ResourceType": "Microsoft.Authorization/policyAssignments"                   }                 }               }             }           ],           "roleDefinitions": [],           "roleAssignments": []         }       }     }   } }

You have got it extra values that is not required
{
	"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
	"contentVersion": "1.0.0.0",
	"parameters": {
		"input": {
			"value": {
				"Id": "/providers/Microsoft.Management/managementGroups/mat-sandboxes",
				"Type": "/providers/Microsoft.Management/managementGroups",
				"Name": "mat-sandboxes",
				"TenantId": "[cut]",
				"DisplayName": "mat-sandboxes",
				"UpdatedTime": "0001-01-01T00:00:00Z",
				"UpdatedBy": null,
				"ParentId": "/providers/Microsoft.Management/managementGroups/mat",
				"ParentName": "mat",
				"ParentDisplayName": "mat",
				"Children": null,
				"properties": {
					"policyDefinitions": [],
					"policySetDefinitions": [],
					"policyAssignments": [{

						"Identity": null,
						"Location": "northeurope",
						"Name": "Allowed-RGLocation",
						"Properties": {
							"Description": null,
							"DisplayName": "Allowed locations for resource groups",
							"NotScopes": null,
							"Parameters": {
								"listOfAllowedLocations": {
									"value": ["northcentralus", "northeurope", "westeurope"]
								}
							},
							"PolicyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/e765b5de-1225-4ba3-bd56-1ac6695af988",
							"Scope": "/providers/Microsoft.Management/managementGroups/mat-sandboxes"
						},
						"ResourceType": "Microsoft.Authorization/policyAssignments"

					}],
					"roleDefinitions": [],
					"roleAssignments": []
				}
			}
		}
	}
}

thank you!


text:
Official documentation on how to setup the OPCPublisher edge module with X.509 certificates

Is your feature request related to a problem? Please describe.
Yes, the lack of official documentation regarding this topic has been a constant issue for quite some time, forcing me to rely on unofficial / unchecked sources.
Describe the solution you'd like
I'd like to be able to find documentation on how to configure the OPC Publisher edge module in order to use X.509 certificates for OPC-UA authentication (NOT iotedge authentication)
Describe alternatives you've considered
I've been trying to find alternative resources such as blog posts and GitHub issues although my primary reference has been https://kevinsaye.wordpress.com/2021/02/24/using-custom-x509-certificates-in-iot-edges-opc-publisher/
Additional context
Most resources recommend terrible security practices (eg: copying a CA cert alongside its private key)

@rmonvfer i do not exactly know what you mean by "Most resources recommend terrible security practices (eg: copying a CA cert alongside its private key)". Can you elaborate?

@hansgschossmann Sure, thank you for your reply.
I was not able to find any official documentation regarding X.509 authentication between the OPCPublisher edge module and a OPC Server so I've had to rely on unofficial sources which might be incorrect or inappropriate (or so do I believe).
That is just a side issue anyways, but (IMO) highlights the lack of proper docs regarding this specific topic.
Thank you,
Ramon

Thanks for your honnest feedback. Appreciated. I will tag it as bug for tracking.

I agree, official docs would help

Added documentation to the opc-publisher readme.md (https://github.com/Azure/Industrial-IoT/blob/main/docs/opc-publisher/readme.md#opc-ua-certificates)

authors: hansgschossmann marcschier pesetskyps rmonvfer

repo: Azure/Industrial-IoT


text:
Allow configuring message TTL on DatasetWriterGroup level

Is your feature request related to a problem? Please describe.
Publisher supports configuring multiple transports and topics, but all transports and topics currently show a "global" TTL.
Since multiple subscribers have different requirements for message TTL  it would be great, if we could configure message TTL on WriterGroup level.
Describe the solution you'd like
Have a "TTL" option for WriterGroup in configuration API  WriterGroupQueueName (WriterGroupMessageTTL?)
Describe alternatives you've considered
Running multiple publishers with different TTLs
Additional context
n.a.

Added this #2279 and #2282.  Gated on the other issue to enable ttl on mqtt.

authors: marcschier quality-leftovers


text:
create-model-cmdlets.ps1 has a hardcoded 'Az' prefix for model cmdlets

When generated a module using the following options:
prefix: Rw
directive:
  - no-inline:
    - object
  - model-cmdlet:
    - child1
    - child2

I would expect the generator to create the following cmdlets:

New-RwChild1Object
New-RwChild2Object

However, create-model-cmdlets.ps1 has the Az prefix hardcoded (see line 61 and line 141) and I end up with the following:

New-AzChild1Object
New-AzChild2Object

What is interesting is that both line 61 and line 141  in create-model-cmdlets.ps1 include the ${ModulePrefix} variable, however it isn't being replaced.
After further investigation on my part, the ModulePrefix in create-model-cmdlets.ps1 isn't being replaced because my module's name is PsRunway. So when the following code is run in create-model-cmdlets.ps1:
$ModuleName = 'PsRunway'.Split(".")[1]
...
$ObjectType = $Model
...
if ($ObjectType.StartsWith($ModuleName)) {
    $ModulePrefix = ''
} else {
    $ModulePrefix = $ModuleName
}

$modulePrefix is now an empty string.
So while the hardcoded Az is still an issue, what is the recommended solution to get the passed prefix onto the model cmdlets? As a workaround for now, I can just manually rename them or wait and release that change in a later version.

Thanks for reporting. We introduced this function only for azure resource at first. But it's true that we should respect prefix setting. We will fix it as soon as possible.

Thank you! Its a great feature, in my opinion. As a workaround, I just manually edit create-model-cmdlets.ps1 before running build-module.ps1.

authors: ThePoShWolf dingmeng-xue


text:
Pager helper + tests

Need to look more at our current paging design. Does this work with low level? Do we need to rework it to make it more low level compatible?
Revisit our current design, then set up paging meetings with @lmazuel and @johanste
Add LLC tests as well once we've settled on a design

See https://github.com/Azure/autorest.python/issues/973

authors: iscai-msft lmazuel


text:
AVD agents, NTFS setup, storage permissions, password espace characters

Overview/Summary
Replace this with a brief description of what this Pull Request fixes, changes, etc.
This PR fixes/adds/changes/removes

Removes from storage accounts (FSLogix and MSIX) the use of default share-level permissions to all authenticated users and groups.
** New model increases user profiles container security, since now users will only have access to their own folders. This was acomplished by assigning SMB RBAC permissions for AAD scenarios and properly setting NTFS permissions for ADDS scenarios.
** Revamp the session host configuration with a single custom script extension script (Set-SessionHostConfiguration.ps1) that applies all necessary settings on the session hosts (VDI optimization tool, FSLogix registry keys, AAD join registry keys, TZ redirection, auto update disabling, GPU settings, NSTF settings, defender exlusions).
Introduce new especial character escaping on the storage join DSC package to properly handle domain join passwords.
Portal UI updated to include a field for security principal name when entering values instead of using group dropdown.
Azure files hybrid module updated from 2.4 to 2.8
AVD agent installation and config was revamped to now pull always the latest version of the agents.
New variables:
** varFslogixStorageFqdn
** varMsixStorageFqdn

Breaking Changes

Parameter updates:
** avdApplicationGroupIdentitiesIds (array) replaced with securityPrincipalId (string)
** avdIdentityDomainName replaced with identityDomainName
Parameters removed:
** applicationGroupIdentityType (code defaults to group type)

Testing Evidence
Replace this with any testing evidence to show that your Pull Request works/fixes as described and planned (include screenshots, if appropriate).
As part of this Pull Request I have

[ ] Read the Contribution Guide and ensured this PR is compliant with the guide
[ ] Ensured the resource API versions in .bicep file/s I am adding/editing are using the latest API version possible
[ ] Checked for duplicate Pull Requests
[ ] Associated it with relevant GitHub Issues
[ ] (AVD LZA Team Only) Associated it with relevant ADO Items
[ ] Ensured my code/branch is up-to-date with the latest changes in the main branch
[ ] Performed testing and provided evidence.
[ ] Updated relevant and associated documentation (e.g. Contribution Guide, Module READMEs, Docs etc.)

** Thank you @jamasten for providing great baseline code and @JamJarchitect and @moisesjgomez for your help.

@swathibhat1 please help us out socializing with the community, the more people we get testing the better :).
@jcoyne-msft some of the items we had pending were addressed with this PR (AVD agents, NTFS permissions, file share default share-level permissions)

repo: Azure/avdaccelerator


text:
Pg mysql table selection

This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines

[x] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
[x] Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/temandr/azure-cli-extensions.git@pg_mysql_table_selection#subdirectory=src/$EXT&egg=$EXT"

mysql table

@yonzhan Any updates on this PR?

@Juliehzl to help with this PR.

@yonzhan and @Juliehzl Any updates?

authors: azuresdkci temandr yonzhan

repo: Azure/azure-cli-extensions


text:
Dms sdk updates

This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines

[x] Have you run ./scripts/ci/test_static.sh locally? (pip install pylint flake8 required)
[x] Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

[x] My extension description/summary conforms to the Extension Summary Guidelines.

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/temandr/azure-cli-extensions.git@dms_sdk_updates#subdirectory=src/$EXT&egg=$EXT"

Synched offline. Will update the minCLICoreVersion instead.

authors: azuresdkci temandr


text:
[CosmosDB] Removing PITR commands and adding Services and Graphs commands

This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines

[x] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
[x] Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

CosmosDB

/azp run

@evelyn-ys do you know what is the reason of the failure in this https://dev.azure.com/azure-sdk/public/_build/results?buildId=1111224&view=logs&j=ccdac6d3-465a-5ada-8819-d5b4a6b3a631&t=ffdbba7d-e523-5908-c7bf-0703bafb81b0

@evelyn-ys do you know what is the reason of the failure in this https://dev.azure.com/azure-sdk/public/_build/results?buildId=1111224&view=logs&j=ccdac6d3-465a-5ada-8819-d5b4a6b3a631&t=ffdbba7d-e523-5908-c7bf-0703bafb81b0

It's because no help entry was found for command group cosmosdb graph and cosmosdb service

@evelyn-ys please merge if it looks good to you. TIA

@evelyn-ys please merge if it looks good to you. TIA

Can you pls address the linter failure?

	"az cosmosdb service create --resource-group MyResourceGroup --account-name MyAccount --service-name "graphApiCompute" --service-kind "GraphApiCompute" --count 1 --size "Cosmos.D4s"" is not a valid command.
	the following arguments are required: --kind/-k, --name/-n

    Help-Entry: `cosmosdb service delete` -
	There is a violation:
	"az cosmosdb service delete --resource-group MyResourceGroup --account-name MyAccount --service-name "sqlDedicatedGateway"" is not a valid command.
	the following arguments are required: --name/-n.

    Help-Entry: `cosmosdb service update` -
	There are 2 violations:
	"az cosmosdb service update --resource-group MyResourceGroup --account-name MyAccount --service-name "sqlDedicatedGateway" --service-kind "SqlDedicatedGateway" --count 3" is not a valid command.
	the following arguments are required: --name/-n, --kind/-k

	"az cosmosdb service update --resource-group MyResourceGroup --account-name MyAccount --service-name "graphApiCompute" --service-kind "GraphApiCompute" --count 1" is not a valid command.
	the following arguments are required: --name/-n, --kind/-k

authors: MehaKaushik evelyn-ys yonzhan


text:
{AKS} Bump dependency on azure-cli-core to 2.43.0

This checklist is used to make sure that common guidelines for a pull request are followed.
Bump dependency on azure-cli-core to 2.43.0 for aks-preview.
Related command

General Guidelines

[ ] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
[ ] Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
The precondition is to put your code inside this repository and upgrade the version in the pull request but do not modify src/index.json.

AKS

authors: FumingZhang yonzhan


text:
{Service Connector}: update new version

This checklist is used to make sure that common guidelines for a pull request are followed.
Related command

General Guidelines

[ ] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
[ ] Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

Service Connector


text:
[AppService] Linux Dedicated with custom image shouldn't set FUNCTIONS_WORKER_RUNTIME

When creating a Linux Dedicated functionapp with a custom image, the cli is setting FUNCTIONS_WORKER_RUNTIME to dotnet. This config should be set to null seeing as the custom image doesn't have to be dotnet.

AppService

authors: gzuber yonzhan

repo: Azure/azure-cli


text:
Need more details on properties to update

Documentation does not show how to update data.
update command with Id to select the service connection ok. But how to pass parameters to update?
Regards,
Florian.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 3bd63c4b-37f7-3641-8f15-0f5713ab71b4
Version Independent ID: 39006efa-983d-d605-ca4f-95ffd91fbec4
Content: az devops service-endpoint
Content Source: latest/docs-ref-autogen/devops/service-endpoint.yml
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

devops

If you are still looking for solution, please reopen an issue in azure cli extension

authors: RakeshMohanMSFT fsureau yonzhan


text:
az keyvault secret list --id expects key vault uri instead of resource id

Describe the bug
Command Name
az keyvault secret list
Errors:
The  --id parameter, but it expects the key vault uri instead of a resource Id.
This is inconsistent with other commands.
Expected Behavior
--id should accept a resource id and there should be an optional/alternative input for key vault uri.
Environment Summary
Linux-5.4.72-microsoft-standard-WSL2-x86_64-with-glibc2.2.5
Python 3.8.9
Installer: HOMEBREW

azure-cli 2.22.0 *

Extensions:
azure-devops 0.18.0
aks-preview 0.5.5
import-export 0.1.1

thanks for reporting, this is a legacy design. WIll need to revisit it.

authors: daniel-anova yungezz


text:
az functionapp deployment crash

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az functionapp deployment source config-zip
Errors:
The command failed with an unexpected error. Here is the traceback:
'str' object has no attribute 'value'
Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 657, in execute
    raise ex
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 691, in _run_job
    result = cmd_copy(params)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 405, in enable_zip_deploy_functionapp
    return enable_zip_deploy(cmd, resource_group_name, name, src, timeout, slot)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 417, in enable_zip_deploy
    scm_url = _get_scm_url(cmd, resource_group_name, name, slot)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 1948, in _get_scm_url
    webapp = show_webapp(cmd, resource_group_name, name, slot=slot)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 607, in show_webapp
    return _show_app(cmd, resource_group_name, name, "webapp", slot)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/appservice/custom.py", line 736, in _show_app
    "Unable to find {} '{}', in RG '{}'".format(cmd_app_type.value, name, resource_group_name),
AttributeError: 'str' object has no attribute 'value'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
build dotnet 3 function app into a zip file
deploy infra with app service and function app (windows based)
az login to subscription I want to deploy into
az functionapp deployment source config-zip --resource-group validrg --name validfunc --src validzipfile.zip --debug

Expected Behavior
successfully deployed function app
Environment Summary
Linux-5.10.16.3-microsoft-standard-WSL2-x86_64-with-debian-bullseye-sid, Ubuntu 20.04.3 LTS
Python 3.6.10
Installer: DEB

azure-cli 2.29.0 *

Additional Context

Experiencing the same issue! We use this installation method   in our dockerfile. Any tips on how to install an older version of the az-cli?

Experiencing the same issue! We use this installation method  in our dockerfile. Any tips on how to install an older version of the az-cli?

We have managed to mitigate it by reverting to use 2.28.0 (it seems that there is no 2.29.1 for the "focal" ubuntu release available yet in the packages, despite there being ones for all the other versions.
Adding this to our pipeline downloaded the older version and allowed us to continue to deploy at least until this is corrected
sudo apt install -y --allow-downgrades azure-cli=2.28.0-1~focal

route to service team

authors: Gerritjuuh darren-at-shell sjhawke yonzhan


text:
Deprecate --sdk-auth of az ad sp create-for-rbac

Related command
az ad sp create-for-rbac

Is your feature request related to a problem? Please describe.
The original designed consumers of the az ad sp create-for-rbac --sdk-auth JSON output - Azure SDKs (Java, Python, etc.) have deprecated the usage of get_client_from_json_dict (https://github.com/Azure/azure-sdk-for-python/issues/15075). Azure CLI should deprecate --sdk-auth as well.
However, we can't immediately take --sdk-auth away because GitHub Action heavily relies on --sdk-auth, even though GitHub Action is not a designed consumer of --sdk-auth (Azure/github#152).
The output of az ad sp create-for-rbac without or with --sdk-auth varies a lot.
Without --sdk-auth:
> az ad sp create-for-rbac

{
  "appId": "21ec2946-231c-480f-86c7-824b215326a4",
  "displayName": "azure-cli-2022-02-07-07-07-00",
  "password": "{redacted_password}",
  "tenant": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"
}

With --sdk-auth:
> az ad sp create-for-rbac --sdk-auth
{
  "clientId": "21ec2946-231c-480f-86c7-824b215326a4",
  "clientSecret": "{redacted_password}",
  "subscriptionId": "...",
  "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a",
  "activeDirectoryEndpointUrl": "https://login.microsoftonline.com",
  "resourceManagerEndpointUrl": "https://management.azure.com/",
  "activeDirectoryGraphResourceId": "https://graph.windows.net/",
  "sqlManagementEndpointUrl": "https://management.core.windows.net:8443/",
  "galleryEndpointUrl": "https://gallery.azure.com/",
  "managementEndpointUrl": "https://management.core.windows.net/"
}

The root cause leading to this confusion is due to the name inconsistency between Azure AD and Azure SDKs (https://github.com/Azure/azure-cli/pull/19872#issuecomment-1031153690):

Azure AD names
Azure SDK names

appId
clientId

password
clientSecret

tenant/directory
tenantId

Describe the solution you'd like
We should either

Work with GitHub Action team to deprecate --sdk-auth
Keep --sdk-auth indefinitely

Additional context

https://github.com/Azure/azure-cli/pull/19414
https://github.com/Azure/azure-cli/pull/19872
https://github.com/Azure/azure-cli/pull/19853

Deprecate --sdk-auth

@jiasli Following up with this thread.
Can you confirm if --sdk-auth was deprecated or not!
The official docs for az ad sp still lists the flag without any deprecation notice.

I've seen the Azure CLI latest doc has been provide new option --json-auth will be different format than --sdk-auth
From my understanding, they will discontinue for --sdk-auth in the future

Also crossplane upbound.io Azure provider configuration still relies on --sdk-auth - see

authors: dgolja divyabhushan jiasli mildronize yonzhan


text:
az aks create failed with an unexpected error.

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az aks create
Errors:
The command failed with an unexpected error. Here is the traceback:
cannot import name 'map_azure_error_to_cli_error' from 'azure.cli.command_modules.acs._helpers' (C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\command_modules\acs\_helpers.pyc)
Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 556, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/__init__.py", line 515, in load_arguments
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 313, in load_arguments
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/commands.py", line 104, in load_arguments
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 125, in arguments_loader
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 59, in get_op_handler
  File "importlib\__init__.py", line 127, in import_module
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\vrith\.azure\cliextensions\aks-preview\azext_aks_preview\custom.py", line 105, in <module>
    from ._helpers import (
  File "C:\Users\vrith\.azure\cliextensions\aks-preview\azext_aks_preview\_helpers.py", line 7, in <module>
    from azure.cli.command_modules.acs._helpers import map_azure_error_to_cli_error
ImportError: cannot import name 'map_azure_error_to_cli_error' from 'azure.cli.command_modules.acs._helpers' (C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\command_modules\acs\_helpers.pyc)

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az aks create --resource-group {} --name {} --node-count {} --generate-ssh-keys --attach-acr {}

Expected Behavior
Environment Summary
Windows-10-10.0.22000-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.34.1 *

Extensions:
aks-preview 0.5.70
application-insights 0.1.15
azure-devops 0.18.0
containerapp 0.3.4
log-analytics 0.2.2

Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0

Additional Context

route to CXP team

@vRITHNER Apologies for the late reply. Thanks for reaching out to us and sharing this feedback. We are looking into this issue. We will provide an update once we have more details on this.

@vRITHNER I wanted to do quick follow-up to check if you had a chance to look at my above comment. Please let us know if you are still facing the same issue after following the above plan. Awaiting your reply.

@vRITHNER The action is currently pending on you to follow the above plan and get back to us. We will now proceed with closure of this github issue. If you need any further assistance on this issue in future, please feel free to reopen this thread. We would be happy to help.

authors: navba-MSFT vRITHNER yonzhan


text:
ERROR to Import Repository

`

Recent commands:
[0] create a generic issue.
[1] az devops configure   : SUCCESS. Ran: 4 secs ago.
[2] az repos create       : SUCCESS. Ran: 4 secs ago.
[3] az repos import create: FAILURE. Ran: 1 secs ago.
Related command

Describe the bug

Environment summary

Additional context

@logjeferson Thanks for reaching out to us and reporting this issue. Feel free to reach out to us if you need any assistance on this in future.

authors: logjeferson navba-MSFT