Get Windows Remote PowerShell Endpoint programatically

0

Is there a way of getting the Windows Remote PowerShell Endpoint using Cloud Formation when the FSx Repository is created as a resource using AWS::FSx::FileSystem or from powershell using something like Get-FSXFileSystem -FileSystemId $FSxId

質問済み 1年前261ビュー
1回答
0

Found it eventually for Powershell:

Import-Module 'AWSPowerShell' $FSx = id of fsx $FsxSystem = Get-FSXFileSystem -FileSystemId $FSx $FSxDNSName = $FsxSystem.DNSName $FSxRemoteDNSName = $FsxSystem.WindowsConfiguration.RemoteAdministrationEndpoint Write-Host $FSxDNSName Write-Host $FSxRemoteDNSName

Note you need the role to be able to describe the filesystem e.g. by adding the permision AmazonFSxReadOnlyAccess to the role the server is running as.

回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ