前提
Azure環境でWindowsServerの仮想マシンをWebサーバとして管理しています。
実現したいこと
仮想マシンにはRDP接続でいつもアクセスしていますが、
Azure CloudShellからVMにアクセスしてみたいと思っています。
発生している問題・エラーメッセージ
とりあえずは、
Enable-AzVMPSRemoting -Name "VMの名前" -ResourceGroupName "リソースグループの名前"
でコマンドをうってみたら、
PropertyNotFoundException: The property 'WindowsConfiguration' cannot be found on this object. Verify that the property exists.
MetadataError: Cannot convert null to type "OsType" due to enumeration values that are not valid. Specify one of the following enumeration values and try again. The possible enumeration values are "Windows,Linux".
とエラーがでてしまいました。
CUIでサーバを操作するのは初めてでこのエラーを調べても何が問題なのかわかりません。
VMにアクセスするためのなにかコンポーネントが不足しているのでしょうか?
AzureのコンソールからみてもVMエージェントは
エージェントの状態
Ready
エージェントのバージョン
2.7.41491.1071
となっています。

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/12/27 00:39