Skip to content

Commit

Permalink
[ASA] Create workspace-based App Insights (Azure#6993)
Browse files Browse the repository at this point in the history
* use `try_create_application_insights` in custom

* create workspace

* create workspace & AI

* fix UT

* fix UT

* fix UT

* Add UT

* Add History and update version

* use `try_create_application_insights` in custom

* create workspace

* create workspace & AI

* fix UT

* [containerapp] `az containerapp create/update`: Support --customized-keys and clientType in --bind for dev service (Azure#6939)

* add test and add clientType and customized keys

* fix test

* fix

* fix test

* add test for yaml

* fix

* add more tests

* fix conflict

* fix customizedKey for yaml

* address comments

* add more comments

* add test cases

* fix test

* Update src/containerapp/azext_containerapp/_params.py

Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com>

* Update src/containerapp/azext_containerapp/_params.py

Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com>

---------

Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com>

* Introduce App Resiliency & Dapr Component Resiliency (Azure#6967)

* Introduce App Resiliency & Dapr Component Resiliency

Signed-off-by: Yash Nisar <yashnisar@microsoft.com>

* Address comments and shorten cli flags

Signed-off-by: Yash Nisar <yashnisar@microsoft.com>

* Code cleanup and address review comments

Signed-off-by: Yash Nisar <yashnisar@microsoft.com>

* Fix param_name output errors

Signed-off-by: Yash Nisar <yashnisar@microsoft.com>

---------

Signed-off-by: Yash Nisar <yashnisar@microsoft.com>

* [containerapp] Give a better error message when customer uses --artif… (Azure#6983)

* [containerapp] Give a better error message when customer uses --artifact with ACR Task

* Clarify the error message

* Minor update

* [containerapp] Release version 0.3.44 (Azure#6972)

* [Release] Update index.json for extension [ containerapp ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=106681&view=results

Last commit: Azure@5214e29

* Update baremetalinstance version (Azure#6975)

* Update baremetalinstance version

* Re adding v1.0.0 and updating correct sha

* Re-record failing source-to-cloud patch tests (Azure#6984)

* [confcom] initial commit of katapolicygen (Azure#6974)

* initial commit of katapolicygen

* only grab genpolicy from genpolicy tagged releases

* fixing tests for pipeline

* updating docs with more samples

* getting rid of unused links in readme

* [Release] Update index.json for extension [ confcom ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=107291&view=results

Last commit: Azure@cdb3dc6

* Release 2.22.0 ml cli extension (Azure#6992)

* "Update index.json with ml cli wheel"

* Remove duplicate

* [Hilo] Onboard new extension. (Azure#6926)

* generate init.

* Update test cases and recordings

* Format code,

* Update test

* Update params

* Update params.

* Add info to CODEOWNER. Update help file.

* Update param summary and help file.

* Update params file.

* Add service name.

* Update three examples.

* Update examples.

* rename command group name.

* Update a test case.

* Update test

* Update test records.

* Add two examples.

* Update examples and add readme file.

* Update examples.

* Update a example

* Remove create_flink_job_property command.

* Remove flink-job-property command help and params.

---------

Co-authored-by: v-yuchenli <v-yuchenli@microsoft.com>

* [Release] Update index.json for extension [ hdinsightonaks ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=107396&view=results

Last commit: Azure@4e30684

* [confcom] taking out print statement (Azure#6994)

* taking out print statement

* updating docs for new version

* [Release] Update index.json for extension [ confcom ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=107772&view=results

Last commit: Azure@a00ea10

* chore(arcdata): version bump to 1.5.7 (Azure#6991)

* Arc Appliance CLI November Release (Azure#7000)

Co-authored-by: Sai Sankar Gochhayat <sgochhayat@microsoft.com>

* [az fleet] updated help examples (Azure#6995)

* updated fleet help text

* bumped version

* help text fix

* white space

* More help text updates.

* fleet list example +1

* lint

* test recording update

* bug fix: return response instead of exception

* updated version notes

* lint fixes

---------

Co-authored-by: pdaru <pdaru@microsoft.com>

* [Release] Update index.json for extension [ fleet ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=108315&view=results

Last commit: Azure@54c84f1

* Updating examples and SKU description for Elastic (Azure#7002)

* Updating examples and SKU description for Elastic

* Updating VERSIOn in setup.py

* [Release] Update index.json for extension [ elastic ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=108437&view=results

Last commit: Azure@d7e57d8

* Arc Appliance CLI: 1.0.1 [November Release] [with package bump] (Azure#7003)

* Arc Appliance CLI November Release

* Updated whl for ArcAppliance Nov drop

---------

Co-authored-by: Sai Sankar Gochhayat <sgochhayat@microsoft.com>

* {AKS} 'az aks nodepool update': Update enum for --os-sku to match allowed values. (Azure#6999)

* fix UT

* fix UT

* Add UT

* Add History and update version

* {AKS} Vendor new SDK and bump API version to 2023-10-02-preview (Azure#7001)

* update SDK

* update recordings

* update API version

* update history

* Adds IoT Operations extension v0.1.0b2 (Azure#7008)

* [Bastion] adding rdp file to temp location and adding auth-type for rdp (Azure#7006)

* adding rdp file to temp location and adding auth-type for rdp

* fixing some pylint issues

* fixing some pylint issues

* [Release] Update index.json for extension [ bastion ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=109154&view=results

Last commit: Azure@1d9de52

* {CI} Update policy rules (Azure#7009)

* Update resourceManagement.yml

* Update resourceManagement.yml

* {CI} Update pipeline to use Python 3.11 (Azure#7010)

* Fix param name fix for disk override (Azure#6998)

* [Release] Update index.json for extension [ connectedvmware ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=109664&view=results

Last commit: Azure@7ebe379

* {AKS} az aks update: Remove outbound limit in update description (Azure#7014)

* {AKS} `az aks update`: force `--network-policy=cilium` whenever `--network-dataplane=cilium` (Azure#7011)

* CLI extension for AzureLargeInstance (Azure#6858)

* WIP, changed azurelargeinstance to large-instance but commands not working anymore

* Added readme and changed command name to large-instance, large-storage-instance

* [Release] Update index.json for extension [ azurelargeinstance ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=110005&view=results

Last commit: Azure@00a0303

* [Bastion] add auth type password for rdp and fix line formatting issue (Azure#7023)

* add auth type password for rdp and fix line formatting issue

* bump version

* lint

* add warning message

* lint fix

* [Release] Update index.json for extension [ bastion ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=110392&view=results

Last commit: Azure@a9c1aca

* [AKS] Fix for app routing CLI (Azure#6968)

* [Release] Update index.json for extension [ aks-preview ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=111118&view=results

Last commit: Azure@252de21

* [containerapp] `az containerapp up`: support create or update containerapp on connected env (Azure#7004)

* [ContainerApp] Cloud Build Bugfix - 500 Internal Server Error (Wrong env selected to create builder) (Azure#7024)

* [Vm-repair] Fix in az vm repair run --preview parameter (Azure#6973)

* [Release] Update index.json for extension [ vm-repair ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=111789&view=results

Last commit: Azure@3f54159

* bump version 0.3.45 (Azure#7039)

* [Release] Update index.json for extension [ containerapp ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=111849&view=results

Last commit: Azure@13932e4

* APICenter Extension Initial Release (Azure#6918)

* create extension, update examples, remove import/export commands for api center

* [Release] Update index.json for extension [ apic-extension ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=111909&view=results

Last commit: Azure@33bbf02

* [StreamAnalytics] Remove Experimental (Azure#6796)

* [Release] Update index.json for extension [ stream-analytics ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=112209&view=results

Last commit: Azure@abf377d

* Connectedk8s - RBAC: Add "arc "mode in Guard for using OBO service and deprecate --app-id & --app-secret params (Azure#6675)

* [Release] Update index.json for extension [ connectedk8s ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=112214&view=results

Last commit: Azure@a3c96db

* removing preview and fixing issue with aad (Azure#7042)

* [Release] Update index.json for extension [ bastion ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=112220&view=results

Last commit: Azure@8511b68

* [Containerapp] `az containerapp update`: Fix issue for --min-replicas is not set when the value is 0 (Azure#7046)

* revert connectedk8s 1.5.5 (Azure#7049)

* [Containerapp] `az containerapp create`: Fix BadRequest Error about clientType with --bind (Azure#7045)

* Revert "Connectedk8s - RBAC: Add "arc "mode in Guard for using OBO service and deprecate --app-id & --app-secret params" (Azure#7048)

* Revert "Connectedk8s - RBAC: Add "arc "mode in Guard for using OBO service and deprecate --app-id & --app-secret params (Azure#6675)"

This reverts commit a3c96db.

* Update setup.py

* Stack-hci-vm 0.1.8 (Azure#7052)

* Stack-hci-vm 0.1.8

* Update project url

* bump version and revert change in scale rule name (Azure#7053)

* [Release] Update index.json for extension [ containerapp ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=112395&view=results

Last commit: Azure@2c44907

* {AKS} az aks stop: add warning when private link cluster is stopped (Azure#7019)

* [Release] Update index.json for extension [ aks-preview ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=112548&view=results

Last commit: Azure@93fee25

* Include azure storage library in vendored_sdks (Azure#6909)

* [Release] Update index.json for extension [ aosm ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=112572&view=results

Last commit: Azure@57320b1

* {Service Connector}: AAD rebranding and fix sql connection (Azure#7041)

* prompt for updating sql user

* update version

* lint

* update

* update help

* update

* [Release] Update index.json for extension [ serviceconnector-passwordless ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=112613&view=results

Last commit: Azure@3fdc841

* Adding 0.1.2 version of akshybrid cli to fix kubernetes dependency issue (Azure#7051)

* Adding 0.1.2 version of akshybrid cli to fix kubernetes dependency issue

* Fixed the extension index

* Added the whl file for 1.0.0 version of aksarc cli (renamed from akshybrid) (Azure#7043)

* Added the whl file for 1.0.0 version of aksarc cli

* Removed isExperimental and isPreview flags

* [Logic] `az logic workflow`: Add new command group `identity` to support managing identity (Azure#7029)

* [Release] Update index.json for extension [ logic ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=112695&view=results

Last commit: Azure@8cf7a07

* `az vmware private-cloud list-admin-credentials` bugfix (Azure#7034)

* Fix az vmware private-cloud list-admin-credentials not returning nsxtPassword and vcenterPassword

* unit tests

* [Release] Update index.json for extension [ vmware ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=112935&view=results

Last commit: Azure@03f23d6

* [Spring] API Portal try out & SCG response cache (Azure#6988)

* [Release] Update index.json for extension [ spring ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=112954&view=results

Last commit: Azure@533e873

* Update response format for aks mesh get upgrades and revisions commands (Azure#7033)

* [Quota] Add new commands `az quota request list/show` to support managing quota request (Azure#7005)

* quota

* update test

* additional properties

* Update __init__.py

* [Release] Update index.json for extension [ quota ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=113223&view=results

Last commit: Azure@b2fbc2a

* Change unversioned image aliases to corresponding URN (Azure#6889)

* change removed aliases in test to corresponding urn

* revert updates in `scheduled-query`

* revert updates in `automanage`, `connection-monitor-preview`

* revert updates in `image-gallery`

* revert updates in `aem`

* fix lookup for custom locations rp sp to use appId instead of displayName (Azure#6982)

* Adds IoT Ops extension v0.2.0b1 (Azure#7066)

* [az vm repair] Win-run-driver script fix (Azure#7061)

* Pk5/fix feature flag bug (Azure#7064)

* Remove feature flag which is no longer required

* Update changelog and version

---------

Co-authored-by: Patryk Kulik <patrykkulik@microsoft.com>
Co-authored-by: Andy Churchard <andy.churchard@metaswitch.com>

* {Containerapp} Set test region default to northcentralusstage (Azure#7058)

* test

* rerun test in test_containerapp_scenario.py

* rerun tests

* fix test for arc

* handle storage account related tests

* fix

* fix hard code of location

* format location before compare

* format location

* import

* [Release] Update index.json for extension [ vm-repair ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=114056&view=results

Last commit: Azure@3877c87

* Arc Appliance CLI 1.0.2 December Release (Azure#7072)

* Added ArcAppliance december release

* Remove 0.2.31, 0.2.32, 0.2.33 from index

---------

Co-authored-by: Sai Sankar Gochhayat <sgochhayat@microsoft.com>

* Connectedk8s - RBAC: Add "arc "mode in Guard for using OBO service and deprecate --app-id & --app-secret params (Azure#7057)

* [k8s-extension] Update extension CLI to v1.5.3 (Azure#7071)

* [Release] Update index.json for extension [ connectedk8s ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=114322&view=results

Last commit: Azure@fbdae29

* {Attestation} `az attestation signer/policy`: Bump API version from 2022-10-01 to 2022-08-01 (Azure#7059)

* update

* update

* update

* update

* update

* update

* update

* update

* Update azext_metadata.json

* update

* update

* Update custom.py

* update

* update

* update

* update

* update

* Update src/attestation/azext_attestation/aaz/latest/__init__.py

* update

* update

---------

Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com>

* [Release] Update index.json for extension [ attestation ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=114340&view=results

Last commit: Azure@4a69523

* [connectedmachine] release preview version 2023-10-03 (Azure#7032)

* [Release] Update index.json for extension [ connectedmachine ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=114440&view=results

Last commit: Azure@a921d21

* [Release] Update index.json for extension [ k8s-extension ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=114632&view=results

Last commit: Azure@984b92d

* chore(arcdata): version bump to 1.5.8 (Azure#7076)

* Add IoT Extension v0.23.1 (Azure#7078)

* feature: allow to read output for failed jobs (Azure#7067)

* feature: allow to read output for failed jobs

* chore: removing unnecessary whitespaces

* fix: linting errors

* chore: addressing comments + pylint fixes

* chore: addressed PR comments

* chore: added SAS token obfuscation step to Run.ps1

* {CI} Fix static analysis (Azure#6509)

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* update

* Empty

* Update azure-pipelines.yml

* Update azdev_setup.yml

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Empty

* update

* modify containerapp

* update

* Update azdev_style_check.py

* Update azdev_style_check.py

* Update azdev_style_check.py

* update

* update

* Delete azdev_style_check.py

* Update test_source.py

* Update azdev_linter_style.py

* Update __init__.py

* todo

* update

* update

* Update __init__.py

* Update azure-pipelines.yml

* update

* update

* Update azdev_linter_style.py

* update

* {CI} Regenerating breaking change report with only_break=True to control length within 65535 (Azure#7081)

* chore: releasing az quantum v0.20.0 (Azure#7080)

* [Release] Update index.json for extension [ quantum ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=115465&view=results

Last commit: Azure@50a6cf9

* Upgrade Helm for connectedk8s (Azure#6915)

* [Release] Update index.json for extension [ connectedk8s ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=115498&view=results

Last commit: Azure@ddc80e1

* [az fleet] Minor style & linter updates to fix checks. (Azure#7092)

* Style & Linter updates.

* Updated history.rst

* Fixes for pipeline detected style issues.

* Linter fix from pipeline results.

* Update src/fleet/azext_fleet/_completers.py

Co-authored-by: Jim Minter <jim-minter@users.noreply.github.com>

* Trying raise

* line break

---------

Co-authored-by: Jim Minter <jim-minter@users.noreply.github.com>

* [Release] Update index.json for extension [ fleet ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=116395&view=results

Last commit: Azure@f33c6cb

* Mircosoft.NetworkCloud Update cli-ext (Azure#7015)

* update test and example bmm/bmckeyset cli

* Added support to remove the SSH keys on the backend

* update cli-ext

* revert the advertise empty values

---------

Co-authored-by: Mike Pham <toanpham@microsoft.com>

* [Release] Update index.json for extension [ networkcloud ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=116422&view=results

Last commit: Azure@e12af1a

* Support --self-contained-interactive-authoring-enabled in integration-runtime self-hosted create (Azure#7084)

* Support --self-contained-interactive-authoring-enabled in integration-runtime self-hosted create

* fix

* fix

* fix

* fix

* change

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix version

* [Release] Update index.json for extension [ datafactory ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=116474&view=results

Last commit: Azure@d88fdb0

* [AKS] Fix for `az aks approuting update` command (Azure#7038)

* Added 1.0.2 version of aksarc CLI extension (Azure#7090)

* Added 1.0.1 version of aksarc CLI extension

* Testing the CI help fix

* Fixing the param help

* testing

* Fixing the help param

* Published the extension with help fix

* {CI} Add statement for azdev style (Azure#7099)

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* [confcom] updating docs to include new genpolicy info (Azure#7093)

* updating docs to include new genpolicy info

* updating image hash

* updating styling in test files

* updating styling and a regex

* adding back if statement

* fixing syntax bug

* {CI} Add statement for azdev style (Azure#7101)

* update

* Update azdev_linter_style.py

* Update azdev_linter_style.py

* Update __init__.py

* Create commands for 2023-07-01-preview Api version (Azure#7055)

* Properly handle k8s clusters of kind provisioned cluster for connectedk8s (Azure#7103)

* disabling enable/disable-feature for provisioned clusters

* disable additional unsupported subcommands for provisioned clusters

* update extension version

* update error messages for disabled subcommands for provisioned clsuters

* remove test output

* address PR comments

* address more PR comments

* bump extension version number

* upgrade api (Azure#7082)

* {CI} Update bot workflow (Azure#7091)

* update

* Update BlockPRMerge.yml

* Update BlockPRMerge.yml

* Update BlockPRMerge.yml

* Update BlockPRMerge.yml

* Update AddIssueComment.yml

* Update BlockPRMerge.yml

* [Release] Update index.json for extension [ confcom ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=117479&view=results

Last commit: Azure@4503d9d

* [Release] Update index.json for extension [ nsp ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=117484&view=results

Last commit: Azure@76d5f00

* [Release] Update index.json for extension [ connectedk8s ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=117492&view=results

Last commit: Azure@a44482d

* [Release] Update index.json for extension [ stack-hci ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=117500&view=results

Last commit: Azure@a3fb697

* Introduce additional bugfixes, bump CLI extension version (Azure#7111)

* [Release] Update index.json for extension [ connectedk8s ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=117603&view=results

Last commit: Azure@0c373bc

* [devcenter] Update project environment type parameters to be required (Azure#7100)

* Update project env type parameters

* Fix environment def example and update style

* [Release] Update index.json for extension [ devcenter ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=117619&view=results

Last commit: Azure@07ad6cd

* Added extension support for NNF 4.2 release (Azure#7095)

* Added extension support for NNF 4.2 release

* added whitespaces in around arithmetic operator

* Added new line at end of file

* Fixed flake8 linting issues

* Removed test_managednetworkfabric.py file as it was not in use

---------

Co-authored-by: aytripathi <aytripathi@DESKTOP-DN8JFGH>

* [Release] Update index.json for extension [ managednetworkfabric ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=117641&view=results

Last commit: Azure@1f408c3

* [Spring] Add new params to support auto binding (Azure#7098)

* [Release] Update index.json for extension [ spring ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=117947&view=results

Last commit: Azure@57c4830

* [Spring] Support managed component log stream (Azure#7021)

* Add support for managed component log stream in Azure Spring Apps

* Fix CI failure

* [Application-insights] `az monitor app-insights component`: Add new command group `favorite` to support managing favorite (Azure#7108)

* app-insights

* [Release] Update index.json for extension [ spring ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=118048&view=results

Last commit: Azure@057f80c

* {AKS} Fix azdev style issues for tests (Azure#7115)

* {AKS} Replace Workload Identity related functions in aks-preview with azure-cli (Azure#6987)

* [Release] Update index.json for extension [ aks-preview ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=118256&view=results

Last commit: Azure@60fbf22

* {Monitor-control-service} Data collection migrate (Azure#7120)

* add generated code and adjust rule file json key

* [Release] Update index.json for extension [ monitor-control-service ]

Triggered by Azure CLI Extensions Release Pipeline - ADO_BUILD_URL: https://dev.azure.com/azclitools/internal/_build/results?buildId=118275&view=results

Last commit: Azure@5bc032e

---------

Signed-off-by: Yash Nisar <yashnisar@microsoft.com>
Co-authored-by: xinyu pang <46143499+Greedygre@users.noreply.github.com>
Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com>
Co-authored-by: Yash Nisar <yashnisar@microsoft.com>
Co-authored-by: daniv-msft <48293037+daniv-msft@users.noreply.github.com>
Co-authored-by: Azure CLI Team <AzPyCLI@microsoft.com>
Co-authored-by: Alexandra Avendaño <avenyen@gmail.com>
Co-authored-by: Cormac McCarthy <corm@microsoft.com>
Co-authored-by: Seth Hollandsworth <sethho@microsoft.com>
Co-authored-by: Diondra <16376603+diondrapeck@users.noreply.github.com>
Co-authored-by: yuc-Li <58678302+yuc-Li@users.noreply.github.com>
Co-authored-by: v-yuchenli <v-yuchenli@microsoft.com>
Co-authored-by: Azure ArcData Bot <122507266+arcdatabot@users.noreply.github.com>
Co-authored-by: Saisankar Gochhayat <saisankargochhayat@gmail.com>
Co-authored-by: Sai Sankar Gochhayat <sgochhayat@microsoft.com>
Co-authored-by: Sean Hobbs <ealianis@outlook.com>
Co-authored-by: pdaru <pdaru@microsoft.com>
Co-authored-by: Pooja Shetty <85922721+poshett@users.noreply.github.com>
Co-authored-by: Henry Beberman <henry.beberman@microsoft.com>
Co-authored-by: FumingZhang <81607949+FumingZhang@users.noreply.github.com>
Co-authored-by: Ryan K <ryan.k@outlook.com>
Co-authored-by: aavalang <56377848+aavalang@users.noreply.github.com>
Co-authored-by: ZelinWang <zelinwang@microsoft.com>
Co-authored-by: Hang <bebound@gmail.com>
Co-authored-by: Sayan Naskar <nascarsayan@gmail.com>
Co-authored-by: Fan Shang Xiang <fanshangxiang@gmail.com>
Co-authored-by: robogatikov <132703210+robogatikov@users.noreply.github.com>
Co-authored-by: Ashwin Jeyaseelan <ajeyaseelan@microsoft.com>
Co-authored-by: bosesuneha <123775811+bosesuneha@users.noreply.github.com>
Co-authored-by: snehapar9 <108305436+snehapar9@users.noreply.github.com>
Co-authored-by: Haider Agha <64601174+haagha@users.noreply.github.com>
Co-authored-by: Arpi Shah <120400150+arpishahmsft@users.noreply.github.com>
Co-authored-by: Zeng Taoxu <96050289+ZengTaoxu@users.noreply.github.com>
Co-authored-by: Vineeth Thumma <vineeth-thumma@users.noreply.github.com>
Co-authored-by: Arka <Arkanayan@users.noreply.github.com>
Co-authored-by: Li Ma <mali_no2@hotmail.com>
Co-authored-by: Cyclam <95434717+Cyclam@users.noreply.github.com>
Co-authored-by: Xiaofan Zhou <81600993+xfz11@users.noreply.github.com>
Co-authored-by: Hari Prasad <hariv97@gmail.com>
Co-authored-by: Jing-song <v-jingszhang@microsoft.com>
Co-authored-by: Jonathan He <jonathanhe@microsoft.com>
Co-authored-by: Mason Chen <jiec@microsoft.com>
Co-authored-by: deveshdama <87668846+deveshdama@users.noreply.github.com>
Co-authored-by: Qinkai Wu <32201005+ReaNAiveD@users.noreply.github.com>
Co-authored-by: Bryant <bryant@keystroke.cloud>
Co-authored-by: Patryk Kulik <patrykkulik@microsoft.com>
Co-authored-by: Andy Churchard <andy.churchard@metaswitch.com>
Co-authored-by: Prashanth Koushik <pkoushik11@gmail.com>
Co-authored-by: Bavneet Singh <33008256+bavneetsingh16@users.noreply.github.com>
Co-authored-by: kai ru <69238381+kairu-ms@users.noreply.github.com>
Co-authored-by: yaotongms <137821665+yaotongms@users.noreply.github.com>
Co-authored-by: kikomiss <144282031+kikomiss@users.noreply.github.com>
Co-authored-by: Kit <kit.nhl@gmail.com>
Co-authored-by: Jim Minter <jim-minter@users.noreply.github.com>
Co-authored-by: Mike Pham <90421725+MikePham0630@users.noreply.github.com>
Co-authored-by: Mike Pham <toanpham@microsoft.com>
Co-authored-by: Jingshu918 <138486531+Jingshu918@users.noreply.github.com>
Co-authored-by: Kaushal Kumar <kaushal499@gmail.com>
Co-authored-by: Simon Diesenreiter <sidiesen@microsoft.com>
Co-authored-by: am-lim <55768281+am-lim@users.noreply.github.com>
Co-authored-by: aytripathi <119933278+aytripathi@users.noreply.github.com>
Co-authored-by: aytripathi <aytripathi@DESKTOP-DN8JFGH>
Co-authored-by: Moary Chen <v-shilichen@microsoft.com>
Co-authored-by: jiashun0011 <jiashunliu@microsoft.com>
Co-authored-by: AllyW <AllyW@users.noreply.github.com>
  • Loading branch information
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 86 deletions.
5 changes: 5 additions & 0 deletions src/spring/HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Release History
===============

1.19.1
---
* Create workspace-based Application Insights instead, since classic Application Insights will be retired on 29 February 2024.

1.19.0
---
* Add new commands for managed component log streaming `az spring component list`, `az spring component instance list` and `az spring component logs`.
Expand Down
36 changes: 2 additions & 34 deletions src/spring/azext_spring/apm.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from msrestazure.tools import parse_resource_id, is_valid_resource_id

from ._utils import get_portal_uri
from .custom import try_create_application_insights
from .vendored_sdks.appplatform.v2023_11_01_preview import models

logger = get_logger(__name__)
Expand Down Expand Up @@ -110,7 +111,7 @@ def _get_connection_string(cmd, resource_group, service_name, location, app_insi

def _create_app_insights_and_get_connection_string(cmd, resource_group, service_name, location):
try:
created_app_insights = _try_create_application_insights(cmd, resource_group, service_name, location)
created_app_insights = try_create_application_insights(cmd, resource_group, service_name, location)
if created_app_insights:
return created_app_insights.connection_string
except Exception: # pylint: disable=broad-except
Expand Down Expand Up @@ -154,36 +155,3 @@ def _get_app_insights_connection_string(cli_ctx, resource_group, name):
"Application Insights {} under resource group {} was not found.".format(name, resource_group))

return appinsights.connection_string


def _try_create_application_insights(cmd, resource_group, name, location):
creation_failed_warn = 'Unable to create the Application Insights for the Azure Spring Apps. ' \
'Please use the Azure Portal to manually create and configure the Application Insights, ' \
'if needed.'

ai_resource_group_name = resource_group
ai_name = name
ai_location = location
ai_properties = {
"name": ai_name,
"location": ai_location,
"kind": "web",
"properties": {
"Application_Type": "web"
}
}

app_insights_client = get_mgmt_service_client(cmd.cli_ctx, ApplicationInsightsManagementClient)
appinsights = app_insights_client.components.create_or_update(ai_resource_group_name, ai_name, ai_properties)

if not appinsights or not appinsights.connection_string:
logger.warning(creation_failed_warn)
return None

portal_url = get_portal_uri(cmd.cli_ctx)
# We make this success message as a warning to no interfere with regular JSON output in stdout
logger.warning('Application Insights \"%s\" was created for this Azure Spring Apps. '
'You can visit %s/#resource%s/overview to view your '
'Application Insights component', appinsights.name, portal_url, appinsights.id)

return appinsights
36 changes: 2 additions & 34 deletions src/spring/azext_spring/buildpack_binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .vendored_sdks.appplatform.v2023_11_01_preview import models
from azure.cli.core.util import sdk_no_wait
from ._utils import get_portal_uri
from .custom import try_create_application_insights
from msrestazure.tools import parse_resource_id, is_valid_resource_id
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from azure.cli.core.azclierror import InvalidArgumentValueError
Expand Down Expand Up @@ -112,7 +113,7 @@ def _get_connection_string(cmd, resource_group, service_name, location, app_insi
def _create_app_insights_and_get_connection_string(cmd, resource_group, service_name, location):

try:
created_app_insights = _try_create_application_insights(cmd, resource_group, service_name, location)
created_app_insights = try_create_application_insights(cmd, resource_group, service_name, location)
if created_app_insights:
return created_app_insights.connection_string
except Exception: # pylint: disable=broad-except
Expand Down Expand Up @@ -155,36 +156,3 @@ def _get_app_insights_connection_string(cli_ctx, resource_group, name):
raise ResourceNotFoundError("App Insights {} under resource group {} was not found.".format(name, resource_group))

return appinsights.connection_string


def _try_create_application_insights(cmd, resource_group, name, location):
creation_failed_warn = 'Unable to create the Application Insights for the Azure Spring Apps. ' \
'Please use the Azure Portal to manually create and configure the Application Insights, ' \
'if needed.'

ai_resource_group_name = resource_group
ai_name = name
ai_location = location
ai_properties = {
"name": ai_name,
"location": ai_location,
"kind": "web",
"properties": {
"Application_Type": "web"
}
}

app_insights_client = get_mgmt_service_client(cmd.cli_ctx, ApplicationInsightsManagementClient)
appinsights = app_insights_client.components.create_or_update(ai_resource_group_name, ai_name, ai_properties)

if not appinsights or not appinsights.connection_string:
logger.warning(creation_failed_warn)
return None

portal_url = get_portal_uri(cmd.cli_ctx)
# We make this success message as a warning to no interfere with regular JSON output in stdout
logger.warning('Application Insights \"%s\" was created for this Azure Spring Apps. '
'You can visit %s/#resource%s/overview to view your '
'Application Insights component', appinsights.name, portal_url, appinsights.id)

return appinsights
64 changes: 51 additions & 13 deletions src/spring/azext_spring/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
import os
import time
from azure.cli.core._profile import Profile
from azure.core.exceptions import HttpResponseError
from azure.mgmt.loganalytics import LogAnalyticsManagementClient

from ._websocket import WebSocketConnection, recv_remote, send_stdin, EXEC_PROTOCOL_CTRL_C_MSG
from azure.mgmt.cosmosdb import CosmosDBManagementClient
Expand Down Expand Up @@ -49,6 +51,8 @@
NO_PRODUCTION_DEPLOYMENT_SET_ERROR = "This app has no production deployment, use \"az spring app deployment create\" to create a deployment and \"az spring app set-deployment\" to set production deployment."
DELETE_PRODUCTION_DEPLOYMENT_WARNING = "You are going to delete production deployment, the app will be inaccessible after this operation."
LOG_RUNNING_PROMPT = "This command usually takes minutes to run. Add '--verbose' parameter if needed."
APP_INSIGHTS_CREATION_FAILURE_WARNING = 'Unable to create the Application Insights for the Azure Spring Apps. ' \
'Please use the Azure Portal to manually create and configure the Application Insights, if needed.'


def _warn_enable_java_agent(enable_java_agent, **_):
Expand Down Expand Up @@ -1460,26 +1464,26 @@ def _get_connection_string_from_app_insights(cmd, resource_group, app_insights):


def try_create_application_insights(cmd, resource_group, name, location):
creation_failed_warn = 'Unable to create the Application Insights for the Azure Spring Apps. ' \
'Please use the Azure Portal to manually create and configure the Application Insights, ' \
'if needed.'

ai_resource_group_name = resource_group
ai_name = name
ai_location = location
workspace = try_create_log_analytics_workspace(cmd, resource_group, name, location)
if workspace is None:
logger.warning(APP_INSIGHTS_CREATION_FAILURE_WARNING)
return None

app_insights_client = get_mgmt_service_client(cmd.cli_ctx, ApplicationInsightsManagementClient)
app_insights_client = get_mgmt_service_client(cmd.cli_ctx, ApplicationInsightsManagementClient,
api_version='2020-02-02-preview')
ai_properties = {
"name": ai_name,
"location": ai_location,
"location": location,
"kind": "web",
"properties": {
"Application_Type": "web"
"Application_Type": "web",
"Flow_Type": "Bluefield",
"Request_Source": "rest",
"WorkspaceResourceId": workspace.id
}
}
appinsights = app_insights_client.components.create_or_update(ai_resource_group_name, ai_name, ai_properties)
appinsights = app_insights_client.components.create_or_update(resource_group, name, ai_properties)
if appinsights is None or appinsights.connection_string is None:
logger.warning(creation_failed_warn)
logger.warning(APP_INSIGHTS_CREATION_FAILURE_WARNING)
return None

portal_url = get_portal_uri(cmd.cli_ctx)
Expand Down Expand Up @@ -1542,6 +1546,40 @@ def app_insights_show(cmd, client, resource_group, name, no_wait=False):
return monitoring_setting_properties


def try_create_log_analytics_workspace(cmd, resource_group, name, location):
client = get_mgmt_service_client(cmd.cli_ctx, LogAnalyticsManagementClient)
workspace = None

try:
workspace = client.workspaces.get(resource_group, name)
except HttpResponseError as err:
if err.status_code != 404:
raise

if workspace is not None:
return workspace

logger.debug("Log Analytics workspace not found. Creating it now...")
properties = {
"location": location,
"properties": {
"sku": {
"name": "PerGB2018"
},
"retentionInDays": 30
}
}
workspace = client.workspaces.begin_create_or_update(resource_group, name, properties).result()

portal_url = get_portal_uri(cmd.cli_ctx)
# We make this success message as a warning to no interfere with regular JSON output in stdout
logger.warning('Log Analytics workspace \"%s\" was created for this Azure Spring Apps. '
'You can visit %s/#resource%s/overview to view your Log Analytics workspace',
workspace.name, portal_url, workspace.id)

return workspace


def app_connect(cmd, client, resource_group, service, name,
deployment=None, instance=None, shell_cmd='/bin/sh'):

Expand Down
28 changes: 24 additions & 4 deletions src/spring/azext_spring/tests/latest/test_asa_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def _execute(self, resource_group, name, **kwargs):
self.created_resource = call_args[0][0][2]


class TestSpringCloudCreateEnerprise(BasicTest):
class TestSpringCloudCreateEnterprise(BasicTest):
def test_asc_create_enterprise(self):
self._execute('rg', 'asc', sku=self._get_sku('Enterprise'), disable_app_insights=True)
resource = self.created_resource
Expand Down Expand Up @@ -180,8 +180,18 @@ def test_asa_basic_with_acc(self):
self.assertIsNone(self.dev_tool)


def _workspaces_get_func(*args, **kwargs):
if args[1] == 'asc-with-existing-workspace':
workspace = mock.MagicMock()
workspace.id = 'workspace-id'
return workspace
else:
return None


class TestSpringCloudCreateWithAI(BasicTest):
def _get_ai_client(ctx, type):
def _get_ai_client(ctx, type, api_version=None):
free_mock_client.workspaces.get.side_effect = _workspaces_get_func
ai_create_resource = mock.MagicMock()
ai_create_resource.connection_string = 'fake-connection'
free_mock_client.components.create_or_update.return_value = ai_create_resource
Expand Down Expand Up @@ -217,6 +227,15 @@ def test_asc_create_with_AI_happy_path(self):
self.monitoring_settings_resource.properties.app_insights_instrumentation_key)
self.assertEqual(True, self.monitoring_settings_resource.properties.trace_enabled)

def test_asc_create_with_AI_and_existing_workspace(self):
self._execute('rg', 'asc-with-existing-workspace', sku=self._get_sku())
resource = self.created_resource
self.assertEqual('S0', resource.sku.name)
self.assertEqual('Standard', resource.sku.tier)
self.assertEqual(False, resource.properties.zone_redundant)
self.assertEqual('fake-connection', self.monitoring_settings_resource.properties.app_insights_instrumentation_key)
self.assertEqual(True, self.monitoring_settings_resource.properties.trace_enabled)

def test_asc_create_with_AI_key(self):
self._execute('rg', 'asc', sku=self._get_sku(), app_insights_key='my-key')
resource = self.created_resource
Expand All @@ -237,8 +256,8 @@ def test_asc_create_with_AI_name(self):
self.assertEqual(True, self.monitoring_settings_resource.properties.trace_enabled)


class TestSpringCloudCreateEnerpriseWithApplicationInsights(BasicTest):
def _get_application_insights_client(ctx, type):
class TestSpringCloudCreateEnterpriseWithApplicationInsights(BasicTest):
def _get_application_insights_client(ctx, type, api_version=None):
application_insights_create_resource = mock.MagicMock()
application_insights_create_resource.connection_string = 'fake-create-connection-string'

Expand All @@ -255,6 +274,7 @@ def __init__(self, methodName: str = ...):
self.buildpack_binding_resource = None

@mock.patch('azext_spring.buildpack_binding.get_mgmt_service_client', _get_application_insights_client)
@mock.patch('azext_spring.custom.get_mgmt_service_client', _get_application_insights_client)
def _execute(self, resource_group, name, **kwargs):
client = kwargs.pop('client', None) or _get_basic_mock_client()
super()._execute(resource_group, name, client=client, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion src/spring/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# TODO: Confirm this is the right version number you want and it matches your
# HISTORY.rst entry.
VERSION = '1.19.0'
VERSION = '1.19.1'

# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
Expand Down

0 comments on commit ab6039f

Please sign in to comment.