matsujirushi / azuresphereexplorer Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
AzureSphereExplorerでは主にGet系の機能を実装されていますが、
今後、Put系の機能に対応する予定はあるでしょうか?
現在、以下の機能追加をしてみようと考えており、
upstreamの方でも既に開発が動いていないか確認させていただきたく。
Hi
It would be great to have a feature to see all registered Azure Sphere Users and Roles under the selected Tenant.
Thank you @matsujirushi and the team for the great tool!
Can you planning the ability to list all image IDs in your tenant?
azsphereコマンドでデバイスグループを作成して確認したところ、
Onの時はAllUpdates、Offの時はNo3rdPartyAppUpdatesとなります。
=================================================
・Onの場合
C:\Users\mogaki\Documents>azsphere dg create -n testdg -pn testproductm
Creating device group 'testdg'.
Successfully created device group 'testdg' with ID 'a25fd3fc-b13b-461d-b250-9ff470c7f5d5',
and update policy: Accept all updates from the Azure Sphere Security Service.
C:\Users\mogaki\Documents>azsphere dg show -pn testproductm -dgn testdg
Getting device group 'testdg' for product 'testproductm'.
Successfully retrieved the device group:
ID: 'a25fd3fc-b13b-461d-b250-9ff470c7f5d5'
Name: 'testdg'
Description: ''
OS Feed Type: 'Retail'
Update Policy: Accept all updates from the Azure Sphere Security Service. // ★AllUpdates
Current Deployment: None
C:\Users\mogaki\Documents>
・Offの場合
C:\Users\mogaki\Documents>azsphere dg create -n testdg2 -pn testproductm -a Off -o RetailEval
Creating device group 'testdg2'.
Successfully created device group 'testdg2' with ID '62a9c403-7edc-4d3b-b1c1-4a19e51bfd85',
and update policy: Accept only system software updates. Don't accept application updates.
C:\Users\mogaki\Documents>azsphere dg show -pn testproductm -dgn testdg2
Getting device group 'testdg2' for product 'testproductm'.
Successfully retrieved the device group:
ID: '62a9c403-7edc-4d3b-b1c1-4a19e51bfd85'
Name: 'testdg2'
Description: ''
OS Feed Type: 'RetailEval'
Update Policy: Accept only system software updates. Don't accept application updates. // ★No3rdPartyAppUpdates
Current Deployment: None
C:\Users\mogaki\Documents>
=================================================
しかし、これをAzure Sphere Explorerで表示すると、
各デバイスグループのUpdatePolicyの表示内容が、設定した値と異なっておりました。
・testdg :No3rdParty("AllUpdates"で作成したデバイスグループ)
・testdg2:AppUpdates("No3rdPartyAppUpdates"で作成したデバイスグループ)
その上でPublic APIのReferenceを確認した所、UpdatePolicyは以下となっておりました。
https://docs.microsoft.com/en-us/rest/api/azure-sphere/devicegroup/create
enum:
UpdateAll
No3rdPartyAppUpdates
NoUpdates
テナントオーナーではないアカウントで"View"→"Users..."ボタンをクリックすると、exeが強制終了してしまいました。
"Api.GetUsersAsync"でExceptionが発生してしまうようです。
System.Net.Http.HttpRequestException HResult=0x80131500 Message=応答の状態コードは成功を示していません: 404 (Not Found)。 Source=System.Net.Http スタック トレース: at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at AzureSpherePublicAPI.AzureSphereAPI.d__15.MoveNext() in C:\Users\mogaki\source\repos\mogaki\AzureSphereExplorer\src\AzureSpherePublicAPI\AzureSphereAPI.cs:line 170 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at AzureSpherePublicAPI.AzureSphereAPI.d__17.MoveNext() in C:\Users\mogaki\source\repos\mogaki\AzureSphereExplorer\src\AzureSpherePublicAPI\AzureSphereAPI.cs:line 194 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at AzureSphereExplorer.MainWindow.d__15.MoveNext() in C:\Users\mogaki\source\repos\mogaki\AzureSphereExplorer\src\AzureSphereExplorer\MainWindow.xaml.cs:line 273 この例外は、最初にこの呼び出し履歴 [外部コード] AzureSpherePublicAPI.AzureSphereAPI.GetAsync(string, System.Threading.CancellationToken) (AzureSphereAPI.cs 内) [外部コード] AzureSpherePublicAPI.AzureSphereAPI.GetUsersAsync(AzureSpherePublicAPI.AzureSphereTenant, System.Threading.CancellationToken) (AzureSphereAPI.cs 内) [外部コード] AzureSphereExplorer.MainWindow.menuitemUsers_Click(object, System.Windows.RoutedEventArgs) (MainWindow.xaml.cs 内) でスローされました
デバイスグループがデバイスに割り当てられていると、削除できない。(API仕様と思われる)
その場合に、GUIになにかメッセージを表示してほしい。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.