Storage Account Credential
The storage account credential. Uses Azure REST API version 2022-03-01. In version 1.x of the Azure Native provider, it used API version 2020-12-01. Other available API versions: 2023-01-01-preview, 2023-07-01, 2023-12-01.
Example Usage
SACPut
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var storageAccountCredential = new AzureNative.DataBoxEdge.StorageAccountCredential("storageAccountCredential", new()
{
AccountKey = new AzureNative.DataBoxEdge.Inputs.AsymmetricEncryptedSecretArgs
{
EncryptionAlgorithm = AzureNative.DataBoxEdge.EncryptionAlgorithm.AES256,
EncryptionCertThumbprint = "2A9D8D6BE51574B5461230AEF02F162C5F01AD31",
Value = "lAeZEYi6rNP1/EyNaVUYmTSZEYyaIaWmwUsGwek0+xiZj54GM9Ue9/UA2ed/ClC03wuSit2XzM/cLRU5eYiFBwks23rGwiQOr3sruEL2a74EjPD050xYjA6M1I2hu/w2yjVHhn5j+DbXS4Xzi+rHHNZK3DgfDO3PkbECjPck+PbpSBjy9+6Mrjcld5DIZhUAeMlMHrFlg+WKRKB14o/og56u5/xX6WKlrMLEQ+y6E18dUwvWs2elTNoVO8PBE8SM/CfooX4AMNvaNdSObNBPdP+F6Lzc556nFNWXrBLRt0vC7s9qTiVRO4x/qCNaK/B4y7IqXMllwQFf4Np9UQ2ECA==",
},
AccountType = AzureNative.DataBoxEdge.AccountType.BlobStorage,
Alias = "sac1",
DeviceName = "testedgedevice",
Name = "sac1",
ResourceGroupName = "GroupForEdgeAutomation",
SslStatus = AzureNative.DataBoxEdge.SSLStatus.Disabled,
UserName = "cisbvt",
});
});
Content copied to clipboard
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.NewStorageAccountCredential(ctx, "storageAccountCredential", &databoxedge.StorageAccountCredentialArgs{
AccountKey: &databoxedge.AsymmetricEncryptedSecretArgs{
EncryptionAlgorithm: pulumi.String(databoxedge.EncryptionAlgorithmAES256),
EncryptionCertThumbprint: pulumi.String("2A9D8D6BE51574B5461230AEF02F162C5F01AD31"),
Value: pulumi.String("lAeZEYi6rNP1/EyNaVUYmTSZEYyaIaWmwUsGwek0+xiZj54GM9Ue9/UA2ed/ClC03wuSit2XzM/cLRU5eYiFBwks23rGwiQOr3sruEL2a74EjPD050xYjA6M1I2hu/w2yjVHhn5j+DbXS4Xzi+rHHNZK3DgfDO3PkbECjPck+PbpSBjy9+6Mrjcld5DIZhUAeMlMHrFlg+WKRKB14o/og56u5/xX6WKlrMLEQ+y6E18dUwvWs2elTNoVO8PBE8SM/CfooX4AMNvaNdSObNBPdP+F6Lzc556nFNWXrBLRt0vC7s9qTiVRO4x/qCNaK/B4y7IqXMllwQFf4Np9UQ2ECA=="),
},
AccountType: pulumi.String(databoxedge.AccountTypeBlobStorage),
Alias: pulumi.String("sac1"),
DeviceName: pulumi.String("testedgedevice"),
Name: pulumi.String("sac1"),
ResourceGroupName: pulumi.String("GroupForEdgeAutomation"),
SslStatus: pulumi.String(databoxedge.SSLStatusDisabled),
UserName: pulumi.String("cisbvt"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.databoxedge.StorageAccountCredential;
import com.pulumi.azurenative.databoxedge.StorageAccountCredentialArgs;
import com.pulumi.azurenative.databoxedge.inputs.AsymmetricEncryptedSecretArgs;
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 storageAccountCredential = new StorageAccountCredential("storageAccountCredential", StorageAccountCredentialArgs.builder()
.accountKey(AsymmetricEncryptedSecretArgs.builder()
.encryptionAlgorithm("AES256")
.encryptionCertThumbprint("2A9D8D6BE51574B5461230AEF02F162C5F01AD31")
.value("lAeZEYi6rNP1/EyNaVUYmTSZEYyaIaWmwUsGwek0+xiZj54GM9Ue9/UA2ed/ClC03wuSit2XzM/cLRU5eYiFBwks23rGwiQOr3sruEL2a74EjPD050xYjA6M1I2hu/w2yjVHhn5j+DbXS4Xzi+rHHNZK3DgfDO3PkbECjPck+PbpSBjy9+6Mrjcld5DIZhUAeMlMHrFlg+WKRKB14o/og56u5/xX6WKlrMLEQ+y6E18dUwvWs2elTNoVO8PBE8SM/CfooX4AMNvaNdSObNBPdP+F6Lzc556nFNWXrBLRt0vC7s9qTiVRO4x/qCNaK/B4y7IqXMllwQFf4Np9UQ2ECA==")
.build())
.accountType("BlobStorage")
.alias("sac1")
.deviceName("testedgedevice")
.name("sac1")
.resourceGroupName("GroupForEdgeAutomation")
.sslStatus("Disabled")
.userName("cisbvt")
.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:databoxedge:StorageAccountCredential sac1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/storageAccountCredentials/{name}
Content copied to clipboard
Properties
Link copied to clipboard
Encrypted storage key.
Link copied to clipboard
Type of storage accessed on the storage account.
Link copied to clipboard
Blob end point for private clouds.
Link copied to clipboard
Connection string for the storage account. Use this string if username and account key are not specified.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Id of the storage account.
Link copied to clipboard
Metadata pertaining to creation and last modification of StorageAccountCredential