Storage

Storage resource payload. API Version: 2021-09-01-preview.

Example Usage

Storages_CreateOrUpdate

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var storage = new AzureNative.AppPlatform.Storage("storage", new()
{
Properties = new AzureNative.AppPlatform.Inputs.StorageAccountArgs
{
AccountKey = "account-key-of-storage-account",
AccountName = "storage-account-name",
StorageType = "StorageAccount",
},
ResourceGroupName = "myResourceGroup",
ServiceName = "myservice",
StorageName = "mystorage",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.appplatform.Storage;
import com.pulumi.azurenative.appplatform.StorageArgs;
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 storage = new Storage("storage", StorageArgs.builder()
.properties(Map.ofEntries(
Map.entry("accountKey", "account-key-of-storage-account"),
Map.entry("accountName", "storage-account-name"),
Map.entry("storageType", "StorageAccount")
))
.resourceGroupName("myResourceGroup")
.serviceName("myservice")
.storageName("mystorage")
.build());
}
}

Import

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

$ pulumi import azure-native:appplatform:Storage mystorage /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.AppPlatform/Spring/myservice/storages/mystorage

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource.

Link copied to clipboard

Properties of the storage resource payload.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard
val type: Output<String>

The type of the resource.

Link copied to clipboard
val urn: Output<String>