你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzPurviewAzureMySqlDataSourceObject
为 AzureMySqlDataSource 创建内存中对象。
语法
New-AzPurviewAzureMySqlDataSourceObject
-Kind <DataSourceType>
[-CollectionReferenceName <String>]
[-CollectionType <String>]
[-Location <String>]
[-Port <Int32>]
[-ResourceGroup <String>]
[-ResourceName <String>]
[-ServerEndpoint <String>]
[-SubscriptionId <String>]
[<CommonParameters>]
说明
为 AzureMySqlDataSource 创建内存中对象。
示例
示例 1:创建 Azure MySQL 数据源对象
New-AzPurviewAzureMySqlDataSourceObject -Kind 'AzureMySql' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -Port 3306 -ServerEndpoint 'nause.mysql.database.azure.com'
CollectionLastModifiedAt :
CollectionReferenceName : parv-brs-2
CollectionType : CollectionReference
CreatedAt :
Id :
Kind : AzureMySql
LastModifiedAt :
Location :
Name :
Port : 3306
ResourceGroup :
ResourceName :
Scan :
ServerEndpoint : nause.mysql.database.azure.com
SubscriptionId :
创建 Azure MySQL 数据源对象
参数
-CollectionReferenceName
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-CollectionType
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Kind
类型: | DataSourceType |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Location
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Port
类型: | Int32 |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroup
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ResourceName
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ServerEndpoint
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
输出
AzureMySqlDataSource