Elastacloud.AzureManagement.Fluent.SubscriptionManager.GetStorageManager C# (CSharp) Method

GetStorageManager() public method

Allows access to the storage manager which performs operations on storage
public GetStorageManager ( ) : StorageManager
return Elastacloud.AzureManagement.Fluent.Storage.StorageManager
        public StorageManager GetStorageManager()
        {
            return new StorageManager(_subscriptionId);
        }

Usage Example

Esempio n. 1
0
        public IServiceTransaction ExecuteDeploymentStep()
        {
            var subscriptionManager = new SubscriptionManager(SubscriptionId);
            var storageManager = subscriptionManager.GetStorageManager();

            var transaction = storageManager.CreateNew(StorageName)
                                            .AddPublishSettings(PublishSettings)
                                            .WithLocation(Location)
                                            .WithDescription("Create by Fluent Management")
                                            .Go();
            Orchestrator.AddDeploymentStep(transaction);
            return transaction;
        }