你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzureRmEnvironment
获取 Azure 服务的实例的终结点和元数据。
注意
本文档中引用的 cmdlet 用于管理使用服务管理 API 的旧式 Azure 资源。 若要了解用于管理 Azure 资源管理器资源的 cmdlet,请参阅 Az PowerShell 模块。
语法
Get-AzureRmEnvironment
[[-Name] <String>]
[<CommonParameters>]
说明
Get-AzureRmEnvironment cmdlet 获取 Azure 服务的实例的终结点和元数据。
示例
示例 1:获取 AzureCloud 环境
PS C:\> Get-AzureRmEnvironment AzureCloud
Name : AzureCloud
EnableAdfsAuthentication : False
ActiveDirectoryServiceEndpointResourceId : https://management.core.windows.net/
AdTenant :
GalleryUrl : https://gallery.azure.com/
ManagementPortalUrl : https://go.microsoft.com/fwlink/?LinkId=254433
ServiceManagementUrl : https://management.core.windows.net/
PublishSettingsFileUrl : https://go.microsoft.com/fwlink/?LinkID=301775
ResourceManagerUrl : https://management.azure.com/
SqlDatabaseDnsSuffix : .database.windows.net
StorageEndpointSuffix : core.windows.net
ActiveDirectoryAuthority : https://login.microsoftonline.com/
GraphUrl : https://graph.windows.net/
GraphEndpointResourceId : https://graph.windows.net/
TrafficManagerDnsSuffix : trafficmanager.net
AzureKeyVaultDnsSuffix : vault.azure.net
AzureDataLakeStoreFileSystemEndpointSuffix : azuredatalakestore.net
AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix : azuredatalakeanalytics.net
AzureKeyVaultServiceEndpointResourceId : https://vault.azure.net
此示例演示如何获取 AzureCloud(默认)环境的终结点和元数据。
示例 2:获取 AzureChinaCloud 环境
PS C:\> Get-AzureRmEnvironment AzureChinaCloud
Name : AzureChinaCloud
EnableAdfsAuthentication : False
ActiveDirectoryServiceEndpointResourceId : https://management.core.chinacloudapi.cn/
AdTenant :
GalleryUrl : https://gallery.chinacloudapi.cn/
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
AzureDataLakeStoreFileSystemEndpointSuffix :
AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix :
AzureKeyVaultServiceEndpointResourceId : https://vault.azure.cn
此示例演示如何获取 AzureChinaCloud 环境的终结点和元数据。
示例 3:获取 AzureUSGovernment 环境
PS C:\> Get-AzureRmEnvironment AzureUSGovernment
Name : AzureUSGovernment
EnableAdfsAuthentication : False
ActiveDirectoryServiceEndpointResourceId : https://management.core.usgovcloudapi.net/
AdTenant :
GalleryUrl : https://gallery.usgovcloudapi.net/
ManagementPortalUrl : https://manage.windowsazure.us
ServiceManagementUrl : https://management.core.usgovcloudapi.net/
PublishSettingsFileUrl : https://manage.windowsazure.us/publishsettings/index
ResourceManagerUrl : https://management.usgovcloudapi.net/
SqlDatabaseDnsSuffix : .database.usgovcloudapi.net
StorageEndpointSuffix : core.usgovcloudapi.net
ActiveDirectoryAuthority : https://login-us.microsoftonline.com/
GraphUrl : https://graph.windows.net/
GraphEndpointResourceId : https://graph.windows.net/
TrafficManagerDnsSuffix : usgovtrafficmanager.net
AzureKeyVaultDnsSuffix : vault.usgovcloudapi.net
AzureDataLakeStoreFileSystemEndpointSuffix :
AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix :
AzureKeyVaultServiceEndpointResourceId : https://vault.usgovcloudapi.net
此示例演示如何获取 AzureUSGovernment 环境的终结点和元数据。
参数
-Name
指定要获取的 Azure 实例的名称。
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
输出
PSAzureEnvironment