Microsoft. MachineLearningServices workspaces/outboundRules 2023-04-01-preview

تعريف مورد Bicep

يمكن نشر نوع مورد مساحات العمل/outboundRules مع العمليات التي تستهدف:

  • مجموعات الموارد - راجع أوامر نشر مجموعة الموارد

للحصول على قائمة بالخصائص التي تم تغييرها في كل إصدار من إصدارات واجهة برمجة التطبيقات، راجع سجل التغيير .

أمثلة الاستخدام

عينات Bicep

مثال أساسي لنشر قاعدة خروج شبكة FQDN لمساحة عمل التعلم الآلي من Microsoft Azure.

param resourceName string = 'acctest0001'
param location string = 'westus'

var kvBase = replace(baseName, '-', '')
var storageName = substring('sa${saBase}', 0, 24)
var keyVaultName = substring('kv${kvBase}', 0, 24)
var outboundName = '${resourceName}-outbound'
var workspaceName = '${resourceName}-mlw'
var baseName = toLower(resourceName)
var aiName = '${resourceName}-ai'
var saBase = replace(baseName, '-', '')

resource workspace 'Microsoft.MachineLearningServices/workspaces@2024-04-01' = {
  name: workspaceName
  location: location
  sku: {
    name: 'Basic'
  }
  kind: 'Default'
  properties: {
    applicationInsights: component.id
    keyVault: vault.id
    managedNetwork: {
      isolationMode: 'AllowOnlyApprovedOutbound'
    }
    publicNetworkAccess: 'Enabled'
    storageAccount: storageAccount.id
    v1LegacyMode: false
  }
}

resource outboundRule 'Microsoft.MachineLearningServices/workspaces/outboundRules@2024-04-01' = {
  name: outboundName
  parent: workspace
  properties: {
    category: 'UserDefined'
    destination: 'www.microsoft.com'
    type: 'FQDN'
  }
}

resource component 'Microsoft.Insights/components@2020-02-02' = {
  name: aiName
  location: location
  kind: 'web'
  properties: {
    Application_Type: 'web'
    DisableIpMasking: false
    DisableLocalAuth: false
    ForceCustomerStorageForProfiler: false
    RetentionInDays: 90
    SamplingPercentage: 100
    publicNetworkAccessForIngestion: 'Enabled'
    publicNetworkAccessForQuery: 'Enabled'
  }
}

resource storageAccount 'Microsoft.Storage/storageAccounts@2023-05-01' = {
  name: storageName
  location: location
  sku: {
    name: 'Standard_LRS'
  }
  kind: 'StorageV2'
  properties: {
    accessTier: 'Hot'
    allowBlobPublicAccess: true
    allowCrossTenantReplication: false
    allowSharedKeyAccess: true
    defaultToOAuthAuthentication: false
    dnsEndpointType: 'Standard'
    encryption: {
      keySource: 'Microsoft.Storage'
      services: {
        queue: {
          keyType: 'Service'
        }
        table: {
          keyType: 'Service'
        }
      }
    }
    isHnsEnabled: false
    isLocalUserEnabled: true
    isNfsV3Enabled: false
    isSftpEnabled: false
    minimumTlsVersion: 'TLS1_2'
    networkAcls: {
      bypass: 'AzureServices'
      defaultAction: 'Allow'
      ipRules: []
      resourceAccessRules: []
      virtualNetworkRules: []
    }
    publicNetworkAccess: 'Enabled'
    supportsHttpsTrafficOnly: true
  }
}

resource vault 'Microsoft.KeyVault/vaults@2023-02-01' = {
  name: keyVaultName
  location: location
  properties: {
    accessPolicies: []
    createMode: 'default'
    enablePurgeProtection: true
    enableRbacAuthorization: false
    enableSoftDelete: true
    enabledForDeployment: false
    enabledForDiskEncryption: false
    enabledForTemplateDeployment: false
    publicNetworkAccess: 'Enabled'
    sku: {
      family: 'A'
      name: 'standard'
    }
    tenantId: tenant().tenantId
  }
}

تنسيق المورد

لإنشاء مورد Microsoft.MachineLearningServices/workspaces/outboundRules، أضف Bicep التالي إلى القالب الخاص بك.

resource symbolicname 'Microsoft.MachineLearningServices/workspaces/outboundRules@2023-04-01-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    category: 'string'
    status: 'string'
    type: 'string'
    // For remaining properties, see OutboundRule objects
  }
}

عناصر OutboundRule

تعيين نوع الخاصية لتحديد نوع الكائن.

بالنسبة إلىFQDN ، استخدم:

{
  destination: 'string'
  type: 'FQDN'
}

بالنسبة PrivateEndpoint، استخدم:

{
  destination: {
    serviceResourceId: 'string'
    sparkEnabled: bool
    sparkStatus: 'string'
    subresourceTarget: 'string'
  }
  type: 'PrivateEndpoint'
}

بالنسبة ServiceTag، استخدم:

{
  destination: {
    portRanges: 'string'
    protocol: 'string'
    serviceTag: 'string'
  }
  type: 'ServiceTag'
}

قيم الخصائص

Microsoft.MachineLearningServices/workspaces/outboundRules

اسم وصف قيمة
اسم اسم المورد خيط

القيود:
النمط = ^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$ (مطلوب)
الوالد في Bicep، يمكنك تحديد المورد الأصل لمورد تابع. تحتاج فقط إلى إضافة هذه الخاصية عند الإعلان عن المورد التابع خارج المورد الأصل.

لمزيد من المعلومات، راجع مورد تابع خارج المورد الأصل.
اسم رمزي للمورد من النوع: مساحات عمل
خصائص قاعدة صادرة للشبكة المدارة لمساحة عمل التعلم الآلي. OutboundRule (مطلوب)

FqdnOutboundRule

اسم وصف قيمة
مقصد خيط
نوع نوع قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. 'FQDN' (مطلوب)

قواعد صادرة

اسم وصف قيمة
باب فئة قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. "مستحسن"
'مطلوب'
"معرف المستخدم"
حالة حالة قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. "نشط"
"غير نشط"
نوع قم بتعيين إلى "FQDN" للنوع FqdnOutboundRule. اضبط على "PrivateEndpoint" للنوع PrivateEndpointOutboundRule. اضبط على "ServiceTag" للنوع ServiceTagOutboundRule. "FQDN"
"نقطة النهاية الخاصة"
'ServiceTag' (مطلوب)

PrivateEndpointDestination

اسم وصف قيمة
serviceResourceId خيط
sparkEnabled قيمة منطقية
sparkStatus حالة قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. "نشط"
"غير نشط"
subresourceTarget خيط

PrivateEndpointOutboundRule

اسم وصف قيمة
مقصد وجهة نقطة النهاية الخاصة لقاعدة نقطة النهاية الخاصة الصادرة للشبكة المدارة لمساحة عمل التعلم الآلي. PrivateEndpointDestination
نوع نوع قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. "نقطة النهاية الخاصة" (مطلوب)

ServiceTagDestination

اسم وصف قيمة
portRanges خيط
بروتوكول خيط
علامة تعريف الخدمة خيط

ServiceTagOutboundRule

اسم وصف قيمة
مقصد وجهة علامة الخدمة لقاعدة صادرة لعلامة الخدمة للشبكة المدارة لمساحة عمل التعلم الآلي. ServiceTagDestination
نوع نوع قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. 'ServiceTag' (مطلوب)

تعريف مورد قالب ARM

يمكن نشر نوع مورد مساحات العمل/outboundRules مع العمليات التي تستهدف:

أمثلة الاستخدام

تنسيق المورد

لإنشاء مورد Microsoft.MachineLearningServices/workspaces/outboundRules، أضف JSON التالي إلى القالب الخاص بك.

{
  "type": "Microsoft.MachineLearningServices/workspaces/outboundRules",
  "apiVersion": "2023-04-01-preview",
  "name": "string",
  "properties": {
    "category": "string",
    "status": "string",
    "type": "string"
    // For remaining properties, see OutboundRule objects
  }
}

عناصر OutboundRule

تعيين نوع الخاصية لتحديد نوع الكائن.

بالنسبة إلىFQDN ، استخدم:

{
  "destination": "string",
  "type": "FQDN"
}

بالنسبة PrivateEndpoint، استخدم:

{
  "destination": {
    "serviceResourceId": "string",
    "sparkEnabled": "bool",
    "sparkStatus": "string",
    "subresourceTarget": "string"
  },
  "type": "PrivateEndpoint"
}

بالنسبة ServiceTag، استخدم:

{
  "destination": {
    "portRanges": "string",
    "protocol": "string",
    "serviceTag": "string"
  },
  "type": "ServiceTag"
}

قيم الخصائص

Microsoft.MachineLearningServices/workspaces/outboundRules

اسم وصف قيمة
apiVersion إصدار واجهة برمجة التطبيقات "معاينة 2023-04-01"
اسم اسم المورد خيط

القيود:
النمط = ^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$ (مطلوب)
خصائص قاعدة صادرة للشبكة المدارة لمساحة عمل التعلم الآلي. OutboundRule (مطلوب)
نوع نوع المورد "Microsoft.MachineLearningServices/workspaces/outboundRules"

FqdnOutboundRule

اسم وصف قيمة
مقصد خيط
نوع نوع قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. 'FQDN' (مطلوب)

قواعد صادرة

اسم وصف قيمة
باب فئة قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. "مستحسن"
'مطلوب'
"معرف المستخدم"
حالة حالة قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. "نشط"
"غير نشط"
نوع قم بتعيين إلى "FQDN" للنوع FqdnOutboundRule. اضبط على "PrivateEndpoint" للنوع PrivateEndpointOutboundRule. اضبط على "ServiceTag" للنوع ServiceTagOutboundRule. "FQDN"
"نقطة النهاية الخاصة"
'ServiceTag' (مطلوب)

PrivateEndpointDestination

اسم وصف قيمة
serviceResourceId خيط
sparkEnabled قيمة منطقية
sparkStatus حالة قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. "نشط"
"غير نشط"
subresourceTarget خيط

PrivateEndpointOutboundRule

اسم وصف قيمة
مقصد وجهة نقطة النهاية الخاصة لقاعدة نقطة النهاية الخاصة الصادرة للشبكة المدارة لمساحة عمل التعلم الآلي. PrivateEndpointDestination
نوع نوع قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. "نقطة النهاية الخاصة" (مطلوب)

ServiceTagDestination

اسم وصف قيمة
portRanges خيط
بروتوكول خيط
علامة تعريف الخدمة خيط

ServiceTagOutboundRule

اسم وصف قيمة
مقصد وجهة علامة الخدمة لقاعدة صادرة لعلامة الخدمة للشبكة المدارة لمساحة عمل التعلم الآلي. ServiceTagDestination
نوع نوع قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. 'ServiceTag' (مطلوب)

تعريف مورد Terraform (موفر AzAPI)

يمكن نشر نوع مورد مساحات العمل/outboundRules مع العمليات التي تستهدف:

  • مجموعات الموارد للحصول على قائمة بالخصائص المتغيرة في كل إصدار من واجهة برمجة التطبيقات، انظر سجل التغيير.

أمثلة الاستخدام

عينات Terraform

مثال أساسي لنشر قاعدة خروج شبكة FQDN لمساحة عمل التعلم الآلي من Microsoft Azure.

terraform {
  required_providers {
    azapi = {
      source = "Azure/azapi"
    }
  }
}

provider "azapi" {
  skip_provider_registration = false
}

variable "resource_name" {
  type    = string
  default = "acctest0001"
}

variable "location" {
  type    = string
  default = "westus"
}

data "azapi_client_config" "current" {}

locals {
  base_name      = lower(var.resource_name)
  sa_base        = replace(local.base_name, "-", "")
  kv_base        = replace(local.base_name, "-", "")
  storage_name   = substr("sa${local.sa_base}", 0, 24)
  key_vault_name = substr("kv${local.kv_base}", 0, 24)
  ai_name        = "${var.resource_name}-ai"
  workspace_name = "${var.resource_name}-mlw"
  outbound_name  = "${var.resource_name}-outbound"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

resource "azapi_resource" "component" {
  type      = "Microsoft.Insights/components@2020-02-02"
  parent_id = azapi_resource.resourceGroup.id
  name      = local.ai_name
  location  = var.location
  body = {
    kind = "web"
    properties = {
      Application_Type                = "web"
      DisableIpMasking                = false
      DisableLocalAuth                = false
      ForceCustomerStorageForProfiler = false
      RetentionInDays                 = 90
      SamplingPercentage              = 100
      publicNetworkAccessForIngestion = "Enabled"
      publicNetworkAccessForQuery     = "Enabled"
    }
  }
}

resource "azapi_resource" "vault" {
  type      = "Microsoft.KeyVault/vaults@2023-02-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = local.key_vault_name
  location  = var.location
  body = {
    properties = {
      accessPolicies               = []
      createMode                   = "default"
      enablePurgeProtection        = true
      enableRbacAuthorization      = false
      enableSoftDelete             = true
      enabledForDeployment         = false
      enabledForDiskEncryption     = false
      enabledForTemplateDeployment = false
      publicNetworkAccess          = "Enabled"
      sku = {
        family = "A"
        name   = "standard"
      }
      tenantId = data.azapi_client_config.current.tenant_id
    }
  }
}

resource "azapi_resource" "storageAccount" {
  type      = "Microsoft.Storage/storageAccounts@2023-05-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = local.storage_name
  location  = var.location
  body = {
    kind = "StorageV2"
    properties = {
      accessTier                   = "Hot"
      allowBlobPublicAccess        = true
      allowCrossTenantReplication  = false
      allowSharedKeyAccess         = true
      defaultToOAuthAuthentication = false
      dnsEndpointType              = "Standard"
      encryption = {
        keySource = "Microsoft.Storage"
        services = {
          queue = {
            keyType = "Service"
          }
          table = {
            keyType = "Service"
          }
        }
      }
      isHnsEnabled       = false
      isLocalUserEnabled = true
      isNfsV3Enabled     = false
      isSftpEnabled      = false
      minimumTlsVersion  = "TLS1_2"
      networkAcls = {
        bypass              = "AzureServices"
        defaultAction       = "Allow"
        ipRules             = []
        resourceAccessRules = []
        virtualNetworkRules = []
      }
      publicNetworkAccess      = "Enabled"
      supportsHttpsTrafficOnly = true
    }
    sku = {
      name = "Standard_LRS"
    }
  }
}


resource "azapi_resource" "workspace" {
  type      = "Microsoft.MachineLearningServices/workspaces@2024-04-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = local.workspace_name
  location  = var.location
  identity {
    type         = "SystemAssigned"
    identity_ids = []
  }
  body = {
    kind = "Default"
    properties = {
      applicationInsights = azapi_resource.component.id
      keyVault            = azapi_resource.vault.id
      managedNetwork = {
        isolationMode = "AllowOnlyApprovedOutbound"
      }
      publicNetworkAccess = "Enabled"
      storageAccount      = azapi_resource.storageAccount.id
      v1LegacyMode        = false
    }
    sku = {
      name = "Basic"
    }
  }
}

resource "azapi_resource" "outboundRule" {
  type      = "Microsoft.MachineLearningServices/workspaces/outboundRules@2024-04-01"
  parent_id = azapi_resource.workspace.id
  name      = local.outbound_name
  body = {
    properties = {
      category    = "UserDefined"
      destination = "www.microsoft.com"
      type        = "FQDN"
    }
  }
}

تنسيق المورد

لإنشاء مورد Microsoft.MachineLearningServices/workspaces/outboundRules، أضف Terraform التالي إلى القالب الخاص بك.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.MachineLearningServices/workspaces/outboundRules@2023-04-01-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      category = "string"
      status = "string"
      type = "string"
      // For remaining properties, see OutboundRule objects
    }
  }
}

عناصر OutboundRule

تعيين نوع الخاصية لتحديد نوع الكائن.

بالنسبة إلىFQDN ، استخدم:

{
  destination = "string"
  type = "FQDN"
}

بالنسبة PrivateEndpoint، استخدم:

{
  destination = {
    serviceResourceId = "string"
    sparkEnabled = bool
    sparkStatus = "string"
    subresourceTarget = "string"
  }
  type = "PrivateEndpoint"
}

بالنسبة ServiceTag، استخدم:

{
  destination = {
    portRanges = "string"
    protocol = "string"
    serviceTag = "string"
  }
  type = "ServiceTag"
}

قيم الخصائص

Microsoft.MachineLearningServices/workspaces/outboundRules

اسم وصف قيمة
اسم اسم المورد خيط

القيود:
النمط = ^[a-zA-Z0-9][a-zA-Z0-9_-]{2,32}$ (مطلوب)
parent_id معرف المورد الأصل لهذا المورد. معرف المورد من النوع: مساحات عمل
خصائص قاعدة صادرة للشبكة المدارة لمساحة عمل التعلم الآلي. OutboundRule (مطلوب)
نوع نوع المورد "Microsoft.MachineLearningServices/workspaces/outboundRules@2023-04-01-preview"

FqdnOutboundRule

اسم وصف قيمة
مقصد خيط
نوع نوع قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. 'FQDN' (مطلوب)

قواعد صادرة

اسم وصف قيمة
باب فئة قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. "مستحسن"
'مطلوب'
"معرف المستخدم"
حالة حالة قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. "نشط"
"غير نشط"
نوع قم بتعيين إلى "FQDN" للنوع FqdnOutboundRule. اضبط على "PrivateEndpoint" للنوع PrivateEndpointOutboundRule. اضبط على "ServiceTag" للنوع ServiceTagOutboundRule. "FQDN"
"نقطة النهاية الخاصة"
'ServiceTag' (مطلوب)

PrivateEndpointDestination

اسم وصف قيمة
serviceResourceId خيط
sparkEnabled قيمة منطقية
sparkStatus حالة قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. "نشط"
"غير نشط"
subresourceTarget خيط

PrivateEndpointOutboundRule

اسم وصف قيمة
مقصد وجهة نقطة النهاية الخاصة لقاعدة نقطة النهاية الخاصة الصادرة للشبكة المدارة لمساحة عمل التعلم الآلي. PrivateEndpointDestination
نوع نوع قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. "نقطة النهاية الخاصة" (مطلوب)

ServiceTagDestination

اسم وصف قيمة
portRanges خيط
بروتوكول خيط
علامة تعريف الخدمة خيط

ServiceTagOutboundRule

اسم وصف قيمة
مقصد وجهة علامة الخدمة لقاعدة صادرة لعلامة الخدمة للشبكة المدارة لمساحة عمل التعلم الآلي. ServiceTagDestination
نوع نوع قاعدة صادرة لشبكة مدارة لمساحة عمل التعلم الآلي. 'ServiceTag' (مطلوب)