Account Args
data class AccountArgs(val accessTier: Output<String>? = null, val accountKind: Output<String>? = null, val accountReplicationType: Output<String>? = null, val accountTier: Output<String>? = null, val allowNestedItemsToBePublic: Output<Boolean>? = null, val allowedCopyScope: Output<String>? = null, val azureFilesAuthentication: Output<AccountAzureFilesAuthenticationArgs>? = null, val blobProperties: Output<AccountBlobPropertiesArgs>? = null, val crossTenantReplicationEnabled: Output<Boolean>? = null, val customDomain: Output<AccountCustomDomainArgs>? = null, val customerManagedKey: Output<AccountCustomerManagedKeyArgs>? = null, val defaultToOauthAuthentication: Output<Boolean>? = null, val edgeZone: Output<String>? = null, val enableHttpsTrafficOnly: Output<Boolean>? = null, val identity: Output<AccountIdentityArgs>? = null, val immutabilityPolicy: Output<AccountImmutabilityPolicyArgs>? = null, val infrastructureEncryptionEnabled: Output<Boolean>? = null, val isHnsEnabled: Output<Boolean>? = null, val largeFileShareEnabled: Output<Boolean>? = null, val location: Output<String>? = null, val minTlsVersion: Output<String>? = null, val name: Output<String>? = null, val networkRules: Output<AccountNetworkRulesArgs>? = null, val nfsv3Enabled: Output<Boolean>? = null, val publicNetworkAccessEnabled: Output<Boolean>? = null, val queueEncryptionKeyType: Output<String>? = null, val queueProperties: Output<AccountQueuePropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val routing: Output<AccountRoutingArgs>? = null, val sasPolicy: Output<AccountSasPolicyArgs>? = null, val sftpEnabled: Output<Boolean>? = null, val shareProperties: Output<AccountSharePropertiesArgs>? = null, val sharedAccessKeyEnabled: Output<Boolean>? = null, val staticWebsite: Output<AccountStaticWebsiteArgs>? = null, val tableEncryptionKeyType: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<AccountArgs>
Manages an Azure Storage Account.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("GRS")
.tags(Map.of("environment", "staging"))
.build());
}
}
Content copied to clipboard
With Network Rules
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.network.Subnet;
import com.pulumi.azure.network.SubnetArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.storage.inputs.AccountNetworkRulesArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
.addressSpaces("10.0.0.0/16")
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.build());
var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.virtualNetworkName(exampleVirtualNetwork.name())
.addressPrefixes("10.0.2.0/24")
.serviceEndpoints(
"Microsoft.Sql",
"Microsoft.Storage")
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.networkRules(AccountNetworkRulesArgs.builder()
.defaultAction("Deny")
.ipRules("100.0.0.1")
.virtualNetworkSubnetIds(exampleSubnet.id())
.build())
.tags(Map.of("environment", "staging"))
.build());
}
}
Content copied to clipboard
Import
Storage Accounts can be imported using the resource id
, e.g.
$ pulumi import azure:storage/account:Account storageAcc1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Storage/storageAccounts/myaccount
Content copied to clipboard
Constructors
Link copied to clipboard
fun AccountArgs(accessTier: Output<String>? = null, accountKind: Output<String>? = null, accountReplicationType: Output<String>? = null, accountTier: Output<String>? = null, allowNestedItemsToBePublic: Output<Boolean>? = null, allowedCopyScope: Output<String>? = null, azureFilesAuthentication: Output<AccountAzureFilesAuthenticationArgs>? = null, blobProperties: Output<AccountBlobPropertiesArgs>? = null, crossTenantReplicationEnabled: Output<Boolean>? = null, customDomain: Output<AccountCustomDomainArgs>? = null, customerManagedKey: Output<AccountCustomerManagedKeyArgs>? = null, defaultToOauthAuthentication: Output<Boolean>? = null, edgeZone: Output<String>? = null, enableHttpsTrafficOnly: Output<Boolean>? = null, identity: Output<AccountIdentityArgs>? = null, immutabilityPolicy: Output<AccountImmutabilityPolicyArgs>? = null, infrastructureEncryptionEnabled: Output<Boolean>? = null, isHnsEnabled: Output<Boolean>? = null, largeFileShareEnabled: Output<Boolean>? = null, location: Output<String>? = null, minTlsVersion: Output<String>? = null, name: Output<String>? = null, networkRules: Output<AccountNetworkRulesArgs>? = null, nfsv3Enabled: Output<Boolean>? = null, publicNetworkAccessEnabled: Output<Boolean>? = null, queueEncryptionKeyType: Output<String>? = null, queueProperties: Output<AccountQueuePropertiesArgs>? = null, resourceGroupName: Output<String>? = null, routing: Output<AccountRoutingArgs>? = null, sasPolicy: Output<AccountSasPolicyArgs>? = null, sftpEnabled: Output<Boolean>? = null, shareProperties: Output<AccountSharePropertiesArgs>? = null, sharedAccessKeyEnabled: Output<Boolean>? = null, staticWebsite: Output<AccountStaticWebsiteArgs>? = null, tableEncryptionKeyType: Output<String>? = null, tags: Output<Map<String, String>>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Boolean flag which forces HTTPS if enabled, see here for more information. Defaults to true
.
Link copied to clipboard
Link copied to clipboard
Is Hierarchical Namespace enabled? This can be used with Azure Data Lake Storage Gen 2 (see here for more information). Changing this forces a new resource to be created.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard