salt.cloud.clouds.msazure

Azure Cloud Module

The Azure cloud module is used to control access to Microsoft Azure

depends
configuration

Required provider parameters:

  • apikey

  • certificate_path

  • subscription_id

  • backend

A Management Certificate (.pem and .crt files) must be created and the .pem file placed on the same machine that salt-cloud is run from. Information on creating the pem file to use, and uploading the associated cer file can be found at:

http://www.windowsazure.com/en-us/develop/python/how-to-guides/service-management/

For users with Python < 2.7.9, backend must currently be set to requests.

Example /etc/salt/cloud.providers or /etc/salt/cloud.providers.d/azure.conf configuration:

my-azure-config:
  driver: azure
  subscription_id: 3287abc8-f98a-c678-3bde-326766fd3617
  certificate_path: /etc/salt/azure.pem
  management_host: management.core.windows.net

salt.cloud.clouds.msazure.add_input_endpoint(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Add an input endpoint to the deployment. Please note that there may be a delay before the changes show up.

CLI Example:

salt-cloud -f add_input_endpoint my-azure service=myservice \
    deployment=mydeployment role=myrole name=HTTP local_port=80 \
    port=80 protocol=tcp enable_direct_server_return=False \
    timeout_for_tcp_idle_connection=4

salt.cloud.clouds.msazure.add_management_certificate(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Add a new management certificate

CLI Example:

salt-cloud -f add_management_certificate my-azure public_key='...PUBKEY...' \
    thumbprint=0123456789ABCDEF data='...CERT_DATA...'

salt.cloud.clouds.msazure.add_service_certificate(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Add a new service certificate

CLI Example:

salt-cloud -f add_service_certificate my-azure name=my_service_certificate \
    data='...CERT_DATA...' certificate_format=sha1 password=verybadpass

salt.cloud.clouds.msazure.avail_images(conn=None, call=None)

List available images for Azure

salt.cloud.clouds.msazure.avail_locations(conn=None, call=None)

List available locations for Azure

salt.cloud.clouds.msazure.avail_sizes(call=None)

Return a list of sizes from Azure

salt.cloud.clouds.msazure.cleanup_unattached_disks(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Cleans up all disks associated with the account, which are not attached. * CAUTION * This is a destructive function with no undo button, and no "Are you sure?" confirmation!

CLI Examples:

salt-cloud -f cleanup_unattached_disks my-azure name=my_disk
salt-cloud -f cleanup_unattached_disks my-azure name=my_disk delete_vhd=True

salt.cloud.clouds.msazure.create(vm_)

Create a single VM from a data dict

salt.cloud.clouds.msazure.create_affinity_group(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Create a new affinity group

CLI Example:

salt-cloud -f create_affinity_group my-azure name=my_affinity_group

salt.cloud.clouds.msazure.create_attach_volumes(name, kwargs, call=None, wait_to_finish=True)

Create and attach volumes to created node

salt.cloud.clouds.msazure.create_service(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Create a new hosted service

CLI Example:

salt-cloud -f create_service my-azure name=my_service label=my_service location='West US'

salt.cloud.clouds.msazure.create_storage(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Create a new storage account

CLI Example:

salt-cloud -f create_storage my-azure name=my_storage label=my_storage location='West US'

salt.cloud.clouds.msazure.create_storage_container(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Create a storage container

CLI Example:

salt-cloud -f create_storage_container my-azure name=mycontainer
name:

Name of container to create.

meta_name_values:

Optional. A dict with name_value pairs to associate with the container as metadata. Example:{'Category':'test'}

blob_public_access:

Optional. Possible values include: container, blob

fail_on_exist:

Specify whether to throw an exception when the container exists.

salt.cloud.clouds.msazure.delete_affinity_group(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Delete a specific affinity group associated with the account

CLI Examples:

salt-cloud -f delete_affinity_group my-azure name=my_affinity_group

salt.cloud.clouds.msazure.delete_disk(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Delete a specific disk associated with the account

CLI Examples:

salt-cloud -f delete_disk my-azure name=my_disk
salt-cloud -f delete_disk my-azure name=my_disk delete_vhd=True

salt.cloud.clouds.msazure.delete_input_endpoint(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Delete an input endpoint from the deployment. Please note that there may be a delay before the changes show up.

CLI Example:

salt-cloud -f delete_input_endpoint my-azure service=myservice \
    deployment=mydeployment role=myrole name=HTTP

salt.cloud.clouds.msazure.delete_management_certificate(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Delete a specific certificate associated with the management

CLI Examples:

salt-cloud -f delete_management_certificate my-azure name=my_management_certificate \
    thumbalgorithm=sha1 thumbprint=0123456789ABCDEF

salt.cloud.clouds.msazure.delete_service(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Delete a specific service associated with the account

CLI Examples:

salt-cloud -f delete_service my-azure name=my_service

salt.cloud.clouds.msazure.delete_service_certificate(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Delete a specific certificate associated with the service

CLI Examples:

salt-cloud -f delete_service_certificate my-azure name=my_service_certificate \
    thumbalgorithm=sha1 thumbprint=0123456789ABCDEF

salt.cloud.clouds.msazure.delete_storage(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Delete a specific storage account

CLI Examples:

salt-cloud -f delete_storage my-azure name=my_storage

salt.cloud.clouds.msazure.delete_storage_container(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Delete a container associated with the storage account

CLI Example:

salt-cloud -f delete_storage_container my-azure name=mycontainer
name:

Name of container to create.

fail_not_exist:

Specify whether to throw an exception when the container exists.

lease_id:

If specified, delete_storage_container only succeeds if the container's lease is active and matches this ID.

salt.cloud.clouds.msazure.destroy(name, conn=None, call=None, kwargs=None)

Destroy a VM

CLI Examples:

salt-cloud -d myminion
salt-cloud -a destroy myminion service_name=myservice

salt.cloud.clouds.msazure.get_affinity_group(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Show an affinity group associated with the account

CLI Example:

salt-cloud -f show_affinity_group my-azure service=myservice \
    deployment=mydeployment name=SSH

salt.cloud.clouds.msazure.get_blob(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Download a blob

CLI Example:

salt-cloud -f get_blob my-azure container=base name=top.sls local_path=/srv/salt/top.sls
salt-cloud -f get_blob my-azure container=base name=content.txt return_content=True
container:

Name of existing container.

name:

Name of existing blob.

local_path:

The path on the local machine to download the blob to. Either this or return_content must be specified.

return_content:

Whether or not to return the content directly from the blob. If specified, must be True or False. Either this or the local_path must be specified.

snapshot:

Optional. The snapshot parameter is an opaque DateTime value that, when present, specifies the blob snapshot to retrieve.

lease_id:

Required if the blob has an active lease.

progress_callback:

callback for progress with signature function(current, total) where current is the number of bytes transferred so far, and total is the size of the blob.

max_connections:

Maximum number of parallel connections to use when the blob size exceeds 64MB. Set to 1 to download the blob chunks sequentially. Set to 2 or more to download the blob chunks in parallel. This uses more system resources but will download faster.

max_retries:

Number of times to retry download of blob chunk if an error occurs.

retry_wait:

Sleep time in secs between retries.

salt.cloud.clouds.msazure.get_blob_properties(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Returns all user-defined metadata, standard HTTP properties, and system properties for the blob.

CLI Example:

salt-cloud -f show_blob_properties my-azure container=mycontainer blob=myblob
container:

Name of existing container.

blob:

Name of existing blob.

lease_id:

Required if the blob has an active lease.

salt.cloud.clouds.msazure.get_blob_service_properties(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Show a blob's service properties

CLI Example:

salt-cloud -f show_blob_service_properties my-azure

salt.cloud.clouds.msazure.get_configured_provider()

Return the first configured instance.

salt.cloud.clouds.msazure.get_conn()

Return a conn object for the passed VM data

salt.cloud.clouds.msazure.get_dependencies()

Warn if dependencies aren't met.

salt.cloud.clouds.msazure.get_deployment(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Return information about a deployment

CLI Example:

salt-cloud -f show_deployment my-azure name=my_deployment

salt.cloud.clouds.msazure.get_disk(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Return information about a disk

CLI Example:

salt-cloud -f show_disk my-azure name=my_disk

salt.cloud.clouds.msazure.get_input_endpoint(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Show an input endpoint associated with the deployment

CLI Example:

salt-cloud -f show_input_endpoint my-azure service=myservice \
    deployment=mydeployment name=SSH

salt.cloud.clouds.msazure.get_management_certificate(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Return information about a management_certificate

CLI Example:

salt-cloud -f get_management_certificate my-azure name=my_management_certificate \
    thumbalgorithm=sha1 thumbprint=0123456789ABCDEF

salt.cloud.clouds.msazure.get_operation_status(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Get Operation Status, based on a request ID

CLI Example:

salt-cloud -f get_operation_status my-azure id=0123456789abcdef0123456789abcdef

salt.cloud.clouds.msazure.get_service_certificate(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Return information about a service certificate

CLI Example:

salt-cloud -f show_service_certificate my-azure name=my_service_certificate \
    thumbalgorithm=sha1 thumbprint=0123456789ABCDEF

salt.cloud.clouds.msazure.get_storage(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

List storage service properties

CLI Example:

salt-cloud -f show_storage my-azure name=my_storage

salt.cloud.clouds.msazure.get_storage_conn(storage_account=None, storage_key=None, conn_kwargs=None)

New in version 2015.8.0.

Return a storage_conn object for the storage account

salt.cloud.clouds.msazure.get_storage_container(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Show a container associated with the storage account

CLI Example:

salt-cloud -f show_storage_container my-azure name=myservice
name:

Name of container to show.

salt.cloud.clouds.msazure.get_storage_container_acl(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Show a storage container's acl

CLI Example:

salt-cloud -f show_storage_container_acl my-azure name=myservice
name:

Name of existing container.

lease_id:

If specified, show_storage_container_acl only succeeds if the container's lease is active and matches this ID.

salt.cloud.clouds.msazure.get_storage_container_metadata(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Show a storage container's metadata

CLI Example:

salt-cloud -f show_storage_container_metadata my-azure name=myservice
name:

Name of container to show.

lease_id:

If specified, show_storage_container_metadata only succeeds if the container's lease is active and matches this ID.

salt.cloud.clouds.msazure.get_storage_keys(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Show storage account keys

CLI Example:

salt-cloud -f show_storage_keys my-azure name=my_storage

salt.cloud.clouds.msazure.lease_storage_container(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Lease a container associated with the storage account

CLI Example:

salt-cloud -f lease_storage_container my-azure name=mycontainer
name:

Name of container to create.

lease_action:

Required. Possible values: acquire|renew|release|break|change

lease_id:

Required if the container has an active lease.

lease_duration:

Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires. A non-infinite lease can be between 15 and 60 seconds. A lease duration cannot be changed using renew or change. For backwards compatibility, the default is 60, and the value is only used on an acquire operation.

lease_break_period:

Optional. For a break operation, this is the proposed duration of seconds that the lease should continue before it is broken, between 0 and 60 seconds. This break period is only used if it is shorter than the time remaining on the lease. If longer, the time remaining on the lease is used. A new lease will not be available before the break period has expired, but the lease may be held for longer than the break period. If this header does not appear with a break operation, a fixed-duration lease breaks after the remaining lease period elapses, and an infinite lease breaks immediately.

proposed_lease_id:

Optional for acquire, required for change. Proposed lease ID, in a GUID string format.

salt.cloud.clouds.msazure.list_affinity_groups(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

List input endpoints associated with the deployment

CLI Example:

salt-cloud -f list_affinity_groups my-azure

salt.cloud.clouds.msazure.list_blobs(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

List blobs associated with the container

CLI Example:

salt-cloud -f list_blobs my-azure container=mycontainer
container:

The name of the storage container

prefix:

Optional. Filters the results to return only blobs whose names begin with the specified prefix.

marker:

Optional. A string value that identifies the portion of the list to be returned with the next list operation. The operation returns a marker value within the response body if the list returned was not complete. The marker value may then be used in a subsequent call to request the next set of list items. The marker value is opaque to the client.

maxresults:

Optional. Specifies the maximum number of blobs to return, including all BlobPrefix elements. If the request does not specify maxresults or specifies a value greater than 5,000, the server will return up to 5,000 items. Setting maxresults to a value less than or equal to zero results in error response code 400 (Bad Request).

include:

Optional. Specifies one or more datasets to include in the response. To specify more than one of these options on the URI, you must separate each option with a comma. Valid values are:

snapshots:

Specifies that snapshots should be included in the enumeration. Snapshots are listed from oldest to newest in the response.

metadata:

Specifies that blob metadata be returned in the response.

uncommittedblobs:

Specifies that blobs for which blocks have been uploaded, but which have not been committed using Put Block List (REST API), be included in the response.

copy:

Version 2012-02-12 and newer. Specifies that metadata related to any current or previous Copy Blob operation should be included in the response.

delimiter:

Optional. When the request includes this parameter, the operation returns a BlobPrefix element in the response body that acts as a placeholder for all blobs whose names begin with the same substring up to the appearance of the delimiter character. The delimiter may be a single character or a string.

salt.cloud.clouds.msazure.list_disks(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

List disks associated with the account

CLI Example:

salt-cloud -f list_disks my-azure

salt.cloud.clouds.msazure.list_hosted_services(conn=None, call=None)

List VMs on this Azure account, with full information

salt.cloud.clouds.msazure.list_input_endpoints(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

List input endpoints associated with the deployment

CLI Example:

salt-cloud -f list_input_endpoints my-azure service=myservice deployment=mydeployment

salt.cloud.clouds.msazure.list_management_certificates(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

List management certificates associated with the subscription

CLI Example:

salt-cloud -f list_management_certificates my-azure name=my_management

salt.cloud.clouds.msazure.list_nodes(conn=None, call=None)

List VMs on this Azure account

salt.cloud.clouds.msazure.list_nodes_full(conn=None, call=None)

List VMs on this Azure account, with full information

salt.cloud.clouds.msazure.list_nodes_select(conn=None, call=None)

Return a list of the VMs that are on the provider, with select fields

salt.cloud.clouds.msazure.list_service_certificates(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

List certificates associated with the service

CLI Example:

salt-cloud -f list_service_certificates my-azure name=my_service

salt.cloud.clouds.msazure.list_services(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

List hosted services associated with the account

CLI Example:

salt-cloud -f list_services my-azure

salt.cloud.clouds.msazure.list_storage(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

List storage accounts associated with the account

CLI Example:

salt-cloud -f list_storage my-azure

salt.cloud.clouds.msazure.list_storage_containers(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

List containers associated with the storage account

CLI Example:

salt-cloud -f list_storage_containers my-azure

salt.cloud.clouds.msazure.list_storage_services(conn=None, call=None)

List VMs on this Azure account, with full information

salt.cloud.clouds.msazure.list_virtual_networks(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

List input endpoints associated with the deployment

CLI Example:

salt-cloud -f list_virtual_networks my-azure service=myservice deployment=mydeployment

salt.cloud.clouds.msazure.make_blob_url(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Creates the URL to access a blob

CLI Example:

salt-cloud -f make_blob_url my-azure container=mycontainer blob=myblob
container:

Name of the container.

blob:

Name of the blob.

account:

Name of the storage account. If not specified, derives the host base from the provider configuration.

protocol:

Protocol to use: 'http' or 'https'. If not specified, derives the host base from the provider configuration.

host_base:

Live host base URL. If not specified, derives the host base from the provider configuration.

salt.cloud.clouds.msazure.put_blob(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Upload a blob

CLI Examples:

salt-cloud -f put_blob my-azure container=base name=top.sls blob_path=/srv/salt/top.sls
salt-cloud -f put_blob my-azure container=base name=content.txt blob_content='Some content'
container:

Name of existing container.

name:

Name of existing blob.

blob_path:

The path on the local machine of the file to upload as a blob. Either this or blob_content must be specified.

blob_content:

The actual content to be uploaded as a blob. Either this or blob_path must me specified.

cache_control:

Optional. The Blob service stores this value but does not use or modify it.

content_language:

Optional. Specifies the natural languages used by this resource.

content_md5:

Optional. An MD5 hash of the blob content. This hash is used to verify the integrity of the blob during transport. When this header is specified, the storage service checks the hash that has arrived with the one that was sent. If the two hashes do not match, the operation will fail with error code 400 (Bad Request).

blob_content_type:

Optional. Set the blob's content type.

blob_content_encoding:

Optional. Set the blob's content encoding.

blob_content_language:

Optional. Set the blob's content language.

blob_content_md5:

Optional. Set the blob's MD5 hash.

blob_cache_control:

Optional. Sets the blob's cache control.

meta_name_values:

A dict containing name, value for metadata.

lease_id:

Required if the blob has an active lease.

salt.cloud.clouds.msazure.query(path, method='GET', data=None, params=None, header_dict=None, decode=True)

Perform a query directly against the Azure REST API

salt.cloud.clouds.msazure.regenerate_storage_keys(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Regenerate storage account keys. Requires a key_type ("primary" or "secondary") to be specified.

CLI Example:

salt-cloud -f regenerate_storage_keys my-azure name=my_storage key_type=primary

salt.cloud.clouds.msazure.script(vm_)

Return the script deployment object

salt.cloud.clouds.msazure.set_blob_properties(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Set a blob's properties

CLI Example:

salt-cloud -f set_blob_properties my-azure
container:

Name of existing container.

blob:

Name of existing blob.

blob_cache_control:

Optional. Modifies the cache control string for the blob.

blob_content_type:

Optional. Sets the blob's content type.

blob_content_md5:

Optional. Sets the blob's MD5 hash.

blob_content_encoding:

Optional. Sets the blob's content encoding.

blob_content_language:

Optional. Sets the blob's content language.

lease_id:

Required if the blob has an active lease.

blob_content_disposition:

Optional. Sets the blob's Content-Disposition header. The Content-Disposition response header field conveys additional information about how to process the response payload, and also can be used to attach additional metadata. For example, if set to attachment, it indicates that the user-agent should not display the response, but instead show a Save As dialog with a filename other than the blob name specified.

salt.cloud.clouds.msazure.set_blob_service_properties(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Sets the properties of a storage account's Blob service, including Windows Azure Storage Analytics. You can also use this operation to set the default request version for all incoming requests that do not have a version specified.

CLI Example:

salt-cloud -f set_blob_service_properties my-azure
properties:

a StorageServiceProperties object.

timeout:

Optional. The timeout parameter is expressed in seconds.

salt.cloud.clouds.msazure.set_storage_container_acl(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Set a storage container's acl

CLI Example:

salt-cloud -f set_storage_container my-azure name=mycontainer
name:

Name of existing container.

signed_identifiers:

SignedIdentifers instance

blob_public_access:

Optional. Possible values include: container, blob

lease_id:

If specified, set_storage_container_acl only succeeds if the container's lease is active and matches this ID.

salt.cloud.clouds.msazure.set_storage_container_metadata(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Set a storage container's metadata

CLI Example:

salt-cloud -f set_storage_container my-azure name=mycontainer \
    x_ms_meta_name_values='{"my_name": "my_value"}'
name:

Name of existing container.

meta_name_values:

A dict containing name, value for metadata. Example: {'category':'test'}

lease_id:

If specified, set_storage_container_metadata only succeeds if the container's lease is active and matches this ID.

salt.cloud.clouds.msazure.show_affinity_group(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Show an affinity group associated with the account

CLI Example:

salt-cloud -f show_affinity_group my-azure service=myservice \
    deployment=mydeployment name=SSH

salt.cloud.clouds.msazure.show_blob_properties(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Returns all user-defined metadata, standard HTTP properties, and system properties for the blob.

CLI Example:

salt-cloud -f show_blob_properties my-azure container=mycontainer blob=myblob
container:

Name of existing container.

blob:

Name of existing blob.

lease_id:

Required if the blob has an active lease.

salt.cloud.clouds.msazure.show_blob_service_properties(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Show a blob's service properties

CLI Example:

salt-cloud -f show_blob_service_properties my-azure

salt.cloud.clouds.msazure.show_deployment(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Return information about a deployment

CLI Example:

salt-cloud -f show_deployment my-azure name=my_deployment

salt.cloud.clouds.msazure.show_disk(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Return information about a disk

CLI Example:

salt-cloud -f show_disk my-azure name=my_disk

salt.cloud.clouds.msazure.show_input_endpoint(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Show an input endpoint associated with the deployment

CLI Example:

salt-cloud -f show_input_endpoint my-azure service=myservice \
    deployment=mydeployment name=SSH

salt.cloud.clouds.msazure.show_instance(name, call=None)

Show the details from the provider concerning an instance

salt.cloud.clouds.msazure.show_management_certificate(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Return information about a management_certificate

CLI Example:

salt-cloud -f get_management_certificate my-azure name=my_management_certificate \
    thumbalgorithm=sha1 thumbprint=0123456789ABCDEF

salt.cloud.clouds.msazure.show_service(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

List hosted service properties

CLI Example:

salt-cloud -f show_service my-azure name=my_service

salt.cloud.clouds.msazure.show_service_certificate(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Return information about a service certificate

CLI Example:

salt-cloud -f show_service_certificate my-azure name=my_service_certificate \
    thumbalgorithm=sha1 thumbprint=0123456789ABCDEF

salt.cloud.clouds.msazure.show_storage(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

List storage service properties

CLI Example:

salt-cloud -f show_storage my-azure name=my_storage

salt.cloud.clouds.msazure.show_storage_container(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Show a container associated with the storage account

CLI Example:

salt-cloud -f show_storage_container my-azure name=myservice
name:

Name of container to show.

salt.cloud.clouds.msazure.show_storage_container_acl(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Show a storage container's acl

CLI Example:

salt-cloud -f show_storage_container_acl my-azure name=myservice
name:

Name of existing container.

lease_id:

If specified, show_storage_container_acl only succeeds if the container's lease is active and matches this ID.

salt.cloud.clouds.msazure.show_storage_container_metadata(kwargs=None, storage_conn=None, call=None)

New in version 2015.8.0.

Show a storage container's metadata

CLI Example:

salt-cloud -f show_storage_container_metadata my-azure name=myservice
name:

Name of container to show.

lease_id:

If specified, show_storage_container_metadata only succeeds if the container's lease is active and matches this ID.

salt.cloud.clouds.msazure.show_storage_keys(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Show storage account keys

CLI Example:

salt-cloud -f show_storage_keys my-azure name=my_storage

salt.cloud.clouds.msazure.update_affinity_group(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Update an affinity group's properties

CLI Example:

salt-cloud -f update_affinity_group my-azure name=my_group label=my_group

salt.cloud.clouds.msazure.update_disk(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Update a disk's properties

CLI Example:

salt-cloud -f update_disk my-azure name=my_disk label=my_disk
salt-cloud -f update_disk my-azure name=my_disk new_name=another_disk

salt.cloud.clouds.msazure.update_input_endpoint(kwargs=None, conn=None, call=None, activity='update')

New in version 2015.8.0.

Update an input endpoint associated with the deployment. Please note that there may be a delay before the changes show up.

CLI Example:

salt-cloud -f update_input_endpoint my-azure service=myservice \
    deployment=mydeployment role=myrole name=HTTP local_port=80 \
    port=80 protocol=tcp enable_direct_server_return=False \
    timeout_for_tcp_idle_connection=4

salt.cloud.clouds.msazure.update_storage(kwargs=None, conn=None, call=None)

New in version 2015.8.0.

Update a storage account's properties

CLI Example:

salt-cloud -f update_storage my-azure name=my_storage label=my_storage

© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/clouds/all/salt.cloud.clouds.msazure.html