Skip to content

Commit 80b263c

Browse files
authored
Update Get-AzEnvironment.md (#14704)
1. Added a new example 1 to get all Azure environments 2. Updated subsequent example numbers 3. updated code fencing for samples 4. Added parameter named in examples
1 parent 4046774 commit 80b263c

File tree

1 file changed

+46
-20
lines changed

1 file changed

+46
-20
lines changed

src/Accounts/Accounts/help/Get-AzEnvironment.md

Lines changed: 46 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,45 @@ The Get-AzEnvironment cmdlet gets endpoints and metadata for an instance of Azur
2121

2222
## EXAMPLES
2323

24-
### Example 1: Getting the AzureCloud environment
24+
### Example 1: Getting all Azure environments
25+
```powershell
26+
PS C:\> Get-AzEnvironment
27+
28+
Name Resource Manager Url ActiveDirectory Authority Type
29+
---- -------------------- ------------------------- ----
30+
AzureUSGovernment https://management.usgovcloudapi.net/ https://login.microsoftonline.us/ Built-in
31+
AzureGermanCloud https://management.microsoftazure.de/ https://login.microsoftonline.de/ Built-in
32+
AzureCloud https://management.azure.com/ https://login.microsoftonline.com/ Built-in
33+
AzureChinaCloud https://management.chinacloudapi.cn/ https://login.chinacloudapi.cn/ Built-in
2534
```
26-
PS C:\> Get-AzEnvironment AzureCloud
2735

28-
Name Resource Manager Url ActiveDirectory Authority
29-
---- -------------------- -------------------------
30-
AzureCloud https://management.azure.com/ https://login.microsoftonline.com/
36+
This example shows how to get the endpoints and metadata for the AzureCloud (default) environment.
37+
38+
### Example 2: Getting the AzureCloud environment
39+
```powershell
40+
PS C:\> Get-AzEnvironment -Name AzureCloud
41+
42+
Name Resource Manager Url ActiveDirectory Authority Type
43+
---- -------------------- ------------------------- ----
44+
AzureCloud https://management.azure.com/ https://login.microsoftonline.com/ Built-in
3145
```
3246

3347
This example shows how to get the endpoints and metadata for the AzureCloud (default) environment.
3448

35-
### Example 2: Getting the AzureChinaCloud environment
36-
```
37-
PS C:\> Get-AzEnvironment AzureChinaCloud | Format-List
49+
### Example 3: Getting the AzureChinaCloud environment
50+
```powershell
51+
PS C:\> Get-AzEnvironment -Name AzureChinaCloud | Format-List
3852
3953
Name : AzureChinaCloud
54+
Type : Built-in
4055
EnableAdfsAuthentication : False
56+
OnPremise : False
4157
ActiveDirectoryServiceEndpointResourceId : https://management.core.chinacloudapi.cn/
42-
AdTenant :
43-
GalleryUrl : https://gallery.chinacloudapi.cn/
44-
ManagementPortalUrl : http://go.microsoft.com/fwlink/?LinkId=301902
58+
AdTenant : Common
59+
GalleryUrl : https://gallery.azure.com/
60+
ManagementPortalUrl : https://go.microsoft.com/fwlink/?LinkId=301902
4561
ServiceManagementUrl : https://management.core.chinacloudapi.cn/
46-
PublishSettingsFileUrl : http://go.microsoft.com/fwlink/?LinkID=301776
62+
PublishSettingsFileUrl : https://go.microsoft.com/fwlink/?LinkID=301776
4763
ResourceManagerUrl : https://management.chinacloudapi.cn/
4864
SqlDatabaseDnsSuffix : .database.chinacloudapi.cn
4965
StorageEndpointSuffix : core.chinacloudapi.cn
@@ -52,20 +68,30 @@ GraphUrl : https://graph.chinacloudapi.
5268
GraphEndpointResourceId : https://graph.chinacloudapi.cn/
5369
TrafficManagerDnsSuffix : trafficmanager.cn
5470
AzureKeyVaultDnsSuffix : vault.azure.cn
55-
AzureDataLakeStoreFileSystemEndpointSuffix :
56-
AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix :
71+
DataLakeEndpointResourceId :
72+
AzureDataLakeStoreFileSystemEndpointSuffix :
73+
AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix :
5774
AzureKeyVaultServiceEndpointResourceId : https://vault.azure.cn
75+
ContainerRegistryEndpointSuffix : azurecr.cn
76+
AzureOperationalInsightsEndpointResourceId :
77+
AzureOperationalInsightsEndpoint :
78+
AzureAnalysisServicesEndpointSuffix : asazure.chinacloudapi.cn
79+
AnalysisServicesEndpointResourceId : https://region.asazure.chinacloudapi.cn
80+
AzureAttestationServiceEndpointSuffix :
81+
AzureAttestationServiceEndpointResourceId :
82+
AzureSynapseAnalyticsEndpointSuffix : dev.azuresynapse.azure.cn
83+
AzureSynapseAnalyticsEndpointResourceId : https://dev.azuresynapse.azure.cn
5884
```
5985

6086
This example shows how to get the endpoints and metadata for the AzureChinaCloud environment.
6187

62-
### Example 3: Getting the AzureUSGovernment environment
63-
```
64-
PS C:\> Get-AzEnvironment AzureUSGovernment
88+
### Example 4: Getting the AzureUSGovernment environment
89+
```powershell
90+
PS C:\> Get-AzEnvironment -Name AzureUSGovernment
6591
66-
Name Resource Manager Url ActiveDirectory Authority
67-
---- -------------------- -------------------------
68-
AzureUSGovernment https://management.usgovcloudapi.net/ https://login.microsoftonline.us/
92+
Name Resource Manager Url ActiveDirectory Authority Type
93+
---- -------------------- ------------------------- ----
94+
AzureUSGovernment https://management.usgovcloudapi.net/ https://login.microsoftonline.us/ Built-in
6995
```
7096

7197
This example shows how to get the endpoints and metadata for the AzureUSGovernment environment.

0 commit comments

Comments
 (0)