Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
00c59c2
[Role] az ad sp create-for-rbac: Deprecate creating Contributor role …
jiasli Dec 22, 2020
8d3bbbb
[SQL] az sql dw update: fix update to not accept backup-storage-redun…
xaliciayang Dec 22, 2020
4ef9e0e
[BACKUP] az backup job list: Solved -o table bug and added backup_man…
akshayneema Dec 22, 2020
aea4f5e
[AppService] Unhide Python 3.9 in functionapp create (#16296)
Hazhzeng Dec 23, 2020
791150e
{Storage} Fix issue #9948: 'az storage container create' required '--…
Juliehzl Dec 23, 2020
8001d4b
[DataBoxEdge] new command module: support for data-box-edge devices a…
evelyn-ys Dec 23, 2020
94dcc6a
[Synapse] Add new cmdlets for synapse sql aad admin and sql audit pol…
aim-for-better Dec 23, 2020
bedfc6f
{Telemetry} Reomve trace stack info in Telemetry (#16332)
houk-ms Dec 23, 2020
7361b99
Extract error code and error message from HttpOperationError (#16273)
houk-ms Dec 23, 2020
903ecf1
Fix spelling (mySubscrpitionId) (#16252)
scovetta Dec 23, 2020
7882147
[AppService] Fixes #14583: az webapp up should generate default name …
calvinsID Dec 23, 2020
37c8d72
[ARO] Ensure worker_profile is not None before getting the subnets fr…
bennerv Dec 23, 2020
3776643
[ACR] bump api version. support zone redundancy (#15975)
adewaleo Dec 23, 2020
df80a09
[Synapse] Add integration runtime related cmdlets (#15498)
wonner Dec 24, 2020
885e78d
[Resource] az provider register: Add --accept-terms for registering R…
fengzhou-msft Dec 24, 2020
e5eefd2
[Profile] Fix "missing secret or certificate in order to authenticate…
jiasli Dec 24, 2020
02bbf1f
[ACR] az acr connected-acr create/update/delete/list/show: new featur…
rosanch Dec 24, 2020
7270756
{Network} Migrate network SDK that is used by some other modules to t…
jsntcy Dec 24, 2020
25912fd
[ARM] `az deployment`: Fix parse errors with multiline strings (#15502)
wiktorn Dec 25, 2020
288e18d
{Storage} Fix live test (#15948)
Juliehzl Dec 25, 2020
cf9a4dc
[AppService] Bugfix: Better error handling when trying to create dupl…
calvinsID Dec 25, 2020
e836dd2
{Storage} Fix issue #13478 to add more information for requires_sync …
Juliehzl Dec 25, 2020
357c9c9
{Release} Upgrade to Azure CLI 2.17.0 (#16362)
Dec 25, 2020
57ce1e6
fix branch (#16364)
fengzhou-msft Dec 25, 2020
b9f69b6
Migrate to Track 2 mgmt SDK (#16376)
avanigupta Dec 29, 2020
dff16b2
[Storage] Fix #16072: Upload file with big size (#16372)
Juliehzl Dec 29, 2020
ee380ec
add rdbms code owner (#16383)
evelyn-ys Dec 29, 2020
6227e34
Fix a typo (#16370)
gossion Dec 29, 2020
2557860
{Core} Use knack 0.8.0rc2 (#16301)
jiasli Dec 30, 2020
87cbdb0
hotfix for bad name (#16381)
msyyc Dec 30, 2020
269954f
docs: fix simple typo, satsify -> satisfy (#16389)
timgates42 Dec 30, 2020
ab2e074
{Doc} Track 2 Migration Guidance (#16330)
qwordy Dec 31, 2020
1d4a90e
{Release} HotFix: Release 2.17.1 (#16393)
msyyc Dec 31, 2020
dc77512
disable homebrew package test temporarily (#16407)
fengzhou-msft Dec 31, 2020
809389f
[Compute] Fix issue of none storage_profile (#16260)
qwordy Jan 4, 2021
36b337b
Merge remote-tracking branch 'upstream/release' into dev
evelyn-ys Jan 4, 2021
c71c2f9
[AppService] Fix #13907: az webapp config ssl import: Change command …
singlessis Jan 5, 2021
3f760cb
{RDBMS} : Stabilize tests for live-test runs in pipeline. (#16415)
arde0708 Jan 5, 2021
761de62
{Test} Live test pipeline 0.10.0 (#16408)
qwordy Jan 5, 2021
fade4bf
[Role] Fix #11594: az role assignment create: Only show supported val…
jiasli Jan 5, 2021
bd13df4
{Misc.} Bump humanfriendly to 9.1 (#16363)
jiasli Jan 5, 2021
4d11117
Remove the preview tag for server key and ad admin (#16412)
shinilm Jan 5, 2021
1e8f1bb
{AKS} Update region mapping list for Container Insights to include la…
bragi92 Jan 6, 2021
4ac1441
{ARM} Bump azure-mgmt-resource SDK: 10.3.0 to 12.0.0, v2020-06-01 t…
detienne20 Jan 6, 2021
9b20d55
[AppService] Fixes #16125: az webapp ssh if using a windows client, o…
calvinsID Jan 7, 2021
2d39b43
[AppService]: fix for #13291- az webapp deployment slot swap should s…
Kotasudhakarreddy Jan 7, 2021
aa3ac71
{Network} Support list for storage private endpoint connection (#16438)
Juliehzl Jan 7, 2021
4191edb
{Compute} Fix tests (#16425)
qwordy Jan 7, 2021
25cac8b
{Compute} Update _help.py - add link to article for finding an image …
cynthn Jan 8, 2021
72c2203
[Compute] Better error handling of external tokens (#16406)
qwordy Jan 8, 2021
4e1e753
{Core} Add polling start time and end time in telemetry (#16458)
Juliehzl Jan 11, 2021
9601031
[Storage] Fix issue #12291: az storage blob generate-sas does not pro…
Juliehzl Jan 11, 2021
c66daef
[ARM] Az Deployments : Add support for --query-string (#16447)
detienne20 Jan 11, 2021
22d53e3
add pamamiko to legal notice file (#16461)
fengzhou-msft Jan 11, 2021
3269d06
[Compute] Fix a vmss reimage issue (#16483)
qwordy Jan 11, 2021
a854825
{Storage} `az storage container immutability-policy extend`: Fix requ…
Juliehzl Jan 11, 2021
e032bdf
[Compute] vm/vmss extension set: New parameter --enable-auto-upgrade …
qwordy Jan 12, 2021
d7e5dea
{Doc} Track 2 Migration Guidance (#16484)
qwordy Jan 12, 2021
d095076
{Misc.} Update CODEOWNERS (#16382)
jiasli Jan 12, 2021
87f979e
{container} Bugfix #15856: az container exec - remove eol check to av…
bitcloud Jan 12, 2021
8db65c7
[Backup]Added default backup retention as 30 days (#16394)
Jan 12, 2021
701f1cd
set default backup retention value to 30 days (#16500)
akshayneema Jan 13, 2021
ca09633
[ARM] ts: error handling improvement - use of --template-file without…
detienne20 Jan 13, 2021
785d8f4
{Storage} Enable logging for track2 data plane operations (#16439)
Juliehzl Jan 13, 2021
1058618
[AKS] az aks check-acr: Add new check-acr command (#16490)
samkreter Jan 13, 2021
ea298e9
[IoT] Add --tags to IoT Hub create and update (#16336)
c-ryan-k Jan 14, 2021
cddb696
remove --export-all-tables for command az monitor log-analytics works…
kairu-ms Jan 14, 2021
0bcfb50
Patch version in homebrew formula (#16518)
fengzhou-msft Jan 14, 2021
27f5250
{RDBMS} Fixed bugs and updated local context test (#16437)
DaeunYim Jan 14, 2021
2cc0913
[ACR] add --allow-trusted-services support (#16530)
adewaleo Jan 14, 2021
fdea210
bump cffi (#16531)
fengzhou-msft Jan 14, 2021
4720ab9
fix: revert to use old region mapping (#16435)
bragi92 Jan 14, 2021
f5a88f1
[acr] add step in "check-health" command to ensure the identity used …
yugangw-msft Jan 14, 2021
873dfeb
{ACR} Quick Fix (#16441)
rosanch Jan 14, 2021
afdfbab
[Storage] GA PITR and blob service properties in SRP (#16540)
Juliehzl Jan 15, 2021
8930324
[DMS] Merging pg mysql from extension into core (#15746)
temandr Jan 15, 2021
82d9063
[AppService] BREAKING CHANGE: Fix regression where you can't use a ru…
calvinsID Jan 15, 2021
39a4516
{Storage} Remove extension suppression for storage-or-preview becaus…
Juliehzl Jan 15, 2021
da4239a
{Release} Upgrade to Azure CLI 2.18.0 (#16543)
Jan 15, 2021
f53441a
[SQL] Add managed hsm regex match to SQL (#15109)
Yueren-Wang Jan 15, 2021
8fb0be5
[AppConfig] BREAKING CHANGE: az appconfig feature filter add: Support…
avanigupta Jan 18, 2021
edf9ed4
[AppService] az appservice ase/plan ASEv3 support (#16516)
madsd Jan 18, 2021
77ad664
fix broken link (#16569)
yungezz Jan 18, 2021
36bcdae
os-preference and ase private dns (#16575)
madsd Jan 19, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Synapse] Add integration runtime related cmdlets (Azure#15498)
  • Loading branch information
wonner authored Dec 24, 2020
commit df80a093ffcbc95ebb20fe9cc1ca14e7fed4d6f8
32 changes: 32 additions & 0 deletions src/azure-cli/azure/cli/command_modules/synapse/_client_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,38 @@ def cf_synapse_client_ipfirewallrules_factory(cli_ctx, *_):
return cf_synapse(cli_ctx).ip_firewall_rules


def cf_synapse_client_integrationruntimes_factory(cli_ctx, *_):
return cf_synapse(cli_ctx).integration_runtimes


def cf_synapse_client_integrationruntimeauthkeys_factory(cli_ctx, *_):
return cf_synapse(cli_ctx).integration_runtime_auth_keys


def cf_synapse_client_integrationruntimemonitoringdata_factory(cli_ctx, *_):
return cf_synapse(cli_ctx).integration_runtime_monitoring_data


def cf_synapse_client_integrationruntimenodes_factory(cli_ctx, *_):
return cf_synapse(cli_ctx).integration_runtime_nodes


def cf_synapse_client_integrationruntimenodeipaddress_factory(cli_ctx, *_):
return cf_synapse(cli_ctx).integration_runtime_node_ip_address


def cf_synapse_client_integrationruntimecredentials_factory(cli_ctx, *_):
return cf_synapse(cli_ctx).integration_runtime_credentials


def cf_synapse_client_integrationruntimeconnectioninfos_factory(cli_ctx, *_):
return cf_synapse(cli_ctx).integration_runtime_connection_infos


def cf_synapse_client_integrationruntimestatus_factory(cli_ctx, *_):
return cf_synapse(cli_ctx).integration_runtime_status


def cf_synapse_client_operations_factory(cli_ctx, *_):
return cf_synapse(cli_ctx).operations

Expand Down
174 changes: 174 additions & 0 deletions src/azure-cli/azure/cli/command_modules/synapse/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -1346,3 +1346,177 @@
az synapse notebook delete --workspace-name testsynapseworkspace \\
--name testnotebook
"""

helps['synapse integration-runtime'] = """
type: group
short-summary: Manage Synapse's integration runtimes.
"""

helps['synapse integration-runtime create'] = """
type: command
short-summary: Create an integration runtime.
examples:
- name: Create an integration runtime.
text: |-
az synapse integration-runtime create --workspace-name testsynapseworkspace --resource-group rg \\
--name testintegrationruntime --type Managed
"""

helps['synapse integration-runtime update'] = """
type: command
short-summary: Update an integration runtime.
examples:
- name: Update an integration runtime.
text: |-
az synapse integration-runtime update --workspace-name testsynapseworkspace --resource-group rg \\
--name testintegrationruntime --auto-update On --update-delay-offset '\"PT03H\"'
"""

helps['synapse integration-runtime show'] = """
type: command
short-summary: Get an integration runtime.
examples:
- name: Get an integration runtime.
text: |-
az synapse integration-runtime show --workspace-name testsynapseworkspace --resource-group rg \\
--name testintegrationruntime
"""

helps['synapse integration-runtime list'] = """
type: command
short-summary: List integration runtimes.
examples:
- name: List integration runtimes.
text: |-
az synapse integration-runtime list --workspace-name testsynapseworkspace --resource-group rg
"""

helps['synapse integration-runtime delete'] = """
type: command
short-summary: Delete an integration runtime.
examples:
- name: Delete an integration runtime.
text: |-
az synapse integration-runtime delete --workspace-name testsynapseworkspace --resource-group rg \\
--name testintegrationruntime
"""

helps['synapse integration-runtime wait'] = """
type: command
short-summary: Place the CLI in a waiting state until a condition of a integration runtime is met.
"""

helps['synapse integration-runtime upgrade'] = """
type: command
short-summary: Upgrade self-hosted integration runtime.
examples:
- name: Upgrade self-hosted integration runtime.
text: |-
az synapse integration-runtime upgrade --workspace-name testsynapseworkspace --resource-group rg \\
--name testintegrationruntime
"""

helps['synapse integration-runtime list-auth-key'] = """
type: command
short-summary: Get keys for a self-hosted integration runtime.
examples:
- name: Get keys for a self-hosted integration runtime.
text: |-
az synapse integration-runtime list-auth-key --workspace-name testsynapseworkspace --resource-group rg \\
--name selfhostedintegrationruntime
"""

helps['synapse integration-runtime regenerate-auth-key'] = """
type: command
short-summary: Regenerate self-hosted integration runtime key.
examples:
- name: Regenerate self-hosted integration runtime key.
text: |-
az synapse integration-runtime regenerate-auth-key --workspace-name testsynapseworkspace --resource-group rg \\
--name selfhostedintegrationruntime --key-name authKey1
"""

helps['synapse integration-runtime get-monitoring-data'] = """
type: command
short-summary: Get metric data for a self-hosted integration runtime.
examples:
- name: Get metric data for a self-hosted integration runtime.
text: |-
az synapse integration-runtime get-monitoring-data --workspace-name testsynapseworkspace --resource-group rg \\
--name selfhostedintegrationruntime
"""

helps['synapse integration-runtime sync-credentials'] = """
type: command
short-summary: Synchronize credentials among integration runtime nodes.
examples:
- name: Synchronize credentials among integration runtime nodes.
text: |-
az synapse integration-runtime sync-credentials --workspace-name testsynapseworkspace --resource-group rg \\
--name selfhostedintegrationruntime
"""

helps['synapse integration-runtime get-connection-info'] = """
type: command
short-summary: Get the integration runtime connection infomation.
examples:
- name: Get the integration runtime connection infomation.
text: |-
az synapse integration-runtime get-connection-info --workspace-name testsynapseworkspace --resource-group rg \\
--name selfhostedintegrationruntime
"""

helps['synapse integration-runtime get-status'] = """
type: command
short-summary: Gets detailed status information for an integration runtime.
examples:
- name: Gets detailed status information for an integration runtime.
text: |-
az synapse integration-runtime get-status --workspace-name testsynapseworkspace --resource-group rg \\
--name selfhostedintegrationruntime
"""

helps['synapse integration-runtime-node'] = """
type: group
short-summary: Manage Synapse's self-hosted integration runtime nodes.
"""

helps['synapse integration-runtime-node show'] = """
type: command
short-summary: Get self-hosted integration runtime node information.
examples:
- name: Get self-hosted integration runtime node information.
text: |-
az synapse integration-runtime-node show --workspace-name testsynapseworkspace --resource-group rg \\
--name selfhostedintegrationruntime --node-name testnode
"""

helps['synapse integration-runtime-node update'] = """
type: command
short-summary: Update self-hosted integration runtime node.
examples:
- name: Update self-hosted integration runtime node.
text: |-
az synapse integration-runtime-node update --workspace-name testsynapseworkspace --resource-group rg \\
--name selfhostedintegrationruntime --node-name testnode
"""

helps['synapse integration-runtime-node delete'] = """
type: command
short-summary: Remove a self-hosted integration runtime node.
examples:
- name: Remove a self-hosted integration runtime node.
text: |-
az synapse integration-runtime-node delete --workspace-name testsynapseworkspace --resource-group rg \\
--name selfhostedintegrationruntime --node-name testnode
"""

helps['synapse integration-runtime-node get-ip-address'] = """
type: command
short-summary: Get self-hosted integration runtime node ip.
examples:
- name: Get self-hosted integration runtime node ip.
text: |-
az synapse integration-runtime-node get-ip-address --workspace-name testsynapseworkspace --resource-group rg \\
--name selfhostedintegrationruntime --node-name testnode
"""
47 changes: 47 additions & 0 deletions src/azure-cli/azure/cli/command_modules/synapse/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,3 +600,50 @@ def load_arguments(self, _):
with self.argument_context('synapse notebook delete') as c:
c.argument('workspace_name', arg_type=workspace_name_arg_type)
c.argument('notebook_name', arg_type=name_type, help='The notebook name.')

# synapse integration runtime
with self.argument_context('synapse integration-runtime') as c:
c.argument('workspace_name', arg_type=workspace_name_arg_type, id_part='name')

for scope in ['list', 'list-auth-key', 'wait']:
with self.argument_context('synapse integration-runtime ' + scope) as c:
c.argument('workspace_name', arg_type=workspace_name_arg_type, id_part=None)

for scope in ['list-auth-key', 'wait']:
with self.argument_context('synapse integration-runtime ' + scope) as c:
c.argument('integration_runtime_name', arg_type=name_type, help='The integration runtime name.', id_part=None)

for scope in ['show', 'create', 'delete', 'wait', 'update', 'upgrade', 'regenerate-auth-key', 'get-monitoring-data', 'sync-credentials', 'get-connection-info', 'get-status']:
with self.argument_context('synapse integration-runtime ' + scope) as c:
c.argument('integration_runtime_name', arg_type=name_type, help='The integration runtime name.', id_part='child_name_1')

with self.argument_context('synapse integration-runtime create') as c:
c.argument('integration_runtime_type', options_list=['--type'], arg_type=get_enum_type(['Managed', 'SelfHosted']), help='The integration runtime type.')
c.argument('description', help='The integration runtime description.')
c.argument('if_match', help='ETag of the integration runtime entity. Should only be specified for update, for '
'which it should match existing entity or can be * for unconditional update.')
# Managed
c.argument('location', arg_group='Managed', help='The integration runtime location.')
c.argument('compute_type', arg_group='Managed', arg_type=get_enum_type(['General', 'MemoryOptimized', 'ComputeOptimized']),
help='Compute type of the data flow cluster which will execute data flow job.')
c.argument('core_count', arg_group='Managed', help='Core count of the data flow cluster which will execute data flow job.')
c.argument('time_to_live', arg_group='Managed', help='Time to live (in minutes) setting of the data flow cluster which will execute data flow job.')

with self.argument_context('synapse integration-runtime update') as c:
c.argument('auto_update', arg_type=get_enum_type(['On', 'Off']), help='Enable or disable the self-hosted integration runtime auto-update.')
c.argument('update_delay_offset', help='The time of the day for the self-hosted integration runtime auto-update.')

with self.argument_context('synapse integration-runtime regenerate-auth-key') as c:
c.argument('key_name', arg_type=get_enum_type(['authKey1', 'authKey2']), help='The name of the authentication key to regenerate.')

with self.argument_context('synapse integration-runtime-node') as c:
c.argument('workspace_name', arg_type=workspace_name_arg_type, id_part='name')
c.argument('integration_runtime_name', arg_type=name_type, help='The integration runtime name.', id_part='child_name_1')

for scope in ['show', 'update', 'delete', 'get-ip-address']:
with self.argument_context('synapse integration-runtime-node ' + scope) as c:
c.argument('node_name', help='The integration runtime node name.')

with self.argument_context('synapse integration-runtime-node update') as c:
c.argument('concurrent_jobs_limit', options_list=['--concurrent-jobs'], help='The number of concurrent jobs permitted to '
'run on the integration runtime node. Values between 1 and maxConcurrentJobs are allowed.')
72 changes: 72 additions & 0 deletions src/azure-cli/azure/cli/command_modules/synapse/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ def load_command_table(self, _):
from ._client_factory import cf_synapse_client_sqlpool_blob_auditing_policies_factory
from ._client_factory import cf_synapse_client_workspace_aad_admins_factory
from ._client_factory import cf_synapse_client_sqlserver_blob_auditing_policies_factory
from ._client_factory import cf_synapse_client_integrationruntimes_factory
from ._client_factory import cf_synapse_client_integrationruntimeauthkeys_factory
from ._client_factory import cf_synapse_client_integrationruntimemonitoringdata_factory
from ._client_factory import cf_synapse_client_integrationruntimenodeipaddress_factory
from ._client_factory import cf_synapse_client_integrationruntimenodes_factory
from ._client_factory import cf_synapse_client_integrationruntimecredentials_factory
from ._client_factory import cf_synapse_client_integrationruntimeconnectioninfos_factory
from ._client_factory import cf_synapse_client_integrationruntimestatus_factory

def get_custom_sdk(custom_module, client_factory):
return CliCommandType(
Expand Down Expand Up @@ -81,6 +89,38 @@ def get_custom_sdk(custom_module, client_factory):
operations_tmpl='azure.mgmt.synapse.operations#IpFirewallRulesOperations.{}',
client_factory=cf_synapse_client_ipfirewallrules_factory)

synapse_integrationruntimes_sdk = CliCommandType(
operations_tmpl='azure.mgmt.synapse.operations#IntegrationRuntimesOperations.{}',
client_factory=cf_synapse_client_integrationruntimes_factory)

synapse_integrationruntimeauthkeys_sdk = CliCommandType(
operations_tmpl='azure.mgmt.synapse.operations#IntegrationRuntimeAuthKeysOperations.{}',
client_factory=cf_synapse_client_integrationruntimeauthkeys_factory)

synapse_integrationruntimemonitoringdata_sdk = CliCommandType(
operations_tmpl='azure.mgmt.synapse.operations#IntegrationRuntimeMonitoringDataOperations.{}',
client_factory=cf_synapse_client_integrationruntimemonitoringdata_factory)

synapse_integrationruntimenodes_sdk = CliCommandType(
operations_tmpl='azure.mgmt.synapse.operations#IntegrationRuntimeNodesOperations.{}',
client_factory=cf_synapse_client_integrationruntimenodes_factory)

synapse_integrationruntimenodeipaddress_sdk = CliCommandType(
operations_tmpl='azure.mgmt.synapse.operations#IntegrationRuntimeNodeIpAddressOperations.{}',
client_factory=cf_synapse_client_integrationruntimenodeipaddress_factory)

synapse_integrationruntimecredentials_sdk = CliCommandType(
operations_tmpl='azure.mgmt.synapse.operations#IntegrationRuntimeCredentialsOperations.{}',
client_factory=cf_synapse_client_integrationruntimecredentials_factory)

synapse_integrationruntimeconnectioninfos_sdk = CliCommandType(
operations_tmpl='azure.mgmt.synapse.operations#IntegrationRuntimeConnectionInfosOperations.{}',
client_factory=cf_synapse_client_integrationruntimeconnectioninfos_factory)

synapse_integrationruntimestatus_sdk = CliCommandType(
operations_tmpl='azure.mgmt.synapse.operations#IntegrationRuntimeStatusOperations.{}',
client_factory=cf_synapse_client_integrationruntimestatus_factory)

synapse_spark_session_sdk = CliCommandType(
operations_tmpl='azure.synapse.spark.operations#SparkSessionOperations.{}',
client_factory=None)
Expand Down Expand Up @@ -247,6 +287,38 @@ def get_custom_sdk(custom_module, client_factory):
g.command('delete', 'delete', confirmation=True, supports_no_wait=True)
g.wait_command('wait')

# Management Plane Commands --IntegrationRuntime
with self.command_group('synapse integration-runtime', command_type=synapse_integrationruntimes_sdk,
custom_command_type=get_custom_sdk('integrationruntime', cf_synapse_client_integrationruntimes_factory),
client_factory=cf_synapse_client_integrationruntimes_factory) as g:
g.command('list', 'list_by_workspace')
g.show_command('show', 'get')
g.custom_command('create', 'create', supports_no_wait=True)
g.command('delete', 'delete', confirmation=True, supports_no_wait=True)
g.command('update', 'update')
g.command('upgrade', 'upgrade')
g.command('list-auth-key', 'list', command_type=synapse_integrationruntimeauthkeys_sdk,
client_factory=cf_synapse_client_integrationruntimeauthkeys_factory)
g.command('regenerate-auth-key', 'regenerate', command_type=synapse_integrationruntimeauthkeys_sdk,
client_factory=cf_synapse_client_integrationruntimeauthkeys_factory)
g.command('get-monitoring-data', 'list', command_type=synapse_integrationruntimemonitoringdata_sdk,
client_factory=cf_synapse_client_integrationruntimemonitoringdata_factory)
g.command('sync-credentials', 'sync', command_type=synapse_integrationruntimecredentials_sdk,
client_factory=cf_synapse_client_integrationruntimecredentials_factory)
g.command('get-connection-info', 'get', command_type=synapse_integrationruntimeconnectioninfos_sdk,
client_factory=cf_synapse_client_integrationruntimeconnectioninfos_factory)
g.command('get-status', 'get', command_type=synapse_integrationruntimestatus_sdk,
client_factory=cf_synapse_client_integrationruntimestatus_factory)
g.wait_command('wait')

with self.command_group('synapse integration-runtime-node', command_type=synapse_integrationruntimenodes_sdk,
client_factory=cf_synapse_client_integrationruntimenodes_factory) as g:
g.show_command('show', 'get')
g.command('update', 'update')
g.command('delete', 'delete', confirmation=True)
g.command('get-ip-address', 'get', command_type=synapse_integrationruntimenodeipaddress_sdk,
client_factory=cf_synapse_client_integrationruntimenodeipaddress_factory)

# Data Plane Commands --Spark batch opertions
with self.command_group('synapse spark job', command_type=synapse_spark_batch_sdk,
custom_command_type=get_custom_sdk('spark', None)) as g:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# pylint: disable=unused-argument
from azure.cli.core.util import sdk_no_wait
from azure.mgmt.synapse.models import IntegrationRuntime


def create(cmd, client, resource_group_name, workspace_name, integration_runtime_name, integration_runtime_type,
description=None, if_match=None, location='AutoResolve', compute_type='General',
core_count=8, time_to_live=0, no_wait=False):
properties = {}
properties['type'] = integration_runtime_type
properties['description'] = description
if integration_runtime_type == 'Managed':
properties['typeProperties'] = {}
properties['typeProperties']['computeProperties'] = {}
properties['typeProperties']['computeProperties']['location'] = location
properties['typeProperties']['computeProperties']['dataFlowProperties'] = {}
properties['typeProperties']['computeProperties']['dataFlowProperties']['computeType'] = compute_type
properties['typeProperties']['computeProperties']['dataFlowProperties']['coreCount'] = core_count
properties['typeProperties']['computeProperties']['dataFlowProperties']['timeToLive'] = time_to_live
properties = IntegrationRuntime.from_dict(properties)
return sdk_no_wait(no_wait, client.create, resource_group_name, workspace_name,
integration_runtime_name, properties, if_match)
Loading