{"id":26129526,"url":"https://github.com/mathworks-ref-arch/matlab-azure-cli","last_synced_at":"2026-04-24T04:33:39.799Z","repository":{"id":78586871,"uuid":"284652562","full_name":"mathworks-ref-arch/matlab-azure-cli","owner":"mathworks-ref-arch","description":"A MATLAB Interface to the Azure CLI","archived":false,"fork":false,"pushed_at":"2022-09-27T20:39:27.000Z","size":2184,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-26T15:12:59.202Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mathworks-ref-arch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-03T09:02:45.000Z","updated_at":"2022-09-27T20:39:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e986858-05c5-4d80-a8f8-25b1ab134c65","html_url":"https://github.com/mathworks-ref-arch/matlab-azure-cli","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mathworks-ref-arch/matlab-azure-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks-ref-arch%2Fmatlab-azure-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks-ref-arch%2Fmatlab-azure-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks-ref-arch%2Fmatlab-azure-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks-ref-arch%2Fmatlab-azure-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mathworks-ref-arch","download_url":"https://codeload.github.com/mathworks-ref-arch/matlab-azure-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mathworks-ref-arch%2Fmatlab-azure-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32209893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T03:15:14.334Z","status":"ssl_error","status_checked_at":"2026-04-24T03:15:11.608Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-10T19:49:17.309Z","updated_at":"2026-04-24T04:33:39.782Z","avatar_url":"https://github.com/mathworks-ref-arch.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Interface *for Azure CLI*\n\n## Requirements\n\n### MathWorks Products (https://www.mathworks.com)\n\nRequires MATLAB R2016a or later.\n\n### 3rd Party Products\n\n* Microsoft Azure™ command line client, [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest).\n\n\n## Introduction\n\nThis software is a very thin wrapper on top of the Azure command line client.\nIt allows interacting with Azure resources, from within MATLAB, similarly to the way\nit's done from the command line.\n\nIt's very easy to shell out and do a system command in MATLAB,\ne.g. `[r, s] = system('az acr list')` would perform an Azure CLI command and return\nboth the status of the command and the command line output, typically JSON. This is,\nin fact, the exact way that this package uses the Azure CLI.\n\nThis motivation for creating this package can be summarized as follows:\n* The MATLAB package provides tab completion, for easily creating command sequences.\n* Tab completion is also provided for command options/parameters.\n* Help is available (locally, without shelling out to the CLI) for all groups, subgroups\nand commands\n* The return values, in JSON, is decoded into MATLAB variables, making it easy to use\nthe information in subsequent commands.\n\n## Installation\n\nMake sure to have the Azure CLI installed for the operating system being used.\nFurther information can be found here:\n[https://docs.microsoft.com/en-us/cli/azure/get-started-with-azure-cli?view=azure-cli-latest](https://docs.microsoft.com/en-us/cli/azure/get-started-with-azure-cli?view=azure-cli-latest)\n\nRun the `startup.m` file provided with this package.\n\n**Note:** The Azure CLI must already have been installed before MATLAB is started, to ensure it can be found on the path.\n\n## Usage\n\nThis package is a thin wrapper around the Azure CLI commands. The Azure CLI is\nsplit into a large number of groups, subgroups and commands, and the MATLAB \nimplementation maps each group and subgroup to a package, and each command to a class.\n\n*All examples here refer to *the current subscription(s) used*, i.e. only resources for these\nsubscriptions are visible.*\n\n### Login\nTo use the Azure CLI, the user must be logged in first. If logged in through the terminal or command window, this login can be used. If not logged in, this can\nbe done explicitly by\n```matlab\naz.login().run();\n```\nwhich will open a browser and prompt for login there. If the session is unable to\nopen a browser window, instead run\n```matlab\nlogIn = az.login();\nlogIn.use_device_code();\nlogIn.run();\n```\nand follow the instructions.\n\nIf logging in with username and password as arguments, consider\n[deleting command history entries](https://www.mathworks.com/help/matlab/ref/commandhistory.html) after this.\n\n### Simple commands\nFor example, to list all Azure Container Registries, run the following on the command line:\n```bash\n$ az acr list\n```\nTo do this in MATLAB, first instantiate the command, optionally add options,\nand then run it:\n\n```matlab\na = az.acr.list();  % Instantiate command\na.run();            % Run the command\n```\nThis can also be done in a single line of code, i.e.\n```matlab\na = az.acr.list().run()\n```\n\nThe commands also take parameters, which can be added as follows\n\n```matlab\nRGc = az.group.create();\nRGc.tags('app=server');\nRGc.location('eastus');\nRGc.name('Server-RG');\n\nRG = RGc.run()\nExecuting: az group create --tags app=server --location eastus --name Server-RG \nRG = \n  struct with fields:\n\n            id: '/subscriptions/0\u003cREDACTED\u003e4/resourceGroups/Server-RG'\n      location: 'eastus'\n     managedBy: []\n          name: 'Server-RG'\n    properties: [1×1 struct]\n          tags: [1×1 struct]\n          type: 'Microsoft.Resources/resourceGroups'\n\u003e\u003e \n```\n\nAs seen by the output, when there is JSON output, it will be converted to a MATLAB structure.\n\nThe different parameters are methods of the class, so tab completion will work. The \ninterface is also fluent, so that it's possible to chain commands together like below. In this\ncase, however, the tab completion will not work except for the first method.\n\n\n```matlab\nRG = az.group.create() ...\n    .tags('app=server') ...\n    .location('eastus') ...\n    .name('Server-RG') ...\n    .run();\n```\n\nThe Azure CLI furthermore provides help, which has been duplicated in MATLAB. To see the\nhelp for a group, subgroup or command, just add `.help` to it, e.g.\n```matlab\naz.group.help()\n\nQ = az.account.list();\nQ.help\n```\n\nPlease see the [documentation](Documentation/README.md) for more examples.\n\n\n## License\nThe license for the Interface *for Azure CLI* is available in the [LICENSE.md](LICENSE.md) file in this GitHub repository.\n\nThis package uses the Microsoft Azure CLI which is licensed under a separate\n[Azure CLI License](./Azure-CLI-LICENSE).\nThis package also contains help files that reproduce the help from the Azure CLI,\nwhich is also licensed under the same Azure CLI license.\n\n## Enhancement Requests\n\nProvide suggestions for additional features or capabilities using the following link:\nhttps://www.mathworks.com/products/reference-architectures/request-new-reference-architectures.html\n\n## Support\n\nEmail: mwlab@mathworks.com\n\n[//]: #  (Copyright 2019-2020 The MathWorks, Inc.)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks-ref-arch%2Fmatlab-azure-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathworks-ref-arch%2Fmatlab-azure-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathworks-ref-arch%2Fmatlab-azure-cli/lists"}