pyaz/iot/hub/__init__.py
def create(name, resource_group, c2d_max_delivery_count=None, c2d_ttl=None, disable_device_sas=None, disable_local_auth=None, disable_module_sas=None, feedback_lock_duration=None, feedback_max_delivery_count=None, feedback_ttl=None, fileupload_notification_lock_duration=None, fileupload_notification_max_delivery_count=None, fileupload_notification_ttl=None, fileupload_notifications=None, fileupload_sas_ttl=None, fileupload_storage_auth_type=None, fileupload_storage_connectionstring=None, fileupload_storage_container_name=None, fileupload_storage_container_uri=None, fileupload_storage_identity=None, location=None, mi_system_assigned=None, mi_user_assigned=None, min_tls_version=None, partition_count=None, retention_day=None, role=None, scopes=None, sku=None, tags=None, unit=None):
    '''
    Create an Azure IoT hub.

    Required Parameters:
    - name -- IoT Hub name.
    - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>`

    Optional Parameters:
    - c2d_max_delivery_count -- The number of times the IoT hub will attempt to deliver a cloud-to-device message to a device, between 1 and 100.
    - c2d_ttl -- The amount of time a message is available for the device to consume before it is expired by IoT Hub, between 1 and 48 hours.
    - disable_device_sas -- A boolean indicating whether or not to disable all device (including Edge devices but excluding modules) scoped SAS keys for authentication
    - disable_local_auth -- A boolean indicating whether or not to disable IoT hub scoped SAS keys for authentication.
    - disable_module_sas -- A boolean indicating whether or not to disable module-scoped SAS keys for authentication.
    - feedback_lock_duration -- The lock duration for the feedback queue, between 5 and 300 seconds.
    - feedback_max_delivery_count -- The number of times the IoT hub attempts to deliver a message on the feedback queue, between 1 and 100.
    - feedback_ttl -- The period of time for which the IoT hub will maintain the feedback for expiration or delivery of cloud-to-device messages, between 1 and 48 hours.
    - fileupload_notification_lock_duration -- The lock duration for the file upload notifications queue, between 5 and 300 seconds.
    - fileupload_notification_max_delivery_count -- The number of times the IoT hub will attempt to deliver a file notification message, between 1 and 100.
    - fileupload_notification_ttl -- The amount of time a file upload notification is available for the service to consume before it is expired by IoT Hub, between 1 and 48 hours.
    - fileupload_notifications -- A boolean indicating whether to log information about uploaded files to the messages/servicebound/filenotifications IoT Hub endpoint.
    - fileupload_sas_ttl -- The amount of time a SAS URI generated by IoT Hub is valid before it expires, between 1 and 24 hours.
    - fileupload_storage_auth_type -- The authentication type for the Azure Storage account to which files are uploaded.
    - fileupload_storage_connectionstring -- The connection string for the Azure Storage account to which files are uploaded.
    - fileupload_storage_container_name -- The name of the root container where you upload files. The container need not exist but should be creatable using the connectionString specified.
    - fileupload_storage_container_uri -- The container URI for the Azure Storage account to which files are uploaded.
    - fileupload_storage_identity -- The managed identity to use for file upload authentication. Use '[system]' to refer to the system-assigned managed identity or a resource ID to refer to a user-assigned managed identity.
    - location -- Location of your IoT Hub. Default is the location of target resource group.
    - mi_system_assigned -- Enable system-assigned managed identity for this hub
    - mi_user_assigned -- Enable user-assigned managed identities for this hub. Accept space-separated list of identity resource IDs.
    - min_tls_version -- Specify the minimum TLS version to support for this hub. Can be set to "1.2" to have clients that use a TLS version below 1.2 to be rejected.
    - partition_count -- The number of partitions of the backing Event Hub for device-to-cloud messages.
    - retention_day -- Specifies how long this IoT hub will maintain device-to-cloud events, between 1 and 7 days.
    - role -- Role to assign to the hub's system-assigned managed identity.
    - scopes -- Space separated list of scopes to assign the role (--role) for the system-assigned managed identity.
    - sku -- Pricing tier for Azure IoT Hub. Note that only one free IoT hub instance (F1) is allowed in each subscription. Exception will be thrown if free instances exceed one.
    - tags -- space-separated tags: key[=value] [key[=value] ...]. Use '' to clear existing tags.
    - unit -- Units in your IoT Hub.
    '''
    return _call_az("az iot hub create", locals())

    Create an Azure IoT hub.

    Required Parameters:
    - name -- IoT Hub name.
    - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>`

    Optional Parameters:
    - c2d_max_delivery_count -- The number of times the IoT hub will attempt to deliver a cloud-to-device message to a device, between 1 and 100.
    - c2d_ttl -- The amount of time a message is available for the device to consume before it is expired by IoT Hub, between 1 and 48 hours.
    - disable_device_sas -- A boolean indicating whether or not to disable all device (including Edge devices but excluding modules) scoped SAS keys for authentication
    - disable_local_auth -- A boolean indicating whether or not to disable IoT hub scoped SAS keys for authentication.
    - disable_module_sas -- A boolean indicating whether or not to disable module-scoped SAS keys for authentication.
    - feedback_lock_duration -- The lock duration for the feedback queue, between 5 and 300 seconds.
    - feedback_max_delivery_count -- The number of times the IoT hub attempts to deliver a message on the feedback queue, between 1 and 100.
    - feedback_ttl -- The period of time for which the IoT hub will maintain the feedback for expiration or delivery of cloud-to-device messages, between 1 and 48 hours.
    - fileupload_notification_lock_duration -- The lock duration for the file upload notifications queue, between 5 and 300 seconds.
    - fileupload_notification_max_delivery_count -- The number of times the IoT hub will attempt to deliver a file notification message, between 1 and 100.
    - fileupload_notification_ttl -- The amount of time a file upload notification is available for the service to consume before it is expired by IoT Hub, between 1 and 48 hours.
    - fileupload_notifications -- A boolean indicating whether to log information about uploaded files to the messages/servicebound/filenotifications IoT Hub endpoint.
    - fileupload_sas_ttl -- The amount of time a SAS URI generated by IoT Hub is valid before it expires, between 1 and 24 hours.
    - fileupload_storage_auth_type -- The authentication type for the Azure Storage account to which files are uploaded.
    - fileupload_storage_connectionstring -- The connection string for the Azure Storage account to which files are uploaded.
    - fileupload_storage_container_name -- The name of the root container where you upload files. The container need not exist but should be creatable using the connectionString specified.
    - fileupload_storage_container_uri -- The container URI for the Azure Storage account to which files are uploaded.
    - fileupload_storage_identity -- The managed identity to use for file upload authentication. Use '[system]' to refer to the system-assigned managed identity or a resource ID to refer to a user-assigned managed identity.
    - location -- Location of your IoT Hub. Default is the location of target resource group.
    - mi_system_assigned -- Enable system-assigned managed identity for this hub
    - mi_user_assigned -- Enable user-assigned managed identities for this hub. Accept space-separated list of identity resource IDs.
    - min_tls_version -- Specify the minimum TLS version to support for this hub. Can be set to "1.2" to have clients that use a TLS version below 1.2 to be rejected.
    - partition_count -- The number of partitions of the backing Event Hub for device-to-cloud messages.
    - retention_day -- Specifies how long this IoT hub will maintain device-to-cloud events, between 1 and 7 days.
    - role -- Role to assign to the hub's system-assigned managed identity.
    - scopes -- Space separated list of scopes to assign the role (--role) for the system-assigned managed identity.
    - sku -- Pricing tier for Azure IoT Hub. Note that only one free IoT hub instance (F1) is allowed in each subscription. Exception will be thrown if free instances exceed one.
    - tags -- space-separated tags: key[=value] [key[=value] ...]. Use '' to clear existing tags.
    - unit -- Units in your IoT Hub.
    
Create an Azure IoT hub.
Required Parameters:
name -- IoT Hub name.
resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=`

Optional Parameters:
c2d_max_delivery_count -- The number of times the IoT hub will attempt to deliver a cloud-to-device message to a device, between 1 and 100.
c2d_ttl -- The amount of time a message is available for the device to consume before it is expired by IoT Hub, between 1 and 48 hours.
disable_device_sas -- A boolean indicating whether or not to disable all device (including Edge devices but excluding modules) scoped SAS keys for authentication
disable_local_auth -- A boolean indicating whether or not to disable IoT hub scoped SAS keys for authentication.
disable_module_sas -- A boolean indicating whether or not to disable module-scoped SAS keys for authentication.
feedback_lock_duration -- The lock duration for the feedback queue, between 5 and 300 seconds.
feedback_max_delivery_count -- The number of times the IoT hub attempts to deliver a message on the feedback queue, between 1 and 100.
feedback_ttl -- The period of time for which the IoT hub will maintain the feedback for expiration or delivery of cloud-to-device messages, between 1 and 48 hours.
fileupload_notification_lock_duration -- The lock duration for the file upload notifications queue, between 5 and 300 seconds.
fileupload_notification_max_delivery_count -- The number of times the IoT hub will attempt to deliver a file notification message, between 1 and 100.
fileupload_notification_ttl -- The amount of time a file upload notification is available for the service to consume before it is expired by IoT Hub, between 1 and 48 hours.
fileupload_notifications -- A boolean indicating whether to log information about uploaded files to the messages/servicebound/filenotifications IoT Hub endpoint.
fileupload_sas_ttl -- The amount of time a SAS URI generated by IoT Hub is valid before it expires, between 1 and 24 hours.
fileupload_storage_auth_type -- The authentication type for the Azure Storage account to which files are uploaded.
fileupload_storage_connectionstring -- The connection string for the Azure Storage account to which files are uploaded.
fileupload_storage_container_name -- The name of the root container where you upload files. The container need not exist but should be creatable using the connectionString specified.
fileupload_storage_container_uri -- The container URI for the Azure Storage account to which files are uploaded.
fileupload_storage_identity -- The managed identity to use for file upload authentication. Use '[system]' to refer to the system-assigned managed identity or a resource ID to refer to a user-assigned managed identity.
location -- Location of your IoT Hub. Default is the location of target resource group.
Create an Azure IoT hub . Required Parameters : name -- IoT Hub name . resource_group -- Name of resource group . You can configure the default group using ` az configure -- defaults group = ` Optional Parameters : c2d_max_delivery_count -- The number of times the IoT hub will attempt to deliver a cloud - to - device message to a device between 1 and 100 . c2d_ttl -- The amount of time a message is available for the device to consume before it is expired by IoT Hub between 1 and 48 hours . disable_device_sas -- A boolean indicating whether or not to disable all device ( including Edge devices but excluding modules ) scoped SAS keys for authentication disable_local_auth -- A boolean indicating whether or not to disable IoT hub scoped SAS keys for authentication . disable_module_sas -- A boolean indicating whether or not to disable module - scoped SAS keys for authentication . feedback_lock_duration -- The lock duration for the feedback queue between 5 and 300 seconds . feedback_max_delivery_count -- The number of times the IoT hub attempts to deliver a message on the feedback queue between 1 and 100 . feedback_ttl -- The period of time for which the IoT hub will maintain the feedback for expiration or delivery of cloud - to - device messages between 1 and 48 hours . fileupload_notification_lock_duration -- The lock duration for the file upload notifications queue between 5 and 300 seconds . fileupload_notification_max_delivery_count -- The number of times the IoT hub will attempt to deliver a file notification message between 1 and 100 . fileupload_notification_ttl -- The amount of time a file upload notification is available for the service to consume before it is expired by IoT Hub between 1 and 48 hours . fileupload_notifications -- A boolean indicating whether to log information about uploaded files to the messages / servicebound / filenotifications IoT Hub endpoint . fileupload_sas_ttl -- The amount of time a SAS URI generated by IoT Hub is valid before it expires between 1 and 24 hours . fileupload_storage_auth_type -- The authentication type for the Azure Storage account to which files are uploaded . fileupload_storage_connectionstring -- The connection string for the Azure Storage account to which files are uploaded . fileupload_storage_container_name -- The name of the root container where you upload files . The container need not exist but should be creatable using the connectionString specified . fileupload_storage_container_uri -- The container URI for the Azure Storage account to which files are uploaded . fileupload_storage_identity -- The managed identity to use for file upload authentication . Use ' [ system ] ' to refer to the system - assigned managed identity or a resource ID to refer to a user - assigned managed identity . location -- Location of your IoT Hub . Default is the location of target resource group .
def create(name, resource_group, c2d_max_delivery_count=None, c2d_ttl=None, disable_device_sas=None, disable_local_auth=None, disable_module_sas=None, feedback_lock_duration=None, feedback_max_delivery_count=None, feedback_ttl=None, fileupload_notification_lock_duration=None, fileupload_notification_max_delivery_count=None, fileupload_notification_ttl=None, fileupload_notifications=None, fileupload_sas_ttl=None, fileupload_storage_auth_type=None, fileupload_storage_connectionstring=None, fileupload_storage_container_name=None, fileupload_storage_container_uri=None, fileupload_storage_identity=None, location=None, mi_system_assigned=None, mi_user_assigned=None, min_tls_version=None, partition_count=None, retention_day=None, role=None, scopes=None, sku=None, tags=None, unit=None):
    return _call_az("az iot hub create", locals())
def create ( name , resource_group , c2d_max_delivery_count = None , c2d_ttl = None , disable_device_sas = None , disable_local_auth = None , disable_module_sas = None , feedback_lock_duration = None , feedback_max_delivery_count = None , feedback_ttl = None , fileupload_notification_lock_duration = None , fileupload_notification_max_delivery_count = None , fileupload_notification_ttl = None , fileupload_notifications = None , fileupload_sas_ttl = None , fileupload_storage_auth_type = None , fileupload_storage_connectionstring = None , fileupload_storage_container_name = None , fileupload_storage_container_uri = None , fileupload_storage_identity = None , location = None , mi_system_assigned = None , mi_user_assigned = None , min_tls_version = None , partition_count = None , retention_day = None , role = None , scopes = None , sku = None , tags = None , unit = None ) : return _call_az ( "az iot hub create" , locals ( ) )
Create an Azure IoT hub.
Create an Azure IoT hub .
'''
    Create an Azure IoT hub.

    Required Parameters:
    - name -- IoT Hub name.
    - resource_group -- Name of resource group. You can configure the default group using `az configure --defaults group=<name>`

    Optional Parameters:
    - c2d_max_delivery_count -- The number of times the IoT hub will attempt to deliver a cloud-to-device message to a device, between 1 and 100.
    - c2d_ttl -- The amount of time a message is available for the device to consume before it is expired by IoT Hub, between 1 and 48 hours.
    - disable_device_sas -- A boolean indicating whether or not to disable all device (including Edge devices but excluding modules) scoped SAS keys for authentication
    - disable_local_auth -- A boolean indicating whether or not to disable IoT hub scoped SAS keys for authentication.
    - disable_module_sas -- A boolean indicating whether or not to disable module-scoped SAS keys for authentication.
    - feedback_lock_duration -- The lock duration for the feedback queue, between 5 and 300 seconds.
    - feedback_max_delivery_count -- The number of times the IoT hub attempts to deliver a message on the feedback queue, between 1 and 100.
    - feedback_ttl -- The period of time for which the IoT hub will maintain the feedback for expiration or delivery of cloud-to-device messages, between 1 and 48 hours.
    - fileupload_notification_lock_duration -- The lock duration for the file upload notifications queue, between 5 and 300 seconds.
    - fileupload_notification_max_delivery_count -- The number of times the IoT hub will attempt to deliver a file notification message, between 1 and 100.
    - fileupload_notification_ttl -- The amount of time a file upload notification is available for the service to consume before it is expired by IoT Hub, between 1 and 48 hours.
    - fileupload_notifications -- A boolean indicating whether to log information about uploaded files to the messages/servicebound/filenotifications IoT Hub endpoint.
    - fileupload_sas_ttl -- The amount of time a SAS URI generated by IoT Hub is valid before it expires, between 1 and 24 hours.
    - fileupload_storage_auth_type -- The authentication type for the Azure Storage account to which files are uploaded.
    - fileupload_storage_connectionstring -- The connection string for the Azure Storage account to which files are uploaded.
    - fileupload_storage_container_name -- The name of the root container where you upload files. The container need not exist but should be creatable using the connectionString specified.
    - fileupload_storage_container_uri -- The container URI for the Azure Storage account to which files are uploaded.
    - fileupload_storage_identity -- The managed identity to use for file upload authentication. Use '[system]' to refer to the system-assigned managed identity or a resource ID to refer to a user-assigned managed identity.
    - location -- Location of your IoT Hub. Default is the location of target resource group.
    - mi_system_assigned -- Enable system-assigned managed identity for this hub
    - mi_user_assigned -- Enable user-assigned managed identities for this hub. Accept space-separated list of identity resource IDs.
    - min_tls_version -- Specify the minimum TLS version to support for this hub. Can be set to "1.2" to have clients that use a TLS version below 1.2 to be rejected.
    - partition_count -- The number of partitions of the backing Event Hub for device-to-cloud messages.
    - retention_day -- Specifies how long this IoT hub will maintain device-to-cloud events, between 1 and 7 days.
    - role -- Role to assign to the hub's system-assigned managed identity.
    - scopes -- Space separated list of scopes to assign the role (--role) for the system-assigned managed identity.
    - sku -- Pricing tier for Azure IoT Hub. Note that only one free IoT hub instance (F1) is allowed in each subscription. Exception will be thrown if free instances exceed one.
    - tags -- space-separated tags: key[=value] [key[=value] ...]. Use '' to clear existing tags.
    - unit -- Units in your IoT Hub.
    '''
name
resource_group
c2d_max_delivery_count
c2d_ttl
disable_device_sas
disable_local_auth
disable_module_sas
feedback_lock_duration
feedback_max_delivery_count
feedback_ttl
fileupload_notification_lock_duration
fileupload_notification_max_delivery_count
fileupload_notification_ttl
fileupload_notifications
fileupload_sas_ttl
fileupload_storage_auth_type
fileupload_storage_connectionstring
fileupload_storage_container_name
fileupload_storage_container_uri
fileupload_storage_identity
location
mi_system_assigned
mi_user_assigned
min_tls_version
partition_count
retention_day
role
scopes
sku
tags
unit