Dela via


Microsoft.DataMigration services/projects/files 2018-07-15-preview

Bicep resource definition

The services/projects/files resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.DataMigration/services/projects/files resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.DataMigration/services/projects/files@2018-07-15-preview' = {
  parent: resourceSymbolicName
  etag: 'string'
  name: 'string'
  properties: {
    extension: 'string'
    filePath: 'string'
    mediaType: 'string'
  }
}

Property Values

Microsoft.DataMigration/services/projects/files

Name Description Value
etag HTTP strong entity tag value. This is ignored if submitted. string
name The resource name string (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: services/projects
properties Custom file properties ProjectFileProperties

ProjectFileProperties

Name Description Value
extension Optional File extension. If submitted it should not have a leading period and must match the extension from filePath. string
filePath Relative path of this file resource. This property can be set when creating or updating the file resource. string
mediaType File content type. This property can be modified to reflect the file content type. string

ARM template resource definition

The services/projects/files resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.DataMigration/services/projects/files resource, add the following JSON to your template.

{
  "type": "Microsoft.DataMigration/services/projects/files",
  "apiVersion": "2018-07-15-preview",
  "name": "string",
  "etag": "string",
  "properties": {
    "extension": "string",
    "filePath": "string",
    "mediaType": "string"
  }
}

Property Values

Microsoft.DataMigration/services/projects/files

Name Description Value
apiVersion The api version '2018-07-15-preview'
etag HTTP strong entity tag value. This is ignored if submitted. string
name The resource name string (required)
properties Custom file properties ProjectFileProperties
type The resource type 'Microsoft.DataMigration/services/projects/files'

ProjectFileProperties

Name Description Value
extension Optional File extension. If submitted it should not have a leading period and must match the extension from filePath. string
filePath Relative path of this file resource. This property can be set when creating or updating the file resource. string
mediaType File content type. This property can be modified to reflect the file content type. string

Användningsexempel

Terraform (AzAPI provider) resource definition

The services/projects/files resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.DataMigration/services/projects/files resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DataMigration/services/projects/files@2018-07-15-preview"
  name = "string"
  body = {
    etag = "string"
    properties = {
      extension = "string"
      filePath = "string"
      mediaType = "string"
    }
  }
}

Property Values

Microsoft.DataMigration/services/projects/files

Name Description Value
etag HTTP strong entity tag value. This is ignored if submitted. string
name The resource name string (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: services/projects
properties Custom file properties ProjectFileProperties
type The resource type "Microsoft.DataMigration/services/projects/files@2018-07-15-preview"

ProjectFileProperties

Name Description Value
extension Optional File extension. If submitted it should not have a leading period and must match the extension from filePath. string
filePath Relative path of this file resource. This property can be set when creating or updating the file resource. string
mediaType File content type. This property can be modified to reflect the file content type. string