az network private-link-resource
管理私人連結資源。
命令
名稱 | Description | 類型 | 狀態 |
---|---|---|---|
az network private-link-resource list |
列出所有私人連結資源。 |
核心 | GA |
az network private-link-resource list
列出所有私人連結資源。
az network private-link-resource list [--id]
[--name]
[--resource-group]
[--type {Microsoft.AgFoodPlatform/farmBeats, Microsoft.ApiManagement/service, Microsoft.App/managedEnvironments, Microsoft.AppConfiguration/configurationStores, Microsoft.Authorization/resourceManagementPrivateLinks, Microsoft.Automation/automationAccounts, Microsoft.Batch/batchAccounts, Microsoft.BotService/botServices, Microsoft.Cache/Redis, Microsoft.CognitiveServices/accounts, Microsoft.Compute/diskAccesses, Microsoft.ContainerRegistry/registries, Microsoft.DBforMariaDB/servers, Microsoft.DBforMySQL/flexibleServers, Microsoft.DBforMySQL/servers, Microsoft.DBforPostgreSQL/flexibleServers, Microsoft.DBforPostgreSQL/serverGroupsv2, Microsoft.DBforPostgreSQL/servers, Microsoft.Dashboard/grafana, Microsoft.DataFactory/factories, Microsoft.Databricks/workspaces, Microsoft.DesktopVirtualization/hostpools, Microsoft.DesktopVirtualization/workspaces, Microsoft.DeviceUpdate/accounts, Microsoft.Devices/IotHubs, Microsoft.DigitalTwins/digitalTwinsInstances, Microsoft.DocumentDB/databaseAccounts, Microsoft.DocumentDB/mongoClusters, Microsoft.ElasticSan/elasticSans, Microsoft.EventGrid/domains, Microsoft.EventGrid/namespaces, Microsoft.EventGrid/partnerNamespaces, Microsoft.EventGrid/topics, Microsoft.EventHub/namespaces, Microsoft.HDInsight/clusters, Microsoft.HardwareSecurityModules/cloudHsmClusters, Microsoft.HealthcareApis/services, Microsoft.HybridCompute/privateLinkScopes, Microsoft.KeyVault/managedHSMs, Microsoft.Keyvault/vaults, Microsoft.KubernetesConfiguration/privateLinkScopes, Microsoft.Kusto/clusters, Microsoft.MachineLearningServices/registries, Microsoft.MachineLearningServices/workspaces, Microsoft.Media/mediaservices, Microsoft.Monitor/accounts, Microsoft.Network/applicationGateways, Microsoft.Network/privateLinkServices, Microsoft.OpenEnergyPlatform/energyServices, Microsoft.PowerBI/privateLinkServicesForPowerBI, Microsoft.Purview/accounts, Microsoft.RecoveryServices/vaults, Microsoft.Search/searchServices, Microsoft.ServiceBus/namespaces, Microsoft.SignalRService/WebPubSub, Microsoft.SignalRService/signalr, Microsoft.Sql/servers, Microsoft.Storage/storageAccounts, Microsoft.StorageSync/storageSyncServices, Microsoft.Synapse/workspaces, Microsoft.Web/hostingEnvironments, Microsoft.Web/sites, microsoft.insights/privateLinkScopes}]
範例
列出儲存體帳戶的所有私人連結資源。
az network private-link-resource list -g MyResourceGroup -n MySA --type Microsoft.Storage/storageAccounts
列出 keyvault 的所有私人連結資源。
az network private-link-resource list -g MyResourceGroup -n MyKV --type Microsoft.Keyvault/vaults
列出 ACR 的所有私人連結資源。
az network private-link-resource list --id /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.ContainerRegistry/registries/testreg000002
選擇性參數
--id
資源的識別碼。
--name -n
資源的名稱。 如果提供,也必須提供 --type 和 --resource-group。
--resource-group -g
資源組名。 如果提供,也必須提供 --name 和 --type。
--type
資源的類型。 如果提供,也必須提供 --name 和 --resource-group。
接受的值: Microsoft.AgFoodPlatform/farmBeats, Microsoft.ApiManagement/service, Microsoft.App/managedEnvironments, Microsoft.AppConfiguration/configurationStores, Microsoft.Authorization/resourceManagementPrivateLinks, Microsoft.Automation/automationAccounts, Microsoft.Batch/batchAccounts, Microsoft.BotService/botServices, Microsoft.Cache/Redis, Microsoft.CognitiveServices/accounts, Microsoft.Compute/diskAccesses, Microsoft.ContainerRegistry/registries, Microsoft.DBforMariaDB/servers, Microsoft.DBforMySQL/flexibleServers, Microsoft.DBforMySQL/servers, Microsoft.DBforPostgreSQL/flexibleServers, Microsoft.DBforPostgreSQL/serverGroupsv2, Microsoft.DBforPostgreSQL/servers, Microsoft.Dashboard/grafana, Microsoft.DataFactory/factories, Microsoft.Databricks/workspaces, Microsoft.DesktopVirtualization/hostpools, Microsoft.DesktopVirtualization/workspaces, Microsoft.DeviceUpdate/accounts, Microsoft.Devices/IotHubs, Microsoft.DigitalTwins/digitalTwinsInstances, Microsoft.DocumentDB/databaseAccounts, Microsoft.DocumentDB/mongoClusters, Microsoft.ElasticSan/elasticSans, Microsoft.EventGrid/domains, Microsoft.EventGrid/namespaces, Microsoft.EventGrid/partnerNamespaces, Microsoft.EventGrid/topics, Microsoft.EventHub/namespaces, Microsoft.HDInsight/clusters, Microsoft.HardwareSecurityModules/cloudHsmClusters, Microsoft.HealthcareApis/services, Microsoft.HybridCompute/privateLinkScopes, Microsoft.KeyVault/managedHSMs, Microsoft.Keyvault/vaults, Microsoft.KubernetesConfiguration/privateLinkScopes, Microsoft.Kusto/clusters, Microsoft.MachineLearningServices/registries, Microsoft.MachineLearningServices/workspaces, Microsoft.Media/mediaservices, Microsoft.Monitor/accounts, Microsoft.Network/applicationGateways, Microsoft.Network/privateLinkServices, Microsoft.OpenEnergyPlatform/energyServices, Microsoft.PowerBI/privateLinkServicesForPowerBI, Microsoft.Purview/accounts, Microsoft.RecoveryServices/vaults, Microsoft.Search/searchServices, Microsoft.ServiceBus/namespaces, Microsoft.SignalRService/WebPubSub, Microsoft.SignalRService/signalr, Microsoft.Sql/servers, Microsoft.Storage/storageAccounts, Microsoft.StorageSync/storageSyncServices, Microsoft.Synapse/workspaces, Microsoft.Web/hostingEnvironments, Microsoft.Web/sites, microsoft.insights/privateLinkScopes
全域參數
--debug
增加記錄詳細資訊,以顯示所有偵錯記錄。
--help -h
顯示此說明訊息並結束。
--only-show-errors
只顯示錯誤,隱藏警告。
--output -o
輸出格式。
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query
JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/。
--subscription
訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID
帳戶。
--verbose
增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。