Get-AzBastionShareableLink
Met de functie Bastion Shareable Link kunnen gebruikers verbinding maken met een doelresource (virtuele machine of virtuele-machineschaalset) met behulp van Azure Bastion zonder toegang te krijgen tot Azure Portal.
Get-AzBastionShareableLink
-ResourceGroupName <String>
-Name <String>
[-TargetVmId <System.Collections.Generic.List`1[System.String]>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Get-AzBastionShareableLink
-ResourceId <String>
[-TargetVmId <System.Collections.Generic.List`1[System.String]>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Get-AzBastionShareableLink
-InputObject <PSBastion>
[-TargetVmId <System.Collections.Generic.List`1[System.String]>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Retourneer de Bastion Shareable Links voor alle vm's die zijn opgegeven in de aanvraag.
Get-AzBastionShareableLink -ResourceGroupName $RgName -Name $bastionName
{
"vm": {
"id": "/subscriptions/subid/resourceGroups/rgx/providers/Microsoft.Compute/virtualMachines/vm"
},
"bsl": "http://bst-bastionhostid.bastion.com/api/shareable-url/tokenvm",
"createdAt": "2019-10-17T12:00:00.0000Z"
}
Get-AzBastionShareableLink -InputObject $bastion -TargetVmId $vm1.Id
{
"vm": {
"id": "/subscriptions/subid/resourceGroups/rgx/providers/Microsoft.Compute/virtualMachines/vm1"
},
"bsl": "http://bst-bastionhostid.bastion.com/api/shareable-url/tokenvm1",
"createdAt": "2019-10-17T12:00:00.0000Z"
}
Hiermee haalt u deelbare koppeling(en) op voor opgegeven VM's in een Bastion-resource.
Cmdlet op de achtergrond uitvoeren
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
Hiermee wordt u gevraagd om bevestiging voordat u de cmdlet uitvoert.
Type: | SwitchParameter |
Aliassen: | cf |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.
Type: | IAzureContextContainer |
Aliassen: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
Bastion-object
Type: | PSBastion |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
De naam van de Bastion-resource.
Type: | String |
Aliassen: | ResourceName, BastionName |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
De naam van de resourcegroep waar de Bastion-resource bestaat
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
De Bastion-resource-id
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
Id van de VM's om deelbare Bastion-koppelingen op te halen
Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. De cmdlet wordt niet uitgevoerd.
Type: | SwitchParameter |
Aliassen: | wi |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
List<T>[[System.String, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]
List<T>[[Microsoft.Azure.Commands.Network.Models.Bastion.PSBastionShareableLink, Microsoft.Azure.PowerShell.Cmdlets.Network, Version=7.5.0.0, Culture=neutral, PublicKeyToken=null]]
Azure PowerShell-feedback
Azure PowerShell is een open source project. Selecteer een koppeling om feedback te geven: