az hack
Note
This reference is part of the hack extension for the Azure CLI (version 2.0.67 or higher). The extension will automatically install the first time you run an az hack command. Learn more about extensions.
Commands to manage resources commonly used for student hacks.
Commands
Name | Description | Type | Status |
---|---|---|---|
az hack create |
Create resources commonly used for a student hack, including a website, database, and artificial intelligence. |
Extension | GA |
az hack show |
Display settings for created resources, including database name and password, Git url, and website url. |
Extension | GA |
az hack create
Create resources commonly used for a student hack, including a website, database, and artificial intelligence.
az hack create --location
--name
--runtime {aspnet, jetty, node, php, python, tomcat}
[--ai]
[--database {cosmosdb, mysql, sql}]
Examples
Create website using Python and MySQL
az hack create --name samplename --runtime python --location westus2 --database mysql
Create website using Node.js, SQL and Cognitive Services key
az hack create --name samplename --runtime node --location westus2 --database sql --ai
Required Parameters
Location. Values from: az account list-locations
. You can configure the default location using az configure --defaults location=<location>
.
Base name of resources; random charagers will be appended.
Runtime.
Property | Value |
---|---|
Accepted values: | aspnet, jetty, node, php, python, tomcat |
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Enable Azure Cognitive Services.
Database type - { sql | mysql | cosmosdb }.
Property | Value |
---|---|
Accepted values: | cosmosdb, mysql, sql |
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |
az hack show
Display settings for created resources, including database name and password, Git url, and website url.
az hack show --name
Examples
Display settings
az hack show --name samplename
Required Parameters
Name of the application.
Global Parameters
Increase logging verbosity to show all debug logs.
Property | Value |
---|---|
Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
Property | Value |
---|---|
Default value: | False |
Output format.
Property | Value |
---|---|
Default value: | json |
Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Property | Value |
---|---|
Default value: | False |