Get-AzPostgreSqlFlexibleServerConnectionString
	
	
	语法
	
		Get (默认值)
	
	
		Get-AzPostgreSqlFlexibleServerConnectionString
    -Client <String>
    -Name <String>
    -ResourceGroupName <String>
    [-SubscriptionId <String>]
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]
	 
	
		GetViaIdentity
	
	
		Get-AzPostgreSqlFlexibleServerConnectionString
    -Client <String>
    -InputObject <IServerAutoGenerated>
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]
	 
	说明
	
	示例
	示例 1:按名称获取连接字符串
	
		Get-AzPostgreSqlFlexibleServerConnectionString -Client ADO.NET -ResourceGroupName PowershellPostgreSqlTest -Name postgresql-test
Server=postgresql-test.postgres.database.azure.com;Database={your_database};Port=5432;User Id=adminuser;Password={your_password};
此 cmdlet 按服务器名称显示客户端的连接字符串。
	 
	示例 2:按标识获取 PostgreSql 服务器连接字符串
	
		Get-AzPostgreSqlFlexibleServer -ResourceGroupName PostgreSqlTestRG -ServerName PostgreSqlTestServer | Get-AzPostgreSqlFlexibleServerConnectionString -Client PHP
host=postgresqltestserver.postgres.database.azure.com port=5432 dbname={your_database} user=pwsh password={your_password} sslmode=require
此 cmdlet 按标识获取 PostgreSql 服务器连接字符串。
	 
	参数
		-Client
		客户端连接提供程序。
		参数属性
		
				| 类型: | String
 | 
				| 默认值: | None | 
				| 支持通配符: | False | 
				| 不显示: | False | 
		
		参数集
			
				
					(All) 
					
						
					
				
				
						| Position: | Named | 
						| 必需: | True | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
		-DefaultProfile
		用于与 Azure 通信的凭据、帐户、租户和订阅。
		参数属性
		
				| 类型: | PSObject
 | 
				| 默认值: | None | 
				| 支持通配符: | False | 
				| 不显示: | False | 
				| 别名: | AzureRMContext, AzureCredential | 
		
		参数集
			
				
					(All) 
					
						
					
				
				
						| Position: | Named | 
						| 必需: | False | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
		
		要构造的连接字符串的服务器,请参阅 INPUTOBJECT 属性的 NOTES 部分并创建哈希表。
		
		
		
			
				
					GetViaIdentity 
					
						
					
				
				
						| Position: | Named | 
						| 必需: | True | 
						| 来自管道的值: | True | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
		-Name
		服务器的名称。
		参数属性
		
				| 类型: | String
 | 
				| 默认值: | None | 
				| 支持通配符: | False | 
				| 不显示: | False | 
				| 别名: | 服务器名称 | 
		
		参数集
			
				
					Get 
					
						
					
				
				
						| Position: | Named | 
						| 必需: | True | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
		-ResourceGroupName
		包含资源的资源组的名称,可以从 Azure 资源管理器 API 或门户获取此值。
		参数属性
		
				| 类型: | String
 | 
				| 默认值: | None | 
				| 支持通配符: | False | 
				| 不显示: | False | 
		
		参数集
			
				
					Get 
					
						
					
				
				
						| Position: | Named | 
						| 必需: | True | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
		-SubscriptionId
		标识 Azure 订阅的订阅 ID。
		参数属性
		
				| 类型: | String
 | 
				| 默认值: | (Get-AzContext).Subscription.Id | 
				| 支持通配符: | False | 
				| 不显示: | False | 
		
		参数集
			
				
					Get 
					
						
					
				
				
						| Position: | Named | 
						| 必需: | False | 
						| 来自管道的值: | False | 
						| 来自管道的值(按属性名称): | False | 
						| 来自剩余参数的值: | False | 
				
			 
		CommonParameters
		
			此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。
		 
	
			
			
				
			
	输出