diff --git a/.github/workflows/create-endpoint.yml b/.github/workflows/create-endpoint.yml index 6a79fa9d..55d66e25 100644 --- a/.github/workflows/create-endpoint.yml +++ b/.github/workflows/create-endpoint.yml @@ -3,9 +3,6 @@ name: create-endpoint on: workflow_call: inputs: - endpoint_file: - required: true - type: string resource_group: required: true type: string @@ -18,6 +15,9 @@ on: endpoint_type: required: true type: string + endpoint_auth_mode: + required: true + type: string secrets: creds: required: true @@ -38,6 +38,6 @@ jobs: run: az extension update -n ml - name: create-environment-from-file run: | - az ml ${{ inputs.endpoint_type }}-endpoint create --name ${{ inputs.endpoint_name }} \ - -f ${{ github.workspace }}/${{ inputs.endpoint_file }} --resource-group ${{ inputs.resource_group }} \ + az ml ${{ inputs.endpoint_type }}-endpoint create -n ${{ inputs.endpoint_name }} \ + --auth_mode ${{ inputs.endpoint_auth_mode }} --resource-group ${{ inputs.resource_group }} \ --workspace-name ${{ inputs.workspace_name }} diff --git a/.github/workflows/manual-end-to-end-deployment.yml b/.github/workflows/manual-end-to-end-deployment.yml new file mode 100644 index 00000000..ef2b7239 --- /dev/null +++ b/.github/workflows/manual-end-to-end-deployment.yml @@ -0,0 +1,36 @@ +name: manual-end-to-end-deployment + +on: + workflow_dispatch: + inputs: + resource_group: + description: 'The resource group of the Azure Machine Learning workspace' + required: true + type: string + workspace_name: + description: 'The name of the Azure Machine Learning workspace' + required: true + type: string + endpoint_name: + description: 'The name of the endpoint' + required: true + type: string + endpoint_type: + description: 'The type of the endpoint [batch, online]' + required: true + type: string + endpoint_auth_mode: + description: 'The authentication mode of the endpoint [aad_token, aml_token, key]' + required: true + type: string +jobs: + call-create-endpoint: + uses: ./.github/workflows/create-endpoint.yml + with: + resource_group: ${{ github.event.inputs.resource_group }} + workspace_name: ${{ github.event.inputs.workspace_name }} + endpoint_name: ${{ github.event.inputs.endpoint_name }} + endpoint_type: ${{ github.event.inputs.endpoint_type }} + endpoint_auth_mode: ${{ github.event.inputs.endpoint_file }} + secrets: + creds: ${{ secrets.AZURE_CREDENTIALS }} diff --git a/src/sample-project/endpoint-config.yml b/src/sample-project/endpoint-config.yml new file mode 100644 index 00000000..4388c2ca --- /dev/null +++ b/src/sample-project/endpoint-config.yml @@ -0,0 +1,3 @@ +$schema: https://azuremlschemas.azureedge.net/latest/managedOnlineEndpoint.schema.json +name: sample-project-aad-endpoint +auth_mode: aad_token