azure-native.databoxedge.StorageAccount
Explore with Pulumi AI
Represents a Storage Account on the Data Box Edge/Gateway device. Azure REST API version: 2022-03-01. Prior API version in Azure Native 1.x: 2020-12-01.
Other available API versions: 2023-01-01-preview, 2023-07-01, 2023-12-01.
Example Usage
StorageAccountPut
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var storageAccount = new AzureNative.DataBoxEdge.StorageAccount("storageAccount", new()
    {
        DataPolicy = AzureNative.DataBoxEdge.DataPolicy.Cloud,
        Description = "It's an awesome storage account",
        DeviceName = "testedgedevice",
        ResourceGroupName = "GroupForEdgeAutomation",
        StorageAccountCredentialId = "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForDataBoxEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/storageAccountCredentials/cisbvt",
        StorageAccountName = "blobstorageaccount1",
        StorageAccountStatus = AzureNative.DataBoxEdge.StorageAccountStatus.OK,
    });
});
package main
import (
	databoxedge "github.com/pulumi/pulumi-azure-native-sdk/databoxedge/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := databoxedge.NewStorageAccount(ctx, "storageAccount", &databoxedge.StorageAccountArgs{
			DataPolicy:                 pulumi.String(databoxedge.DataPolicyCloud),
			Description:                pulumi.String("It's an awesome storage account"),
			DeviceName:                 pulumi.String("testedgedevice"),
			ResourceGroupName:          pulumi.String("GroupForEdgeAutomation"),
			StorageAccountCredentialId: pulumi.String("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForDataBoxEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/storageAccountCredentials/cisbvt"),
			StorageAccountName:         pulumi.String("blobstorageaccount1"),
			StorageAccountStatus:       pulumi.String(databoxedge.StorageAccountStatusOK),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.databoxedge.StorageAccount;
import com.pulumi.azurenative.databoxedge.StorageAccountArgs;
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 storageAccount = new StorageAccount("storageAccount", StorageAccountArgs.builder()
            .dataPolicy("Cloud")
            .description("It's an awesome storage account")
            .deviceName("testedgedevice")
            .resourceGroupName("GroupForEdgeAutomation")
            .storageAccountCredentialId("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForDataBoxEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/storageAccountCredentials/cisbvt")
            .storageAccountName("blobstorageaccount1")
            .storageAccountStatus("OK")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const storageAccount = new azure_native.databoxedge.StorageAccount("storageAccount", {
    dataPolicy: azure_native.databoxedge.DataPolicy.Cloud,
    description: "It's an awesome storage account",
    deviceName: "testedgedevice",
    resourceGroupName: "GroupForEdgeAutomation",
    storageAccountCredentialId: "/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForDataBoxEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/storageAccountCredentials/cisbvt",
    storageAccountName: "blobstorageaccount1",
    storageAccountStatus: azure_native.databoxedge.StorageAccountStatus.OK,
});
import pulumi
import pulumi_azure_native as azure_native
storage_account = azure_native.databoxedge.StorageAccount("storageAccount",
    data_policy=azure_native.databoxedge.DataPolicy.CLOUD,
    description="It's an awesome storage account",
    device_name="testedgedevice",
    resource_group_name="GroupForEdgeAutomation",
    storage_account_credential_id="/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForDataBoxEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/storageAccountCredentials/cisbvt",
    storage_account_name="blobstorageaccount1",
    storage_account_status=azure_native.databoxedge.StorageAccountStatus.OK)
resources:
  storageAccount:
    type: azure-native:databoxedge:StorageAccount
    properties:
      dataPolicy: Cloud
      description: It's an awesome storage account
      deviceName: testedgedevice
      resourceGroupName: GroupForEdgeAutomation
      storageAccountCredentialId: /subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForDataBoxEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/storageAccountCredentials/cisbvt
      storageAccountName: blobstorageaccount1
      storageAccountStatus: OK
Create StorageAccount Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new StorageAccount(name: string, args: StorageAccountArgs, opts?: CustomResourceOptions);@overload
def StorageAccount(resource_name: str,
                   args: StorageAccountArgs,
                   opts: Optional[ResourceOptions] = None)
@overload
def StorageAccount(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   data_policy: Optional[Union[str, DataPolicy]] = None,
                   device_name: Optional[str] = None,
                   resource_group_name: Optional[str] = None,
                   description: Optional[str] = None,
                   storage_account_credential_id: Optional[str] = None,
                   storage_account_name: Optional[str] = None,
                   storage_account_status: Optional[Union[str, StorageAccountStatus]] = None)func NewStorageAccount(ctx *Context, name string, args StorageAccountArgs, opts ...ResourceOption) (*StorageAccount, error)public StorageAccount(string name, StorageAccountArgs args, CustomResourceOptions? opts = null)
public StorageAccount(String name, StorageAccountArgs args)
public StorageAccount(String name, StorageAccountArgs args, CustomResourceOptions options)
type: azure-native:databoxedge:StorageAccount
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args StorageAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args StorageAccountArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args StorageAccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StorageAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StorageAccountArgs
- 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 storageAccountResource = new AzureNative.DataBoxEdge.StorageAccount("storageAccountResource", new()
{
    DataPolicy = "string",
    DeviceName = "string",
    ResourceGroupName = "string",
    Description = "string",
    StorageAccountCredentialId = "string",
    StorageAccountName = "string",
    StorageAccountStatus = "string",
});
example, err := databoxedge.NewStorageAccount(ctx, "storageAccountResource", &databoxedge.StorageAccountArgs{
	DataPolicy:                 pulumi.String("string"),
	DeviceName:                 pulumi.String("string"),
	ResourceGroupName:          pulumi.String("string"),
	Description:                pulumi.String("string"),
	StorageAccountCredentialId: pulumi.String("string"),
	StorageAccountName:         pulumi.String("string"),
	StorageAccountStatus:       pulumi.String("string"),
})
var storageAccountResource = new StorageAccount("storageAccountResource", StorageAccountArgs.builder()
    .dataPolicy("string")
    .deviceName("string")
    .resourceGroupName("string")
    .description("string")
    .storageAccountCredentialId("string")
    .storageAccountName("string")
    .storageAccountStatus("string")
    .build());
storage_account_resource = azure_native.databoxedge.StorageAccount("storageAccountResource",
    data_policy="string",
    device_name="string",
    resource_group_name="string",
    description="string",
    storage_account_credential_id="string",
    storage_account_name="string",
    storage_account_status="string")
const storageAccountResource = new azure_native.databoxedge.StorageAccount("storageAccountResource", {
    dataPolicy: "string",
    deviceName: "string",
    resourceGroupName: "string",
    description: "string",
    storageAccountCredentialId: "string",
    storageAccountName: "string",
    storageAccountStatus: "string",
});
type: azure-native:databoxedge:StorageAccount
properties:
    dataPolicy: string
    description: string
    deviceName: string
    resourceGroupName: string
    storageAccountCredentialId: string
    storageAccountName: string
    storageAccountStatus: string
StorageAccount 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 StorageAccount resource accepts the following input properties:
- DataPolicy string | Pulumi.Azure Native. Data Box Edge. Data Policy 
- Data policy of the storage Account.
- DeviceName string
- The device name.
- ResourceGroup stringName 
- The resource group name.
- Description string
- Description for the storage Account.
- StorageAccount stringCredential Id 
- Storage Account Credential Id
- StorageAccount stringName 
- The StorageAccount name.
- StorageAccount string | Pulumi.Status Azure Native. Data Box Edge. Storage Account Status 
- Current status of the storage account
- DataPolicy string | DataPolicy 
- Data policy of the storage Account.
- DeviceName string
- The device name.
- ResourceGroup stringName 
- The resource group name.
- Description string
- Description for the storage Account.
- StorageAccount stringCredential Id 
- Storage Account Credential Id
- StorageAccount stringName 
- The StorageAccount name.
- StorageAccount string | StorageStatus Account Status 
- Current status of the storage account
- dataPolicy String | DataPolicy 
- Data policy of the storage Account.
- deviceName String
- The device name.
- resourceGroup StringName 
- The resource group name.
- description String
- Description for the storage Account.
- storageAccount StringCredential Id 
- Storage Account Credential Id
- storageAccount StringName 
- The StorageAccount name.
- storageAccount String | StorageStatus Account Status 
- Current status of the storage account
- dataPolicy string | DataPolicy 
- Data policy of the storage Account.
- deviceName string
- The device name.
- resourceGroup stringName 
- The resource group name.
- description string
- Description for the storage Account.
- storageAccount stringCredential Id 
- Storage Account Credential Id
- storageAccount stringName 
- The StorageAccount name.
- storageAccount string | StorageStatus Account Status 
- Current status of the storage account
- data_policy str | DataPolicy 
- Data policy of the storage Account.
- device_name str
- The device name.
- resource_group_ strname 
- The resource group name.
- description str
- Description for the storage Account.
- storage_account_ strcredential_ id 
- Storage Account Credential Id
- storage_account_ strname 
- The StorageAccount name.
- storage_account_ str | Storagestatus Account Status 
- Current status of the storage account
- dataPolicy String | "Cloud" | "Local"
- Data policy of the storage Account.
- deviceName String
- The device name.
- resourceGroup StringName 
- The resource group name.
- description String
- Description for the storage Account.
- storageAccount StringCredential Id 
- Storage Account Credential Id
- storageAccount StringName 
- The StorageAccount name.
- storageAccount String | "OK" | "Offline" | "Unknown" | "Updating" | "NeedsStatus Attention" 
- Current status of the storage account
Outputs
All input properties are implicitly available as output properties. Additionally, the StorageAccount resource produces the following output properties:
- BlobEndpoint string
- BlobEndpoint of Storage Account
- ContainerCount int
- The Container Count. Present only for Storage Accounts with DataPolicy set to Cloud.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The object name.
- SystemData Pulumi.Azure Native. Data Box Edge. Outputs. System Data Response 
- Metadata pertaining to creation and last modification of StorageAccount
- Type string
- The hierarchical type of the object.
- BlobEndpoint string
- BlobEndpoint of Storage Account
- ContainerCount int
- The Container Count. Present only for Storage Accounts with DataPolicy set to Cloud.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The object name.
- SystemData SystemData Response 
- Metadata pertaining to creation and last modification of StorageAccount
- Type string
- The hierarchical type of the object.
- blobEndpoint String
- BlobEndpoint of Storage Account
- containerCount Integer
- The Container Count. Present only for Storage Accounts with DataPolicy set to Cloud.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The object name.
- systemData SystemData Response 
- Metadata pertaining to creation and last modification of StorageAccount
- type String
- The hierarchical type of the object.
- blobEndpoint string
- BlobEndpoint of Storage Account
- containerCount number
- The Container Count. Present only for Storage Accounts with DataPolicy set to Cloud.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The object name.
- systemData SystemData Response 
- Metadata pertaining to creation and last modification of StorageAccount
- type string
- The hierarchical type of the object.
- blob_endpoint str
- BlobEndpoint of Storage Account
- container_count int
- The Container Count. Present only for Storage Accounts with DataPolicy set to Cloud.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The object name.
- system_data SystemData Response 
- Metadata pertaining to creation and last modification of StorageAccount
- type str
- The hierarchical type of the object.
- blobEndpoint String
- BlobEndpoint of Storage Account
- containerCount Number
- The Container Count. Present only for Storage Accounts with DataPolicy set to Cloud.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The object name.
- systemData Property Map
- Metadata pertaining to creation and last modification of StorageAccount
- type String
- The hierarchical type of the object.
Supporting Types
DataPolicy, DataPolicyArgs    
- Cloud
- Cloud
- Local
- Local
- DataPolicy Cloud 
- Cloud
- DataPolicy Local 
- Local
- Cloud
- Cloud
- Local
- Local
- Cloud
- Cloud
- Local
- Local
- CLOUD
- Cloud
- LOCAL
- Local
- "Cloud"
- Cloud
- "Local"
- Local
StorageAccountStatus, StorageAccountStatusArgs      
- OK
- OK
- Offline
- Offline
- Unknown
- Unknown
- Updating
- Updating
- NeedsAttention 
- NeedsAttention
- StorageAccount Status OK 
- OK
- StorageAccount Status Offline 
- Offline
- StorageAccount Status Unknown 
- Unknown
- StorageAccount Status Updating 
- Updating
- StorageAccount Status Needs Attention 
- NeedsAttention
- OK
- OK
- Offline
- Offline
- Unknown
- Unknown
- Updating
- Updating
- NeedsAttention 
- NeedsAttention
- OK
- OK
- Offline
- Offline
- Unknown
- Unknown
- Updating
- Updating
- NeedsAttention 
- NeedsAttention
- OK
- OK
- OFFLINE
- Offline
- UNKNOWN
- Unknown
- UPDATING
- Updating
- NEEDS_ATTENTION
- NeedsAttention
- "OK"
- OK
- "Offline"
- Offline
- "Unknown"
- Unknown
- "Updating"
- Updating
- "NeedsAttention" 
- NeedsAttention
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:databoxedge:StorageAccount blobstorageaccount1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/storageAccounts/{storageAccountName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0