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

feita há um ano261 visualizações
1 Resposta
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.

respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas