Storage Args
data class StorageArgs(val properties: Output<StorageAccountArgs>? = null, val resourceGroupName: Output<String>? = null, val serviceName: Output<String>? = null, val storageName: Output<String>? = null) : ConvertibleToJava<StorageArgs>
Storage resource payload. API Version: 2021-09-01-preview.
Example Usage
Storages_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
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",
});
});
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(properties: Output<StorageAccountArgs>? = null, resourceGroupName: Output<String>? = null, serviceName: Output<String>? = null, storageName: Output<String>? = null)
Properties
Link copied to clipboard
Properties of the storage resource payload.
Link copied to clipboard
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
Link copied to clipboard
The name of the Service resource.
Link copied to clipboard
The name of the storage resource.