1. Packages
  2. Azure Native v2
  3. API Docs
  4. compute
  5. DiskAccess
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.compute.DiskAccess

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

disk access resource. Azure REST API version: 2022-07-02. Prior API version in Azure Native 1.x: 2020-12-01.

Other available API versions: 2023-01-02, 2023-04-02, 2023-10-02, 2024-03-02.

Example Usage

Create a disk access resource.

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var diskAccess = new AzureNative.Compute.DiskAccess("diskAccess", new()
    {
        DiskAccessName = "myDiskAccess",
        Location = "West US",
        ResourceGroupName = "myResourceGroup",
    });

});
Copy
package main

import (
	compute "github.com/pulumi/pulumi-azure-native-sdk/compute/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := compute.NewDiskAccess(ctx, "diskAccess", &compute.DiskAccessArgs{
			DiskAccessName:    pulumi.String("myDiskAccess"),
			Location:          pulumi.String("West US"),
			ResourceGroupName: pulumi.String("myResourceGroup"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.compute.DiskAccess;
import com.pulumi.azurenative.compute.DiskAccessArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var diskAccess = new DiskAccess("diskAccess", DiskAccessArgs.builder()
            .diskAccessName("myDiskAccess")
            .location("West US")
            .resourceGroupName("myResourceGroup")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const diskAccess = new azure_native.compute.DiskAccess("diskAccess", {
    diskAccessName: "myDiskAccess",
    location: "West US",
    resourceGroupName: "myResourceGroup",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

disk_access = azure_native.compute.DiskAccess("diskAccess",
    disk_access_name="myDiskAccess",
    location="West US",
    resource_group_name="myResourceGroup")
Copy
resources:
  diskAccess:
    type: azure-native:compute:DiskAccess
    properties:
      diskAccessName: myDiskAccess
      location: West US
      resourceGroupName: myResourceGroup
Copy

Create DiskAccess Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new DiskAccess(name: string, args: DiskAccessArgs, opts?: CustomResourceOptions);
@overload
def DiskAccess(resource_name: str,
               args: DiskAccessArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def DiskAccess(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               resource_group_name: Optional[str] = None,
               disk_access_name: Optional[str] = None,
               extended_location: Optional[ExtendedLocationArgs] = None,
               location: Optional[str] = None,
               tags: Optional[Mapping[str, str]] = None)
func NewDiskAccess(ctx *Context, name string, args DiskAccessArgs, opts ...ResourceOption) (*DiskAccess, error)
public DiskAccess(string name, DiskAccessArgs args, CustomResourceOptions? opts = null)
public DiskAccess(String name, DiskAccessArgs args)
public DiskAccess(String name, DiskAccessArgs args, CustomResourceOptions options)
type: azure-native:compute:DiskAccess
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DiskAccessArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DiskAccessArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DiskAccessArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DiskAccessArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DiskAccessArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var diskAccessResource = new AzureNative.Compute.DiskAccess("diskAccessResource", new()
{
    ResourceGroupName = "string",
    DiskAccessName = "string",
    ExtendedLocation = 
    {
        { "name", "string" },
        { "type", "string" },
    },
    Location = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := compute.NewDiskAccess(ctx, "diskAccessResource", &compute.DiskAccessArgs{
	ResourceGroupName: "string",
	DiskAccessName:    "string",
	ExtendedLocation: map[string]interface{}{
		"name": "string",
		"type": "string",
	},
	Location: "string",
	Tags: map[string]interface{}{
		"string": "string",
	},
})
Copy
var diskAccessResource = new DiskAccess("diskAccessResource", DiskAccessArgs.builder()
    .resourceGroupName("string")
    .diskAccessName("string")
    .extendedLocation(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .location("string")
    .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
Copy
disk_access_resource = azure_native.compute.DiskAccess("diskAccessResource",
    resource_group_name=string,
    disk_access_name=string,
    extended_location={
        name: string,
        type: string,
    },
    location=string,
    tags={
        string: string,
    })
Copy
const diskAccessResource = new azure_native.compute.DiskAccess("diskAccessResource", {
    resourceGroupName: "string",
    diskAccessName: "string",
    extendedLocation: {
        name: "string",
        type: "string",
    },
    location: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:compute:DiskAccess
properties:
    diskAccessName: string
    extendedLocation:
        name: string
        type: string
    location: string
    resourceGroupName: string
    tags:
        string: string
Copy

DiskAccess Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The DiskAccess resource accepts the following input properties:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
DiskAccessName Changes to this property will trigger replacement. string
The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
ExtendedLocation Pulumi.AzureNative.Compute.Inputs.ExtendedLocation
The extended location where the disk access will be created. Extended location cannot be changed.
Location string
Resource location
Tags Dictionary<string, string>
Resource tags
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
DiskAccessName Changes to this property will trigger replacement. string
The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
ExtendedLocation ExtendedLocationArgs
The extended location where the disk access will be created. Extended location cannot be changed.
Location string
Resource location
Tags map[string]string
Resource tags
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
diskAccessName Changes to this property will trigger replacement. String
The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
extendedLocation ExtendedLocation
The extended location where the disk access will be created. Extended location cannot be changed.
location String
Resource location
tags Map<String,String>
Resource tags
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
diskAccessName Changes to this property will trigger replacement. string
The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
extendedLocation ExtendedLocation
The extended location where the disk access will be created. Extended location cannot be changed.
location string
Resource location
tags {[key: string]: string}
Resource tags
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
disk_access_name Changes to this property will trigger replacement. str
The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
extended_location ExtendedLocationArgs
The extended location where the disk access will be created. Extended location cannot be changed.
location str
Resource location
tags Mapping[str, str]
Resource tags
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
diskAccessName Changes to this property will trigger replacement. String
The name of the disk access resource that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.
extendedLocation Property Map
The extended location where the disk access will be created. Extended location cannot be changed.
location String
Resource location
tags Map<String>
Resource tags

Outputs

All input properties are implicitly available as output properties. Additionally, the DiskAccess resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name
PrivateEndpointConnections List<Pulumi.AzureNative.Compute.Outputs.PrivateEndpointConnectionResponse>
A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.
ProvisioningState string
The disk access resource provisioning state.
TimeCreated string
The time when the disk access was created.
Type string
Resource type
Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name
PrivateEndpointConnections []PrivateEndpointConnectionResponse
A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.
ProvisioningState string
The disk access resource provisioning state.
TimeCreated string
The time when the disk access was created.
Type string
Resource type
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name
privateEndpointConnections List<PrivateEndpointConnectionResponse>
A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.
provisioningState String
The disk access resource provisioning state.
timeCreated String
The time when the disk access was created.
type String
Resource type
id string
The provider-assigned unique ID for this managed resource.
name string
Resource name
privateEndpointConnections PrivateEndpointConnectionResponse[]
A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.
provisioningState string
The disk access resource provisioning state.
timeCreated string
The time when the disk access was created.
type string
Resource type
id str
The provider-assigned unique ID for this managed resource.
name str
Resource name
private_endpoint_connections Sequence[PrivateEndpointConnectionResponse]
A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.
provisioning_state str
The disk access resource provisioning state.
time_created str
The time when the disk access was created.
type str
Resource type
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name
privateEndpointConnections List<Property Map>
A readonly collection of private endpoint connections created on the disk. Currently only one endpoint connection is supported.
provisioningState String
The disk access resource provisioning state.
timeCreated String
The time when the disk access was created.
type String
Resource type

Supporting Types

ExtendedLocation
, ExtendedLocationArgs

Name string
The name of the extended location.
Type string | Pulumi.AzureNative.Compute.ExtendedLocationTypes
The type of the extended location.
Name string
The name of the extended location.
Type string | ExtendedLocationTypes
The type of the extended location.
name String
The name of the extended location.
type String | ExtendedLocationTypes
The type of the extended location.
name string
The name of the extended location.
type string | ExtendedLocationTypes
The type of the extended location.
name str
The name of the extended location.
type str | ExtendedLocationTypes
The type of the extended location.
name String
The name of the extended location.
type String | "EdgeZone"
The type of the extended location.

ExtendedLocationResponse
, ExtendedLocationResponseArgs

Name string
The name of the extended location.
Type string
The type of the extended location.
Name string
The name of the extended location.
Type string
The type of the extended location.
name String
The name of the extended location.
type String
The type of the extended location.
name string
The name of the extended location.
type string
The type of the extended location.
name str
The name of the extended location.
type str
The type of the extended location.
name String
The name of the extended location.
type String
The type of the extended location.

ExtendedLocationTypes
, ExtendedLocationTypesArgs

EdgeZone
EdgeZone
ExtendedLocationTypesEdgeZone
EdgeZone
EdgeZone
EdgeZone
EdgeZone
EdgeZone
EDGE_ZONE
EdgeZone
"EdgeZone"
EdgeZone

PrivateEndpointConnectionResponse
, PrivateEndpointConnectionResponseArgs

Id This property is required. string
private endpoint connection Id
Name This property is required. string
private endpoint connection name
PrivateEndpoint This property is required. Pulumi.AzureNative.Compute.Inputs.PrivateEndpointResponse
The resource of private end point.
PrivateLinkServiceConnectionState This property is required. Pulumi.AzureNative.Compute.Inputs.PrivateLinkServiceConnectionStateResponse
A collection of information about the state of the connection between DiskAccess and Virtual Network.
ProvisioningState This property is required. string
The provisioning state of the private endpoint connection resource.
Type This property is required. string
private endpoint connection type
Id This property is required. string
private endpoint connection Id
Name This property is required. string
private endpoint connection name
PrivateEndpoint This property is required. PrivateEndpointResponse
The resource of private end point.
PrivateLinkServiceConnectionState This property is required. PrivateLinkServiceConnectionStateResponse
A collection of information about the state of the connection between DiskAccess and Virtual Network.
ProvisioningState This property is required. string
The provisioning state of the private endpoint connection resource.
Type This property is required. string
private endpoint connection type
id This property is required. String
private endpoint connection Id
name This property is required. String
private endpoint connection name
privateEndpoint This property is required. PrivateEndpointResponse
The resource of private end point.
privateLinkServiceConnectionState This property is required. PrivateLinkServiceConnectionStateResponse
A collection of information about the state of the connection between DiskAccess and Virtual Network.
provisioningState This property is required. String
The provisioning state of the private endpoint connection resource.
type This property is required. String
private endpoint connection type
id This property is required. string
private endpoint connection Id
name This property is required. string
private endpoint connection name
privateEndpoint This property is required. PrivateEndpointResponse
The resource of private end point.
privateLinkServiceConnectionState This property is required. PrivateLinkServiceConnectionStateResponse
A collection of information about the state of the connection between DiskAccess and Virtual Network.
provisioningState This property is required. string
The provisioning state of the private endpoint connection resource.
type This property is required. string
private endpoint connection type
id This property is required. str
private endpoint connection Id
name This property is required. str
private endpoint connection name
private_endpoint This property is required. PrivateEndpointResponse
The resource of private end point.
private_link_service_connection_state This property is required. PrivateLinkServiceConnectionStateResponse
A collection of information about the state of the connection between DiskAccess and Virtual Network.
provisioning_state This property is required. str
The provisioning state of the private endpoint connection resource.
type This property is required. str
private endpoint connection type
id This property is required. String
private endpoint connection Id
name This property is required. String
private endpoint connection name
privateEndpoint This property is required. Property Map
The resource of private end point.
privateLinkServiceConnectionState This property is required. Property Map
A collection of information about the state of the connection between DiskAccess and Virtual Network.
provisioningState This property is required. String
The provisioning state of the private endpoint connection resource.
type This property is required. String
private endpoint connection type

PrivateEndpointResponse
, PrivateEndpointResponseArgs

Id This property is required. string
The ARM identifier for Private Endpoint
Id This property is required. string
The ARM identifier for Private Endpoint
id This property is required. String
The ARM identifier for Private Endpoint
id This property is required. string
The ARM identifier for Private Endpoint
id This property is required. str
The ARM identifier for Private Endpoint
id This property is required. String
The ARM identifier for Private Endpoint

PrivateLinkServiceConnectionStateResponse
, PrivateLinkServiceConnectionStateResponseArgs

ActionsRequired string
A message indicating if changes on the service provider require any updates on the consumer.
Description string
The reason for approval/rejection of the connection.
Status string
Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
ActionsRequired string
A message indicating if changes on the service provider require any updates on the consumer.
Description string
The reason for approval/rejection of the connection.
Status string
Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
actionsRequired String
A message indicating if changes on the service provider require any updates on the consumer.
description String
The reason for approval/rejection of the connection.
status String
Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
actionsRequired string
A message indicating if changes on the service provider require any updates on the consumer.
description string
The reason for approval/rejection of the connection.
status string
Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
actions_required str
A message indicating if changes on the service provider require any updates on the consumer.
description str
The reason for approval/rejection of the connection.
status str
Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
actionsRequired String
A message indicating if changes on the service provider require any updates on the consumer.
description String
The reason for approval/rejection of the connection.
status String
Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:compute:DiskAccess myDiskAccess /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi