{ "info": { "author": "Microsoft Corporation", "author_email": "ptvshelp@microsoft.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "Microsoft Azure SDK for Python\n==============================\n\nThis is the Microsoft Azure Service Management Legacy Client Library.\n\nAll packages in this bundle have been tested with Python 2.7, 3.3, 3.4 and 3.5.\n\nFor the newer Azure Resource Management (ARM) libraries, see `azure-mgmt `__.\n\nFor a more complete set of Azure libraries, see the `azure `__ bundle package.\n\n\nCompatibility\n=============\n\n**IMPORTANT**: If you have an earlier version of the azure package\n(version < 1.0), you should uninstall it before installing this package.\n\nYou can check the version using pip:\n\n.. code:: shell\n\n pip freeze\n\nIf you see azure==0.11.0 (or any version below 1.0), uninstall it first:\n\n.. code:: shell\n\n pip uninstall azure\n\n\nFeatures\n========\n\n- Cloud Service management (Virtual Machines, VM Images, OS Images)\n- Storage accounts management\n- Scheduler management\n- Service Bus management\n- Affinity Group management\n- Management certificate management\n- Web Apps (Website) management\n\n\nInstallation\n============\n\nDownload Package\n----------------\n\nTo install via the Python Package Index (PyPI), type:\n\n.. code:: shell\n\n pip install azure-servicemanagement-legacy\n\n\nDownload Source Code\n--------------------\n\nTo get the source code of the SDK via **git** type:\n\n.. code:: shell\n\n git clone https://github.com/Azure/azure-sdk-for-python.git\n cd azure-sdk-for-python\n cd azure-servicemanagement-legacy\n python setup.py install\n\n\nUsage\n=====\n\nAuthentication\n--------------\n\nSet-up certificates\n~~~~~~~~~~~~~~~~~~~\n\nYou will need two certificates, one for the server (a .cer file) and one for\nthe client (a .pem file).\n\nUsing the Azure .PublishSettings certificate\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nYou can download your Azure publish settings file and use the certificate that\nis embedded in that file to create the client certificate. The server\ncertificate already exists, so you won't need to upload one.\n\nTo do this, download your `publish settings `__\nthen use this code to create the .pem file.\n\n.. code:: python\n\n from azure.servicemanagement import get_certificate_from_publish_settings\n\n subscription_id = get_certificate_from_publish_settings(\n publish_settings_path='MyAccount.PublishSettings',\n path_to_write_certificate='mycert.pem',\n subscription_id='00000000-0000-0000-0000-000000000000',\n )\n\nThe subscription id parameter is optional. If there are more than one\nsubscription in the publish settings, the first one will be used.\n\nCreating and uploading new certificate with OpenSSL\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo create the .pem file using `OpenSSL `__, execute this:\n\n.. code:: shell\n\n openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem\n\nTo create the .cer certificate, execute this:\n\n.. code:: shell\n\n openssl x509 -inform pem -in mycert.pem -outform der -out mycert.cer\n\nAfter you have created the certificate, you will need to upload the .cer\nfile to Microsoft Azure via the \"Upload\" action of the \"Settings\" tab of\nthe `management portal `__.\n\n\nServiceManagementService\n------------------------\n\nInitialization\n~~~~~~~~~~~~~~\n\nTo initialize the management service, pass in your subscription id and\nthe path to the .pem file.\n\n.. code:: python\n\n from azure.servicemanagement import ServiceManagementService\n subscription_id = '00000000-0000-0000-0000-000000000000'\n cert_file = 'mycert.pem'\n sms = ServiceManagementService(subscription_id, cert_file)\n\nList Available Locations\n~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code:: python\n\n locations = sms.list_locations()\n for location in locations:\n print(location.name)\n\nCreate a Storage Service\n~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo create a storage service, you need a name for the service (between 3\nand 24 lowercase characters and unique within Microsoft Azure), a label\n(up to 100 characters, automatically encoded to base-64), and either a\nlocation or an affinity group.\n\n.. code:: python\n\n name = \"mystorageservice\"\n desc = name\n label = name\n location = 'West US'\n\n result = sms.create_storage_account(name, desc, label, location=location)\n sms.wait_for_operation_status(result.request_id, timeout=30)\n\nCreate a Cloud Service\n~~~~~~~~~~~~~~~~~~~~~~\n\nA cloud service is also known as a hosted service (from earlier versions\nof Microsoft Azure). The **create\\_hosted\\_service** method allows you\nto create a new hosted service by providing a hosted service name (which\nmust be unique in Microsoft Azure), a label (automatically encoded to\nbase-64), and the location *or* the affinity group for your service.\n\n.. code:: python\n\n name = \"myhostedservice\"\n desc = name\n label = name\n location = 'West US'\n\n result = sms.create_hosted_service(name, label, desc, location=location)\n sms.wait_for_operation_status(result.request_id, timeout=30)\n\nCreate a Virtual Machine\n~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo create a virtual machine, you first need to create a cloud service.\nThen create the virtual machine deployment using the\ncreate_virtual_machine_deployment method.\n\n.. code:: python\n\n from azure.servicemanagement import LinuxConfigurationSet, OSVirtualHardDisk\n\n name = \"myhostedservice\"\n\n # Name of an os image as returned by list_os_images\n image_name = 'OpenLogic__OpenLogic-CentOS-62-20120531-en-us-30GB.vhd'\n\n # Destination storage account container/blob where the VM disk\n # will be created\n media_link = 'url_to_target_storage_blob_for_vm_hd'\n\n # Linux VM configuration, you can use WindowsConfigurationSet\n # for a Windows VM instead\n linux_config = LinuxConfigurationSet(\n 'myhostname',\n 'myuser',\n 'mypassword',\n disable_ssh_password_authentication=True,\n )\n\n os_hd = OSVirtualHardDisk(image_name, media_link)\n\n result = sms.create_virtual_machine_deployment(\n service_name=name,\n deployment_name=name,\n deployment_slot='production',\n label=name,\n role_name=name,\n system_config=linux_config,\n os_virtual_hard_disk=os_hd,\n role_size='Small',\n )\n sms.wait_for_operation_status(result.request_id, timeout=600)\n\n\nNeed Help?\n==========\n\nBe sure to check out the Microsoft Azure `Developer Forums on Stack\nOverflow `__ if you have\ntrouble with the provided code.\n\n\nContribute Code or Provide Feedback\n===================================\n\nIf you would like to become an active contributor to this project please\nfollow the instructions provided in `Microsoft Azure Projects\nContribution\nGuidelines `__.\n\nIf you encounter any bugs with the library please file an issue in the\n`Issues `__\nsection of the project.\n\n\nLearn More\n==========\n\n`Microsoft Azure Python Developer\nCenter `__", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Azure/azure-sdk-for-python", "keywords": "", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "azure-servicemanagement-legacy", "package_url": "https://pypi.org/project/azure-servicemanagement-legacy/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/azure-servicemanagement-legacy/", "project_urls": { "Homepage": "https://github.com/Azure/azure-sdk-for-python" }, "release_url": "https://pypi.org/project/azure-servicemanagement-legacy/0.20.6/", "requires_dist": [ "azure-common (>=1.1.5)", "azure-nspkg (>=2.0.0)", "requests", "pyopenssl; extra == 'get_certificate_from_publish_settings'" ], "requires_python": "", "summary": "Microsoft Azure Legacy Service Management Client Library for Python", "version": "0.20.6" }, "last_serial": 5279893, "releases": { "0.20.0": [ { "comment_text": "", "digests": { "md5": "e6be0ce25e137461cc71689122d1c59c", "sha256": "30142e8469521d44ec7e9387151d24a50e8cd34dae2e530c5a1de9cc8f281a54" }, "downloads": -1, "filename": "azure_servicemanagement_legacy-0.20.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e6be0ce25e137461cc71689122d1c59c", "packagetype": "bdist_wheel", "python_version": "sdk", "requires_python": null, "size": 77197, "upload_time": "2015-08-31T18:07:35", "url": "https://files.pythonhosted.org/packages/02/96/f91831b8665296e2fbe6694d68e8daf1fef83efba82f7e797a8c4e99b73f/azure_servicemanagement_legacy-0.20.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4b6520e76ccc98e5e5b37bf215532cf0", "sha256": "5e05d19ef903d1e5e6852086445b30e4fec5762f6faa8fa5269a9b5dd5e5c430" }, "downloads": -1, "filename": "azure-servicemanagement-legacy-0.20.0.zip", "has_sig": false, "md5_digest": "4b6520e76ccc98e5e5b37bf215532cf0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 82639, "upload_time": "2015-08-31T18:06:51", "url": "https://files.pythonhosted.org/packages/ed/35/fa513c46162e8587feb937398f0e0c51bf5c9f54bcabaa93350091e9c60a/azure-servicemanagement-legacy-0.20.0.zip" } ], "0.20.0rc1": [ { "comment_text": "", "digests": { "md5": "eb37b5b8c1fdb0fb4601bd7dd28977bd", "sha256": "1e683b1a7019da3e864436da0e3dc00f4be5612c5fbf3e6e09a90a0624f0a4c5" }, "downloads": -1, "filename": "azure_servicemanagement_legacy-0.20.0rc1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "eb37b5b8c1fdb0fb4601bd7dd28977bd", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 77244, "upload_time": "2015-08-24T20:13:24", "url": "https://files.pythonhosted.org/packages/ea/61/10d757d630f60d254fc8e63e348b645a27cb949beb01d2c0a3cf995431df/azure_servicemanagement_legacy-0.20.0rc1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ea2d148fc5c0df10e86caedf40500701", "sha256": "5b44c5b18c1366a78aa1d3d51465fa9862d9b4863dd867af38c1541582868afe" }, "downloads": -1, "filename": "azure-servicemanagement-legacy-0.20.0rc1.zip", "has_sig": false, "md5_digest": "ea2d148fc5c0df10e86caedf40500701", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 82658, "upload_time": "2015-08-24T20:09:59", "url": "https://files.pythonhosted.org/packages/b2/bf/8e3b75790fbe330a2bb8540c10dc6f6f65776a0d7076a9a5a3dd8d5420cb/azure-servicemanagement-legacy-0.20.0rc1.zip" } ], "0.20.0rc2": [ { "comment_text": "", "digests": { "md5": "7dffd262f4a8c97423bb5792416b1239", "sha256": "c8063fe81401e50cabc365e9581e62541b96bcb83fea49321e9720ac0f090931" }, "downloads": -1, "filename": "azure_servicemanagement_legacy-0.20.0rc2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7dffd262f4a8c97423bb5792416b1239", "packagetype": "bdist_wheel", "python_version": "sdk", "requires_python": null, "size": 77247, "upload_time": "2015-08-27T22:31:08", "url": "https://files.pythonhosted.org/packages/7c/17/db4e3a2591be6c0e75beb2c92d1880f8ee068e1ceba48a633c77151e1b59/azure_servicemanagement_legacy-0.20.0rc2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7f156aa510d6862f39a6f304ebf93a6d", "sha256": "4200c752655c53f94d8fc7886ffaf4913763448420deb1e571dd834c7be51682" }, "downloads": -1, "filename": "azure-servicemanagement-legacy-0.20.0rc2.zip", "has_sig": false, "md5_digest": "7f156aa510d6862f39a6f304ebf93a6d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 82834, "upload_time": "2015-08-27T22:30:15", "url": "https://files.pythonhosted.org/packages/39/7c/2f95848e54de92084eab3158bb2241f996626beba8b00acaf8c2e351a5e1/azure-servicemanagement-legacy-0.20.0rc2.zip" } ], "0.20.1": [ { "comment_text": "", "digests": { "md5": "df55980333fb332ea488868edc78ca03", "sha256": "d6c85ad94fd78fbc957dc513aafe13b92ea0d9f6c302685bed94eb1daf2434c2" }, "downloads": -1, "filename": "azure_servicemanagement_legacy-0.20.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "df55980333fb332ea488868edc78ca03", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 77031, "upload_time": "2015-09-14T18:32:25", "url": "https://files.pythonhosted.org/packages/5a/63/698fa4c2890e18329d7886b26870ce0b33b0c771024b26fde297803c75de/azure_servicemanagement_legacy-0.20.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6d63bbfe9e036bceef162cf38362609c", "sha256": "faa38104845d242bf2a54039459b69eba5386157b3d14d2a4bbd749dd2cdbc9d" }, "downloads": -1, "filename": "azure-servicemanagement-legacy-0.20.1.zip", "has_sig": false, "md5_digest": "6d63bbfe9e036bceef162cf38362609c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 82471, "upload_time": "2015-09-14T18:32:14", "url": "https://files.pythonhosted.org/packages/5b/4b/013c5b8e782a7b744a6d92a5eb33e884615b9101bace5ddfd73c2e16fef3/azure-servicemanagement-legacy-0.20.1.zip" } ], "0.20.2": [ { "comment_text": "", "digests": { "md5": "7478138968bb2a4801f1d7da85c76551", "sha256": "bcd7ccf5805dfe84d350e7c22afbf872c6fe343eedbcfdba39c4eef0c06d6493" }, "downloads": -1, "filename": "azure_servicemanagement_legacy-0.20.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7478138968bb2a4801f1d7da85c76551", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 78512, "upload_time": "2016-01-21T23:29:14", "url": "https://files.pythonhosted.org/packages/35/2b/0492b637eb8b672fac6e657046212a1740ba9fd43e87b0237b6cd5ddd837/azure_servicemanagement_legacy-0.20.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "254ac6886014c586af73bd0d014f2fb7", "sha256": "728c1c3a4c926800b90b209abd1ffcff588f6003c011c79f637ea487eb5b8b11" }, "downloads": -1, "filename": "azure-servicemanagement-legacy-0.20.2.zip", "has_sig": false, "md5_digest": "254ac6886014c586af73bd0d014f2fb7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 83952, "upload_time": "2016-01-21T23:28:49", "url": "https://files.pythonhosted.org/packages/45/38/3afc6b203ff27f90c28fcad9000b7f34db0a2e4f10e74e55a8a8172a11d8/azure-servicemanagement-legacy-0.20.2.zip" } ], "0.20.3": [ { "comment_text": "", "digests": { "md5": "1b872a43acd0cb2d5e8bb66b3d5cf11f", "sha256": "06bd5416c4f7c56d931af1b341f1f3224aff16a8b71484072680f8ad81c52c9e" }, "downloads": -1, "filename": "azure_servicemanagement_legacy-0.20.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1b872a43acd0cb2d5e8bb66b3d5cf11f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 78688, "upload_time": "2016-03-31T19:20:11", "url": "https://files.pythonhosted.org/packages/6d/d2/27f9447af4003f7784f27c30d3d9bae629f092feec5d7e093f4060438225/azure_servicemanagement_legacy-0.20.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0e8da862f1c729a958d9d41c0695f251", "sha256": "d470cc8dde33ece632b9b4f33ea7fe4324c3a3bb18c69b9b04e3753a1c30f99a" }, "downloads": -1, "filename": "azure-servicemanagement-legacy-0.20.3.zip", "has_sig": false, "md5_digest": "0e8da862f1c729a958d9d41c0695f251", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 84135, "upload_time": "2016-03-31T19:19:30", "url": "https://files.pythonhosted.org/packages/ca/6d/0decd7710a88c29c05c3c1f7035de9a559b232e53080c1c8075ac72f3686/azure-servicemanagement-legacy-0.20.3.zip" } ], "0.20.4": [ { "comment_text": "", "digests": { "md5": "d436ac95f5296781a51d02811b6e7d59", "sha256": "8bc3acd8772ac7720fa87d544f3cf53bce4138449941e3fea4c4bb9e0ca99107" }, "downloads": -1, "filename": "azure_servicemanagement_legacy-0.20.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d436ac95f5296781a51d02811b6e7d59", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 79252, "upload_time": "2016-08-01T19:36:10", "url": "https://files.pythonhosted.org/packages/80/3f/861ec7bdf97ba5baa3026ad02ab0612f50bb6ba3fb5f1f7e8ac4926141c0/azure_servicemanagement_legacy-0.20.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cd5c158b810a62176310ad535d885e91", "sha256": "742df8756065ff033d9af974851d2de6df5cc09de53802cf3172646c1e7f2932" }, "downloads": -1, "filename": "azure-servicemanagement-legacy-0.20.4.zip", "has_sig": false, "md5_digest": "cd5c158b810a62176310ad535d885e91", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 84488, "upload_time": "2016-08-01T19:36:13", "url": "https://files.pythonhosted.org/packages/71/72/247d6e15711ace1e0e680d067f34e04facb3bc4b340234c0267b54842b01/azure-servicemanagement-legacy-0.20.4.zip" } ], "0.20.5": [ { "comment_text": "", "digests": { "md5": "807d5b8cca6be7163e846b4e1dd69cfe", "sha256": "e7acc6e051afe447a5b0db909c63abdd2412cbe8e4f85284065f02e9573e99d8" }, "downloads": -1, "filename": "azure_servicemanagement_legacy-0.20.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "807d5b8cca6be7163e846b4e1dd69cfe", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 79381, "upload_time": "2016-09-22T22:34:06", "url": "https://files.pythonhosted.org/packages/63/a8/66d0210b99002342cc44cc9411d118917dd1bdb2f15db94fc6bc9e9477e2/azure_servicemanagement_legacy-0.20.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8889728e595a7322eb44d56668a5951b", "sha256": "350cc6ee6d2190964a30fbbee5a5cb270600fed08713796c642db661acb93749" }, "downloads": -1, "filename": "azure-servicemanagement-legacy-0.20.5.zip", "has_sig": false, "md5_digest": "8889728e595a7322eb44d56668a5951b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 85417, "upload_time": "2016-09-22T22:34:09", "url": "https://files.pythonhosted.org/packages/1c/6d/ed872b401cd44880e411ec2ac1e232438952ed592c4c2a07131708ebdf52/azure-servicemanagement-legacy-0.20.5.zip" } ], "0.20.6": [ { "comment_text": "", "digests": { "md5": "d4846e82d6091f41055f01442af837b8", "sha256": "282d48aae6aa002c59db6f651b68777a8f93692bb8e9b443113e6a8d5ce5e875" }, "downloads": -1, "filename": "azure_servicemanagement_legacy-0.20.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d4846e82d6091f41055f01442af837b8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 78813, "upload_time": "2017-04-27T20:38:30", "url": "https://files.pythonhosted.org/packages/a3/2b/0813d459df7ec04bb8c6a250882ee88b672a5f8d16a237978c89436a053e/azure_servicemanagement_legacy-0.20.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4c97f1c9013d9caba6628488c7e24dd2", "sha256": "c883ff8fa3d4f4cb7b9344e8cb7d92a9feca2aa5efd596237aeea89e5c10981d" }, "downloads": -1, "filename": "azure-servicemanagement-legacy-0.20.6.zip", "has_sig": false, "md5_digest": "4c97f1c9013d9caba6628488c7e24dd2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 91805, "upload_time": "2017-04-27T20:38:32", "url": "https://files.pythonhosted.org/packages/7e/9e/ad8c5e8b2715736df200c0d1baf63d38044d9113145d86c4d53923a81919/azure-servicemanagement-legacy-0.20.6.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d4846e82d6091f41055f01442af837b8", "sha256": "282d48aae6aa002c59db6f651b68777a8f93692bb8e9b443113e6a8d5ce5e875" }, "downloads": -1, "filename": "azure_servicemanagement_legacy-0.20.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d4846e82d6091f41055f01442af837b8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 78813, "upload_time": "2017-04-27T20:38:30", "url": "https://files.pythonhosted.org/packages/a3/2b/0813d459df7ec04bb8c6a250882ee88b672a5f8d16a237978c89436a053e/azure_servicemanagement_legacy-0.20.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4c97f1c9013d9caba6628488c7e24dd2", "sha256": "c883ff8fa3d4f4cb7b9344e8cb7d92a9feca2aa5efd596237aeea89e5c10981d" }, "downloads": -1, "filename": "azure-servicemanagement-legacy-0.20.6.zip", "has_sig": false, "md5_digest": "4c97f1c9013d9caba6628488c7e24dd2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 91805, "upload_time": "2017-04-27T20:38:32", "url": "https://files.pythonhosted.org/packages/7e/9e/ad8c5e8b2715736df200c0d1baf63d38044d9113145d86c4d53923a81919/azure-servicemanagement-legacy-0.20.6.zip" } ] }