Skip to content

Commit c4b8cc8

Browse files
committed
add CLI command
1 parent c80249f commit c4b8cc8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

articles/machine-learning/how-to-use-serverless-compute.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ When you [view your usage and quota in the Azure portal](how-to-manage-quotas.md
111111

112112
# [Azure CLI](#tab/cli)
113113

114+
` Create a file named hello.yaml with the following content:
115+
114116
```yml
115117
$schema: https://azuremlschemas.azureedge.net/latest/commandJob.schema.json
116118
command: echo "hello world"
@@ -119,7 +121,12 @@ When you [view your usage and quota in the Azure portal](how-to-manage-quotas.md
119121
identity:
120122
type: user_identity
121123
```
124+
Run the file using the following command:
122125

126+
```bash
127+
az ml job create --file hello.yaml --resource-group my-resource-group --workspace-name my-workspace
128+
```
129+
The rest of the CLI examples show variations of the hello.yaml file. Run each of them in the same way.
123130
---
124131

125132
* **User-assigned managed identity** : When you have a workspace configured with [user-assigned managed identity](how-to-identity-based-service-authentication.md#workspace), you can use that identity with the serverless job for storage access. To access secrets, see [Use authentication credential secrets in Azure Machine Learning jobs](how-to-use-secrets-in-runs.md).

0 commit comments

Comments
 (0)