你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Microsoft.MachineLearningServices workspaces/connections 2022-10-01
- 最新
- 2023-10-01
- 2023-08-01-preview
- 2023-06-01-preview
- 2023-04-01
- 2023-04-01-preview
- 2023-02-01-preview
- 2022-12-01-preview
- 2022-10-01
- 2022-10-01-preview
- 2022-06-01-preview
- 2022-05-01
- 2022-02-01-preview
- 2022-01-01-preview
- 2021-07-01
- 2021-04-01
- 2021-03-01-preview
- 2021-01-01
- 2020-09-01-preview
- 2020-08-01
- 2020-06-01
Bicep 资源定义
可以使用面向以下操作部署工作区/连接资源类型:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.MachineLearningServices/workspaces/connections 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.MachineLearningServices/workspaces/connections@2022-10-01' = {
name: 'string'
parent: resourceSymbolicName
properties: {
category: 'string'
target: 'string'
value: 'string'
valueFormat: 'JSON'
authType: 'string'
// For remaining properties, see WorkspaceConnectionPropertiesV2 objects
}
}
WorkspaceConnectionPropertiesV2 对象
设置 authType 属性以指定对象的类型。
对于 ManagedIdentity,请使用:
authType: 'ManagedIdentity'
credentials: {
clientId: 'string'
resourceId: 'string'
}
对于 “无”,请使用:
authType: 'None'
对于 PAT,请使用:
authType: 'PAT'
credentials: {
pat: 'string'
}
对于 SAS,请使用:
authType: 'SAS'
credentials: {
sas: 'string'
}
对于 UsernamePassword,请使用:
authType: 'UsernamePassword'
credentials: {
password: 'string'
username: 'string'
}
属性值
workspaces/connections
名称 | 说明 | 值 |
---|---|---|
name | 资源名称 了解如何在 Bicep 中设置子资源的名称和类型。 |
字符串 (必需) |
父级 (parent) | 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。 有关详细信息,请参阅 父资源之外的子资源。 |
类型为的资源的符号名称: 工作区 |
properties | WorkspaceConnectionPropertiesV2 (所需的) |
WorkspaceConnectionPropertiesV2
名称 | 说明 | 值 |
---|---|---|
category | 连接的类别 | 'ContainerRegistry' 'Git' “PythonFeed” |
目标 | string | |
value | 工作区连接的值详细信息。 | 字符串 |
valueFormat | 工作区连接值的格式 | “JSON” |
authType | 设置对象类型 | ManagedIdentity 无 PAT SAS UsernamePassword (必需) |
ManagedIdentityAuthTypeWorkspaceConnectionProperties
名称 | 说明 | 值 |
---|---|---|
authType | 连接目标的身份验证类型 | “ManagedIdentity” (必需) |
凭据 | WorkspaceConnectionManagedIdentity |
WorkspaceConnectionManagedIdentity
名称 | 说明 | 值 |
---|---|---|
clientId | 字符串 | |
ResourceId | 字符串 |
NoneAuthTypeWorkspaceConnectionProperties
名称 | 说明 | 值 |
---|---|---|
authType | 连接目标的身份验证类型 | “None” (必需) |
PATAuthTypeWorkspaceConnectionProperties
名称 | 说明 | 值 |
---|---|---|
authType | 连接目标的身份验证类型 | “PAT” (必需的) |
凭据 | WorkspaceConnectionPersonalAccessToken |
WorkspaceConnectionPersonalAccessToken
名称 | 说明 | 值 |
---|---|---|
帕特 | string |
SASAuthTypeWorkspaceConnectionProperties
名称 | 说明 | 值 |
---|---|---|
authType | 连接目标的身份验证类型 | “SAS” (必需) |
凭据 | WorkspaceConnectionSharedAccessSignature |
WorkspaceConnectionSharedAccessSignature
名称 | 说明 | 值 |
---|---|---|
Sas | 字符串 |
UsernamePasswordAuthTypeWorkspaceConnectionPropertie...
名称 | 说明 | 值 |
---|---|---|
authType | 连接目标的身份验证类型 | “UsernamePassword” (必需) |
凭据 | WorkspaceConnectionUsernamePassword |
WorkspaceConnectionUsernamePassword
名称 | 说明 | 值 |
---|---|---|
password | string | |
username | string |
ARM 模板资源定义
工作区/连接资源类型可以使用以下目标操作进行部署:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中更改的属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.MachineLearningServices/workspaces/connections 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.MachineLearningServices/workspaces/connections",
"apiVersion": "2022-10-01",
"name": "string",
"properties": {
"category": "string",
"target": "string",
"value": "string",
"valueFormat": "JSON",
"authType": "string"
// For remaining properties, see WorkspaceConnectionPropertiesV2 objects
}
}
WorkspaceConnectionPropertiesV2 对象
设置 authType 属性以指定对象的类型。
对于 ManagedIdentity,请使用:
"authType": "ManagedIdentity",
"credentials": {
"clientId": "string",
"resourceId": "string"
}
对于 “无”,请使用:
"authType": "None"
对于 PAT,请使用:
"authType": "PAT",
"credentials": {
"pat": "string"
}
对于 SAS,请使用:
"authType": "SAS",
"credentials": {
"sas": "string"
}
对于 UsernamePassword,请使用:
"authType": "UsernamePassword",
"credentials": {
"password": "string",
"username": "string"
}
属性值
workspaces/connections
名称 | 说明 | Value |
---|---|---|
type | 资源类型 | “Microsoft.MachineLearningServices/workspaces/connections” |
apiVersion | 资源 API 版本 | '2022-10-01' |
name | 资源名称 了解如何在 JSON ARM 模板中为子资源设置名称和类型。 |
字符串 (必需) |
properties | WorkspaceConnectionPropertiesV2 (必需) |
WorkspaceConnectionPropertiesV2
名称 | 说明 | 值 |
---|---|---|
category | 连接的类别 | “ContainerRegistry” “Git” “PythonFeed” |
目标 | string | |
value | 工作区连接的值详细信息。 | 字符串 |
valueFormat | 工作区连接值的格式 | “JSON” |
authType | 设置对象类型 | ManagedIdentity 无 PAT SAS UsernamePassword (必需) |
ManagedIdentityAuthTypeWorkspaceConnectionProperties
名称 | 说明 | 值 |
---|---|---|
authType | 连接目标的身份验证类型 | “ManagedIdentity” (必需) |
凭据 | WorkspaceConnectionManagedIdentity |
WorkspaceConnectionManagedIdentity
名称 | 说明 | 值 |
---|---|---|
clientId | 字符串 | |
ResourceId | 字符串 |
NoneAuthTypeWorkspaceConnectionProperties
名称 | 说明 | 值 |
---|---|---|
authType | 连接目标的身份验证类型 | “None” (必需) |
PATAuthTypeWorkspaceConnectionProperties
名称 | 说明 | 值 |
---|---|---|
authType | 连接目标的身份验证类型 | 需要“PAT” () |
凭据 | WorkspaceConnectionPersonalAccessToken |
WorkspaceConnectionPersonalAccessToken
名称 | 说明 | 值 |
---|---|---|
帕特 | 字符串 |
SASAuthTypeWorkspaceConnectionProperties
名称 | 说明 | 值 |
---|---|---|
authType | 连接目标的身份验证类型 | 需要“SAS” () |
凭据 | WorkspaceConnectionSharedAccessSignature |
WorkspaceConnectionSharedAccessSignature
名称 | 说明 | 值 |
---|---|---|
Sas | string |
UsernamePasswordAuthTypeWorkspaceConnectionPropertie...
名称 | 说明 | 值 |
---|---|---|
authType | 连接目标的身份验证类型 | “UsernamePassword” (必需) |
凭据 | WorkspaceConnectionUsernamePassword |
WorkspaceConnectionUsernamePassword
名称 | 说明 | 值 |
---|---|---|
password | string | |
username | string |
Terraform (AzAPI 提供程序) 资源定义
可以使用面向以下操作部署工作区/连接资源类型:
- 资源组
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.MachineLearningServices/workspaces/connections 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.MachineLearningServices/workspaces/connections@2022-10-01"
name = "string"
parent_id = "string"
body = jsonencode({
properties = {
category = "string"
target = "string"
value = "string"
valueFormat = "JSON"
authType = "string"
// For remaining properties, see WorkspaceConnectionPropertiesV2 objects
}
})
}
WorkspaceConnectionPropertiesV2 对象
设置 authType 属性以指定对象的类型。
对于 ManagedIdentity,请使用:
authType = "ManagedIdentity"
credentials = {
clientId = "string"
resourceId = "string"
}
对于 “无”,请使用:
authType = "None"
对于 PAT,请使用:
authType = "PAT"
credentials = {
pat = "string"
}
对于 SAS,请使用:
authType = "SAS"
credentials = {
sas = "string"
}
对于 UsernamePassword,请使用:
authType = "UsernamePassword"
credentials = {
password = "string"
username = "string"
}
属性值
workspaces/connections
名称 | 说明 | Value |
---|---|---|
type | 资源类型 | “Microsoft.MachineLearningServices/workspaces/connections@2022-10-01” |
name | 资源名称 | 字符串 (必需) |
parent_id | 此资源的父资源的 ID。 | 类型为的资源的 ID: 工作区 |
properties | WorkspaceConnectionPropertiesV2 (所需的) |
WorkspaceConnectionPropertiesV2
名称 | 说明 | 值 |
---|---|---|
category | 连接的类别 | “ContainerRegistry” “Git” “PythonFeed” |
目标 | string | |
value | 工作区连接的值详细信息。 | 字符串 |
valueFormat | 工作区连接值的格式 | “JSON” |
authType | 设置对象类型 | ManagedIdentity 无 PAT SAS UsernamePassword (必需) |
ManagedIdentityAuthTypeWorkspaceConnectionProperties
名称 | 说明 | 值 |
---|---|---|
authType | 连接目标的身份验证类型 | 需要“ManagedIdentity” () |
凭据 | WorkspaceConnectionManagedIdentity |
WorkspaceConnectionManagedIdentity
名称 | 说明 | 值 |
---|---|---|
clientId | 字符串 | |
ResourceId | 字符串 |
NoneAuthTypeWorkspaceConnectionProperties
名称 | 说明 | 值 |
---|---|---|
authType | 连接目标的身份验证类型 | “None” (必需) |
PATAuthTypeWorkspaceConnectionProperties
名称 | 说明 | 值 |
---|---|---|
authType | 连接目标的身份验证类型 | 需要“PAT” () |
凭据 | WorkspaceConnectionPersonalAccessToken |
WorkspaceConnectionPersonalAccessToken
名称 | 说明 | 值 |
---|---|---|
帕特 | 字符串 |
SASAuthTypeWorkspaceConnectionProperties
名称 | 说明 | 值 |
---|---|---|
authType | 连接目标的身份验证类型 | 需要“SAS” () |
凭据 | WorkspaceConnectionSharedAccessSignature |
WorkspaceConnectionSharedAccessSignature
名称 | 说明 | 值 |
---|---|---|
Sas | 字符串 |
UsernamePasswordAuthTypeWorkspaceConnectionPropertie...
名称 | 说明 | 值 |
---|---|---|
authType | 连接目标的身份验证类型 | “UsernamePassword” (必需) |
凭据 | WorkspaceConnectionUsernamePassword |
WorkspaceConnectionUsernamePassword
名称 | 说明 | 值 |
---|---|---|
password | string | |
username | 字符串 |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈