Expand description
Manages a Queue within an Azure Storage Account.
§Example Usage
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let example = resource_group::create(
"example",
ResourceGroupArgs::builder()
.location("West Europe")
.name("example-resources")
.build_struct(),
);
let exampleAccount = account::create(
"exampleAccount",
AccountArgs::builder()
.account_replication_type("LRS")
.account_tier("Standard")
.location("${example.location}")
.name("examplestorageacc")
.resource_group_name("${example.name}")
.build_struct(),
);
let exampleQueue = queue::create(
"exampleQueue",
QueueArgs::builder()
.name("mysamplequeue")
.storage_account_name("${exampleAccount.name}")
.build_struct(),
);
}
§Import
Storage Queue’s can be imported using the resource id
, e.g.
$ pulumi import azure:storage/queue:Queue queue1 https://example.queue.core.windows.net/queue1
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments