Cerebrata

Azure Management Cmdlets

Automate repetitive tasks with PowerShell

Includes powerShell Cmdlets for managing Microsoft Azure storage, Microsoft Azure diagnostics and performing service management.

  • Includes over 100 Cmdlets covering many facets of Azure
  • Easily backup storage accounts and Microsoft Azure SQL Databases
  • Manipulate Blob Containers, Tables and Queues
  • Write scripts to scale your deployments
  • Manage your diagnostics configuration
Microsoft Azure storage

Microsoft Azure Storage

The Azure Management Cmdlets provide broad coverage of the Microsoft Azure Storage API, supporting a wide range of common storage related tasks.

Storage Accounts

  • Backup-StorageAccount

    Downloads contents of a storage account (tables and/or blobs) and saves them as files.

  • Restore-StorageAccount

    Restores contents of a storage account (tables and/or blobs) using the backup created by 'Backup-StorageAccount' cmdlet.

Blob Containers

  • Checkpoint-BlobContainer

    Takes a snapshot of all blobs in a blob container.

  • Copy-BlobContainer

    Copies one or more blobs from one blob container to another in either same storage account or across storage accounts. Please note that for copying blob container across storage accounts, the target storage account must be created on or after 7th of June 2012.

  • Export-BlobContainer

    Downloads one or more blobs from a blob container and saves them to disk as files.

  • Get-BlobContainer

    Lists blob containers in a storage account.

  • Get-BlobContainerAccessPolicy

    Gets a blob container's ACL and access policies.

  • Get-BlobContainerInformation

    Gets a blob container's metadata, ACL and access policies.

  • Get-BlobContainerMetadata

    Gets a blob container's metadata.

  • Get-BlobContainerSize

    Gets the total size of a blob container.

  • Lock-BlobContainer

    Acquires a lease on a blob container.

  • Move-BlobContainer

    Moves one or more blobs from one blob container to another in a storage account.

  • New-BlobContainer

    Adds a new blob container in a storage account.

  • New-BlobContainerAccessPolicy

    Adds a new blob container access policy for a blob container in a storage account.

  • New-BlobContainerSharedAccessSignature

    Creates a shared access signature to access a blob container.

  • New-RootBlobContainer

    Adds a 'Root' blob container in a storage account.

  • Remove-BlobContainer

    Removes either a single blob container or all blob containers from a storage account.

  • Remove-BlobContainerAccessPolicy

    Removes an existing blob container access policy for a blob container in a storage account.

  • Remove-RootBlobContainer

    Removes 'Root' blob container from a storage account.

  • Restore-BlobContainer

    Restores the contents of a blob container from XML created by execution of storage account backup and/or download blob container cmdlet.

  • Set-BlobContainerAccessPolicy

    Updates a blob container's ACL and access policies.

  • Set-BlobContainerMetadata

    Updates a blob container's metadata.

  • Unlock-BlobContainer

    Removes lease from a blob container.

Blobs

  • Checkpoint-Blob

    Takes a snapshot of a blob.

  • Copy-Blob

    Copies a blob from one blob container to another in a storage account. It can also be used to copy blobs across storage accounts or a publicly accessible blob from outside of a Microsoft Azure Storage Account. For copying across storage accounts and from outside of Microsoft Azure, target storage account must be created on or after 7th June 2012.

  • Export-Blob

    Downloads the contents of a blob and saves it to disk as a file.

  • Get-Blob

    Lists one or more blobs in a blob container.

  • Get-BlobProperty

    Gets properties of a blob.

  • Get-BlobSnapshot

    Lists one or more snapshots of a blob.

  • Get-BlobStorageSize

    Gets the total size of blob storage.

  • Import-File

    Uploads a file to a blob container as a blob.

  • Import-Folder

    Uploads files from a folder to a blob container as blobs.

  • Lock-Blob

    Acquires a lease on a blob.

  • Move-Blob

    Moves a blob from one blob container to another in a storage account.

  • New-BlobSharedAccessSignature

    Creates a shared access signature to access a blob.

  • Remove-Blob

    Removes one or more blobs from a blob container.

  • Rename-Blob

    Renames a blob.

  • Set-BlobProperty

    Updates properties of one or more blobs in a blob container.

  • Unlock-Blob

    Removes lease from a blob.

Tables

  • Add-Entity

    Adds an entity to a table.

  • Clear-Table

    Removes one or more entities from a table.

  • Export-Table

    Downloads one or more entities from a table to your computer in XML or delimited format.

  • Get-EntityByPartitionKeyRowKey

    Gets information about an entity in a table using its PartitionKey and RowKey.

  • Get-Entity

    Lists entities in a table.

  • Get-Table

    Lists tables in a storage account.

  • Get-TableAccessPolicy

    Get the access policies for a table.

  • Merge-Entity

    Updates an entity by merging new properties with old ones.

  • New-Table

    Adds a table to a storage account.

  • New-TableAccessPolicy

    Adds a new access policy to a table.

  • New-TableSharedAccessSignature

    Creates a shared access signature to access a table.

  • Remove-Entity

    Removes an entity from a table.

  • Remove-Table

    Removes either a single table or all tables from a storage account.

  • Remove-TableAccessPolicy

    Removes an access policy from a table.

  • Restore-Table

    Restores the contents of a table from XML files created by execution of storage account backup and/or download table cmdlet.

  • Set-TableAccessPolicy

    Sets access policies of a table.

  • Update-Entity

    Updates an entity by removing old entity and creating a new entity.

Queues

  • Clear-Queue

    Removes all messages from a queue.

  • Clear-QueueMetadata

    Clears a queue's metadata.

  • Get-ApproximateMessageCount

    Gets approximate messages count in all queues.

  • Get-Message

    Gets messages in a queue. This command can optionally hide the messages fetched from all other callers.

  • Get-QueueProperty

    Gets a queue's properties.

  • Get-Queue

    Lists queues in a storage account.

  • Get-QueueAccessPolicy

    Lists all the access policies for a queue.

  • New-Message

    Adds a new message in a queue.

  • New-Queue

    Adds a new queue in a storage account.

  • New-QueueAccessPolicy

    Adds a new access policy to a queue.

  • New-QueueSharedAccessSignature

    Creates a shared access signature to access a queue.

  • Remove-Message

    Removes a message from a queue.

  • Remove-Queue

    Removes either a single queue or all queues from a storage account.

  • Remove-QueueAccessPolicy

    Removes an access policy from a queue.

  • Set-QueueAccessPolicy

    Sets access policies of a queue.

  • Set-QueueMetadata

    Updates a queue's metadata.

  • Update-Message

    Updates a message’s contents and/or visibility timeout.

SQL Databases

Manage and backup your Azure SQL database to your local disk.

  • Backup-Database

    Backs up a SQL Azure database using bcp.exe utility and saves the data on local computer. Optionally this cmdlet can also upload the data in blob storage as well after saving it to local disk.

  • Copy-Database

    Copies one SQL Azure database to another in same database server.

  • Get-DatabaseInformation

    Gets information about a SQL Azure database like maximum size of the database, current size of the database, database edition and database status.

  • Get-Database

    Gets information about all user databases in a SQL Azure database server like maximum size of the database, current size of the database, database edition and database status.

  • Get-DatabaseTable

    Gets information about all user tables in a SQL Azure database like size of the table and number of rows in the table.

  • New-Database

    Creates a new SQL Azure database.

  • Remove-Database

    Removes a SQL Azure database.

Back to top

Microsoft Azure diagnostics

Microsoft Azure Diagnostics

Configure and manage Microsoft Azure Diagnostics with the following Cmdlets.

Logs

  • Clear-AzureEventLog

    Removes one or more log entries from Azure Event Logs table.

  • Clear-AzureInfrastructureLog

    Removes one or more log entries from Azure Infrastructure Logs table.

  • Clear-AzureTraceLog

    Removes one or more log entries from Azure Trace Logs table.

  • Get-CommonConfiguration

    Gets the information about overall buffer quota for all diagnostics logs.

  • Get-DiagnosticConfiguration

    Gets the diagnostics configuration for specified diagnostic log type.

  • Set-CommonConfiguration

    Sets the overall buffer quota for all logs.

  • Set-FileBasedLog

    Sets the diagnostics configuration settings for file based logs (IIS, IIS Failed Requests & Crash Dumps).

  • Set-InfrastructureLog

    Sets the diagnostics configuration settings for Windows Infrastructure logs.

  • Set-WindowsAzureLog

    Sets the diagnostics configuration settings for Microsoft Azure (Trace) logs.

  • Set-WindowsEventLog

    Sets the diagnostics configuration settings for Windows Event logs.

Performance Counters

  • Clear-AzurePerfCounter

    Removes one or more log entries from Azure Performance Counters table.

  • Set-PerformanceCounter

    Sets the diagnostics configuration settings for Microsoft Azure Performance counters.

Administration

  • Get-ActiveTransfer

    Gets information about on demand transfers currently in progress.

  • Start-OnDemandTransfer

    Starts on demand transfer of diagnostics data to Azure Storage.

  • Stop-ActiveTransfer

    Stops currently active on demand transfers.

Back to top

Microsoft Azure Management

Microsoft Azure Management

Streamline Cloud Services tasks with our Service Management Cmdlets.

Subscriptions

  • Get-AffinityGroup

    Gets a list of all affinity groups associated with a subscription.

  • Get-AzureDataCenterLocation

    Gets a list of all Azure data centers available to a subscription.

  • Get-HostedService

    Gets information about all cloud services associated with a subscription.

  • Get-OperationStatus

    Gets information about an asynchronous operation performed on a subscription.

  • Get-OSFamily

    Gets information about available OS families associated with a subscription.

  • Get-OSVersion

    Gets information about available guest OS versions associated with a subscription.

  • Get-StorageService

    Gets information about all storage accounts associated with a subscription.

  • Get-SubscriptionProperty

    Gets account and resource allocation information on the specified subscription.

Deployments

  • Get-Deployment

    Gets information about a deployed application.

  • Get-DeploymentPackage

    Gets the package files (*.cspkg, *.cscfg) for a cloud service deployment and saves them in blob storage.

  • Get-RoleInstanceCount

    Gets the number of deployed instances of either a single role or all roles in a deployment.

  • Get-RoleInstanceStatus

    Gets the status of a role instance, or all role instances of a single role or all role instances of all roles in a deployment.

  • Move-Deployment

    Moves a deployment from staging to production. This cmdlet can also be used to swap a production slot with a staging slot.

  • New-Deployment

    Deploys a new application in the cloud.

  • Remove-Deployment

    Removes a deployment from the cloud.

  • Restart-Role

    Reboots one or all role instances of a role in a deployment.

  • Restore-Role

    Reimages one or all role instances of a role in a deployment.

  • Set-DeploymentConfiguration

    Updates configuration of a deployment without redeploying the entire application.

  • Set-DeploymentStatus

    Changes the status of an application from 'Running' to 'Suspended' or vice versa.

  • Set-RoleInstanceCount

    Increases or decreases the number of deployed instances of a role in a cloud service.

  • Set-WalkUpgradeDomain

    Manually updates a deployment.

  • Update-Deployment

    Updates a deployment.

Cloud Services

  • Get-HostedServiceCertificate

    Gets information about certificates associated with a deployment.

  • Get-HostedServiceProperty

    Gets information about a cloud service.

  • New-HostedService

    Creates a new cloud service in a subscription.

  • Remove-HostedService

    Removes a cloud service from a subscription.

  • Update-HostedService

    Updates a cloud service's label and/or description.

Storage Service

  • Get-StorageKey

    Gets primary and secondary keys for a storage account associated with a subscription.

  • Get-StorageServiceProperty

    Gets information about a storage account associated with a subscription.

  • New-StorageKey

    Creates new storage account keys.

  • New-StorageService

    Creates a new storage account in a subscription.

  • Remove-StorageService

    Removes a storage account from a subscription.

  • Update-StorageService

    Updates a cloud service’s label and/or description.

Affinity Groups

  • Get-AffinityGroupProperty

    Gets information about an affinity group associated with a subscription.

  • New-AffinityGroup

    Creates a new affinity group in a subscription.

  • Remove-AffinityGroup

    Removes an affinity group from a subscription.

  • Update-AffinityGroup

    Updates label and/or description of an affinity group associated with a subscription.

Certificates

  • Add-Certificate

    Adds a new SSL certificate to a cloud service.

  • Get-Certificate

    Gets information about an SSL certificate associated with a cloud service.

  • Remove-Certificate

    Removes an SSL certificate from a hosted service.

Traffic Manager

  • Add-TrafficManagerEndpoint

    Adds a new endpoint to monitor.

  • Disable-TrafficManagerEndpoint

    Disables an existing endpoint to monitor.

  • Disable-TrafficManagerProfile

    Disables a traffic manager profile.

  • Enable-TrafficManagerEndpoint

    Enables an existing endpoint to monitor.

  • Enable-TrafficManagerProfile

    Enables an existing traffic manager profile.

  • Get-TrafficManagerDefinition

    Gets information about a traffic manager profile definition.

  • Get-TrafficManagerProfile

    Gets information about a traffic manager profile.

  • New-TrafficManagerDefinition

    Creates a new traffic manager profile definition and enables it.

  • New-TrafficManagerEndpoint

    Creates an object representing an endpoint to monitor. This cmdlet should be used in conjunction with New-TrafficManagerDefinition.

  • New-TrafficManagerProfile

    Creates a new traffic manager profile.

  • Remove-TrafficManagerEndpoint

    Removes an endpoint to monitor.

  • Remove-TrafficManagerProfile

    Removes a traffic manager profile.

Management Certificates

  • Add-ManagementCertificate

    Adds a new management certificate to a subscription.

  • Get-ManagementCertificate

    Gets information about all management certificates associated with a subscription.

  • Remove-ManagementCertificate

    Removes a management certificate from a subscription.

Back to top

Cerebrata on Uservoice

Matthew Dickens Cerebrata

We work closely with our users and the Microsoft Azure community to ensure that our tools meet their needs. If you think we are missing a feature or some functionality, then we'd love to hear it. Either reach out to our product manager or add it directly to our Uservoice page.

Cerebrata on Uservoice
Mobile Analytics