Get-AzEnvironment
Dapatkan titik akhir dan metadata untuk instans layanan Azure.
GalleryUrl
akan dihapus dari ArmMetadata sehingga Azure PowerShell tidak akan lagi menyediakan nilainya di PSAzureEnvironment
. Saat ini GalleryUrl
tidak digunakan dalam produk Azure PowerShell. Harap jangan balas GalleryUrl
lagi.
Sintaks
Get-AzEnvironment
[[-Name] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Get-AzEnvironment mendapatkan titik akhir dan metadata untuk instans layanan Azure.
Contoh
Contoh 1: Mendapatkan semua lingkungan Azure
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
Contoh ini menunjukkan cara mendapatkan titik akhir dan metadata untuk lingkungan AzureCloud (default).
Contoh 2: Mendapatkan lingkungan AzureCloud
Get-AzEnvironment -Name AzureCloud
Name Resource Manager Url ActiveDirectory Authority Type
---- -------------------- ------------------------- ----
AzureCloud https://management.azure.com/ https://login.microsoftonline.com/ Built-in
Contoh ini menunjukkan cara mendapatkan titik akhir dan metadata untuk lingkungan AzureCloud (default).
Contoh 3: Mendapatkan lingkungan AzureChinaCloud
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
Contoh ini menunjukkan cara mendapatkan titik akhir dan metadata untuk lingkungan AzureChinaCloud.
Contoh 4: Mendapatkan lingkungan AzureUSGovernment
Get-AzEnvironment -Name AzureUSGovernment
Name Resource Manager Url ActiveDirectory Authority Type
---- -------------------- ------------------------- ----
AzureUSGovernment https://management.usgovcloudapi.net/ https://login.microsoftonline.us/ Built-in
Contoh ini menunjukkan cara mendapatkan titik akhir dan metadata untuk lingkungan AzureUSGovernment.
Parameter
-DefaultProfile
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Menentukan nama instans Azure yang akan didapatkan.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |