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

질문됨 일 년 전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.

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠