Coder Social home page Coder Social logo

azuresphereexplorer's Issues

今後の開発予定について(Put系の機能追加)

AzureSphereExplorerでは主にGet系の機能を実装されていますが、
今後、Put系の機能に対応する予定はあるでしょうか?

現在、以下の機能追加をしてみようと考えており、
upstreamの方でも既に開発が動いていないか確認させていただきたく。

  • Device Claim機能
  • デプロイ機能(ImagePackを指定してファイルアップロード)
  • Product Name、Device Group作成/設定機能

ImageIDs list

Can you planning the ability to list all image IDs in your tenant?

デバイスグループが表示されない

新しく作成したプロダクトについてデバイスグループが見えないものがあります。

キャプチャ1-1

キャプチャ1

SDKは20.07を使用していますがなにかわかりますでしょうか。

デバイスグループのUpdatePolicy表示が間違っている

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

テナントオーナーではないアカウントでUsersを表示させると落ちる

テナントオーナーではないアカウントで"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 内) でスローされました

デバイスグループ、プロダクトが削除できない

プロダクトを削除しようとするとエラーが発生します
image

デバイスグループも同様に削除しようとするとエラーになります。
image

デバイスはこれらのデバイスグループ、プロダクトに割り当てていない状態です。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.