共用方式為


Get-AzNetAppFilesFilePathAvailability

檢查檔案路徑可用性

語法

Get-AzNetAppFilesFilePathAvailability
   -Location <String>
   -SubnetId <String>
   -Name <String>
   [-Zone <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

檢查檔案路徑是否可用

範例

範例 1

Get-AzNetAppFilesFilePathAvailability -Location westus2 -Name filename -SubnetId $subnetId

檢查子網 “/subscriptions/subsId/resourceGroups/MyRG/providers/Microsoft.Network/virtualNetworks/MyVnetName/subnets/MySubNetName” 中是否有檔案路徑檔名

參數

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Location

資源的位置

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-Name

要驗證的檔案路徑。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-SubnetId

委派子網的 Azure 資源 URI。 必須具有委派Microsoft.NetApp/volumes。 範例 /subscriptions/subscriptionId/resourceGroups/resourceGroup/providers/Microsoft.Network/virtualNetworks/testVnet/subnets/{mySubnet}

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-Zone

邏輯可用性區域

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

None

輸出