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

posta un anno fa261 visualizzazioni
1 Risposta
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.

con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande