Get-AzEnvironment

Végpontok és metaadatok lekérése az Azure-szolgáltatások egy példányához. GalleryUrl el lesz távolítva az ArmMetadata-ból, így az Azure PowerShell a továbbiakban nem adja meg az értékét a következőben PSAzureEnvironment: . Jelenleg GalleryUrl nincs használatban az Azure PowerShell-termékekben. Kérjük, ne válaszoljon GalleryUrl tovább.

Syntax

Get-AzEnvironment
   [[-Name] <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

A Get-AzEnvironment parancsmag lekéri az Azure-szolgáltatások egy példányának végpontjait és metaadatait.

Példák

1. példa: Az összes Azure-környezet lekérése

Get-AzEnvironment

Name              Resource Manager Url                  ActiveDirectory Authority          Type
----              --------------------                  -------------------------          ----
AzureUSGovernment https://management.usgovcloudapi.net/ https://login.microsoftonline.us/  Built-in
AzureCloud        https://management.azure.com/         https://login.microsoftonline.com/ Built-in
AzureChinaCloud   https://management.chinacloudapi.cn/  https://login.chinacloudapi.cn/    Built-in

Ez a példa bemutatja, hogyan szerezheti be az AzureCloud (alapértelmezett) környezet végpontjait és metaadatait.

2. példa: Az AzureCloud-környezet beszerzése

Get-AzEnvironment -Name AzureCloud

Name       Resource Manager Url          ActiveDirectory Authority          Type
----       --------------------          -------------------------          ----
AzureCloud https://management.azure.com/ https://login.microsoftonline.com/ Built-in

Ez a példa bemutatja, hogyan szerezheti be az AzureCloud (alapértelmezett) környezet végpontjait és metaadatait.

3. példa: Az AzureChinaCloud-környezet beszerzése

Get-AzEnvironment -Name AzureChinaCloud | Format-List

Name                                              : AzureChinaCloud
Type                                              : Built-in
EnableAdfsAuthentication                          : False
OnPremise                                         : False
ActiveDirectoryServiceEndpointResourceId          : https://management.core.chinacloudapi.cn/
AdTenant                                          : Common
GalleryUrl                                        : https://gallery.azure.com/
ManagementPortalUrl                               : https://go.microsoft.com/fwlink/?LinkId=301902
ServiceManagementUrl                              : https://management.core.chinacloudapi.cn/
PublishSettingsFileUrl                            : https://go.microsoft.com/fwlink/?LinkID=301776
ResourceManagerUrl                                : https://management.chinacloudapi.cn/
SqlDatabaseDnsSuffix                              : .database.chinacloudapi.cn
StorageEndpointSuffix                             : core.chinacloudapi.cn
ActiveDirectoryAuthority                          : https://login.chinacloudapi.cn/
GraphUrl                                          : https://graph.chinacloudapi.cn/
GraphEndpointResourceId                           : https://graph.chinacloudapi.cn/
TrafficManagerDnsSuffix                           : trafficmanager.cn
AzureKeyVaultDnsSuffix                            : vault.azure.cn
DataLakeEndpointResourceId                        : 
AzureDataLakeStoreFileSystemEndpointSuffix        : 
AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix : 
AzureKeyVaultServiceEndpointResourceId            : https://vault.azure.cn
ContainerRegistryEndpointSuffix                   : azurecr.cn
AzureOperationalInsightsEndpointResourceId        : 
AzureOperationalInsightsEndpoint                  : 
AzureAnalysisServicesEndpointSuffix               : asazure.chinacloudapi.cn
AnalysisServicesEndpointResourceId                : https://region.asazure.chinacloudapi.cn
AzureAttestationServiceEndpointSuffix             : 
AzureAttestationServiceEndpointResourceId         : 
AzureSynapseAnalyticsEndpointSuffix               : dev.azuresynapse.azure.cn
AzureSynapseAnalyticsEndpointResourceId           : https://dev.azuresynapse.azure.cn

Ez a példa bemutatja, hogyan szerezheti be az AzureChinaCloud-környezet végpontjait és metaadatait.

4. példa: Az AzureUSGovernment környezet beszerzése

Get-AzEnvironment -Name AzureUSGovernment

Name              Resource Manager Url                  ActiveDirectory Authority         Type
----              --------------------                  -------------------------         ----
AzureUSGovernment https://management.usgovcloudapi.net/ https://login.microsoftonline.us/ Built-in

Ez a példa bemutatja, hogyan szerezheti be az AzureUSGovernment-környezet végpontjait és metaadatait.

Paraméterek

-DefaultProfile

Az Azure-ral való kommunikációhoz használt hitelesítő adatok, fiók, bérlő és előfizetés.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Megadja a lekérendő Azure-példány nevét.

Type:String
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Bevitelek

String

Kimenetek

PSAzureEnvironment