Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extension-cli upgrade to 1.2.3 #134

Closed
wants to merge 69 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
78bccb3
[k8s-extension] Update extension CLI to v1.2.2 (#4843)
bavneetsingh16 May 18, 2022
dc99bf7
[Release] Update index.json for extension [ k8s-extension ] (#4847)
azclibot May 18, 2022
9d95247
[CosmosDB] Add support for Continuous 7 Days backup mode (#4841)
vinhms May 18, 2022
2cbe182
[Release] Update index.json for extension [ cosmosdb-preview ] (#4849)
azclibot May 18, 2022
2fbab6f
[Azure Firewall] `az network firewall policy`: Add new parameter `--s…
ZengTaoxu May 19, 2022
08a8dbd
[Release] Update index.json for extension [ azure-firewall ] (#4851)
azclibot May 19, 2022
91fbeb5
checkin sdk for 0401 & 0501-preview (#4845)
Caoxuyang May 19, 2022
85bc6c4
[healthcareapis] Bump version to 2021-11-01 (#4799)
wangzelin007 May 20, 2022
6567696
Add cosmos DB sample links to long-summary (#4854)
dbradish-microsoft May 20, 2022
ea91479
support ingress read timeout for azure spring app (#4853)
frankliu20 May 20, 2022
51eb5b7
[Release] Update index.json for extension [ healthcareapis ] (#4858)
azclibot May 20, 2022
e93624e
{AKS} Fix tests (#4860)
FumingZhang May 20, 2022
d161598
Updating ML extension to use latest public preview for SDKv2 (#4857)
harneetvirk May 23, 2022
5bea677
feat: add arguments --build-cpu and --build-memory when deploying app…
smile37773 May 23, 2022
ab4022c
{AKS} Update test cases (#4867)
FumingZhang May 23, 2022
2f16dd4
Containerapp Version 0.3.5 : Final release for //BUILD (#4837)
StrawnSC May 23, 2022
c00942c
[Release] Update index.json for extension [ containerapp ] (#4873)
azclibot May 23, 2022
229a1cf
Karenchen/enable draftv2 (#4651)
karenychen May 23, 2022
7f65b88
release aks-preview 0.5.72 (#4874)
FumingZhang May 23, 2022
ba586c6
{AKS} Fix import issues for aks draft commands (#4876)
FumingZhang May 23, 2022
c327394
[Release] Update index.json for extension [ aks-preview ] (#4877)
azclibot May 23, 2022
cba76d9
refactor: remove redundant `--disable-workload-identity` (#4871)
bcho May 24, 2022
3c5cd8c
Hotfix ML extension for addressing endpoint issues (#4883)
harneetvirk May 24, 2022
3ed36c1
{AKS} Add trusted access roles command (#4838)
YitongFeng-git May 24, 2022
901a309
{AKS} Filter app gateway case (#4885)
FumingZhang May 24, 2022
18d9813
[storage-preview] `az storage account create`: Rename `--key-vault-fe…
evelyn-ys May 24, 2022
202adb0
remove preview tags for enterprise tier GA (#4886)
smile37773 May 24, 2022
e9f096f
[Release] Update index.json for extension [ storage-preview ] (#4889)
azclibot May 24, 2022
f52b0c9
chore(arcdata): version bump to 1.4.1 (#4892)
swells May 24, 2022
1464c39
[Release] Update index.json for extension [ aks-preview ] (#4887)
azclibot May 25, 2022
46399b6
aks-preview: feature support for web application routing (#4872)
yizhang4321 May 25, 2022
e102839
{AKS} Fix aks byo appgw test case (#4894)
FumingZhang May 25, 2022
3e75c2d
[Release] Update index.json for extension [ aks-preview ] (#4895)
azclibot May 25, 2022
8b0804d
Release ArcAppliance 0.2.23 (#4896)
saisankargochhayat May 26, 2022
e92f423
[Hardwaresecuritymodules] Bump up sdk and `az dedicated-hsm`: add par…
ZengTaoxu May 26, 2022
d7cbbdd
[Release] Update index.json for extension [ hardware-security-modules…
azclibot May 26, 2022
cd256d0
[Spring] Support setting marketplace plan when creating service (#4888)
yuwzho May 26, 2022
ac28513
[feat] Add support for --assign-public-endpoint and --enable-log-stre…
Descatles May 26, 2022
ebf59a2
Support probe feature in 0501-preview (#4899)
Caoxuyang May 26, 2022
acded17
{AKS} Add v2 managed cluster decorator (#4900)
FumingZhang May 27, 2022
f128de5
[Dataprotection] Onboard ResourceGuard and AzMon alerts (#4891)
akshayneema May 27, 2022
b92b83d
updated version in version.py (#4906)
akshayneema May 27, 2022
7a995fe
[Release] Update index.json for extension [ dataprotection ] (#4907)
azclibot May 28, 2022
c19eb8f
{AKS} Add Custom CA Trust to CLI (#4782)
UtheMan May 28, 2022
bb08dd8
[Release] Update index.json for extension [ aks-preview ] (#4909)
azclibot May 30, 2022
85ef8a1
{AKS} Integrate azuredisk csi driver version to cli (#4865)
mukhoakash May 30, 2022
c62273e
{aks-preview} Fixe typo Github to GitHub (#4913)
RakeshMohanMSFT May 31, 2022
6f8eb41
Update test documentation for partners (#132)
jonathan-innis May 31, 2022
b430ec0
[SSH] Remove setup.py from connectedmachine SDK folder (#4916)
vthiebaut10 Jun 1, 2022
33a77ae
[ConnectedMachine] bug fix: add enable-auto-upgrade param back to ext…
dorothyhu Jun 1, 2022
5a6d341
remove warning message (#129)
yuyue9284 Jun 2, 2022
d47de83
Prompt when disabling CSI Drivers (#4868)
ZeroMagic Jun 2, 2022
aa1d0b4
Use remote Kustomize base for deploying AKS Periscope (#4904)
peterbom Jun 2, 2022
38f1124
[Web PubSub] Allow newer versions of websockets (#4911)
asottile Jun 2, 2022
d9ab65a
{AKS} Fix several tests (#4919)
FumingZhang Jun 2, 2022
6dbf738
{AKS} Vendor 2022-05-02-preview for aks-preview (#4923)
FumingZhang Jun 2, 2022
d4c2523
{AKS} Add support for KEDA workload auto-scaler (#4905)
JatinSanghvi Jun 3, 2022
a1d3dd8
[Release] Update index.json for extension [ aks-preview ] (#4912)
azclibot Jun 3, 2022
c6d86ee
containerapp-compose extension with support for compose files (#4711)
smurawski Jun 4, 2022
e4fc380
[ Microsoft.SCVMM ] Requesting vmmserver credentials until non-empty …
nascarsayan Jun 5, 2022
b62d7ea
Fix conflicts for aks_preview index.json (#4940)
wangzelin007 Jun 6, 2022
182440f
[Release] Update index.json for extension [ connectedmachine ] (#4918)
azclibot Jun 6, 2022
34a7fa7
[Release] Update index.json for extension [ containerapp-compose ] (#…
azclibot Jun 6, 2022
17e6519
[Release] Update index.json for extension [ scvmm ] (#4938)
azclibot Jun 6, 2022
f27192c
Use cluster scale to control clusterPurpose and inferenceRouterHA (#130)
wangdian Jun 6, 2022
7abc4e2
Revert "[Spring] Support setting marketplace plan when creating servi…
yuwzho Jun 7, 2022
fa728d2
Fix warning message returned on PATCH (#133)
jonathan-innis Jun 7, 2022
403981d
bump version to 1.2.3
Jun 7, 2022
34c6fe3
upgrade cli version to 1.2.3 and update private_history
Jun 9, 2022
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
Revert "[Spring] Support setting marketplace plan when creating servi…
  • Loading branch information
yuwzho authored Jun 7, 2022
commit 7abc4e2618edd4cb774a2ce5108f19b35c583af5
3 changes: 1 addition & 2 deletions src/spring/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ Release History
---
* Command `az spring create` has new argument "--ingress-read-timeout" to set ingress read timeout when create Azure Spring Apps.
* Command `az spring update` has new argument "--ingress-read-timeout" to update ingress read timeout for Azure Spring Apps.
* Command `az spring create` has new argument "--marketplace-plan-id" to purchase SaaS resource against given plan for Azure Spring Apps.
* Command `az spring create` and `az spring update` has new argument "--enable-log-stream-public-endpoint" to set whether assign public endpoint for log streaming in vnet injection instance.
* Command `az spring app create` and `az spring app update` has new argument "--assign_public_endpoint" to set whether assign endpoint URL which could be accessed out of virtual network for vnet injection instance app.
* Command `az spring app create` and `az spring app update` has new argument "--assign-public-endpoint" to set whether assign endpoint URL which could be accessed out of virtual network for vnet injection instance app.
* Command `az spring app deploy` and `az spring app deployment create` has new argument "--build-cpu" and "--build-memory" to set cpu and memory during build process.
* Commands `az spring app create`, `az spring app update`, `az spring app deploy`, `spring app deployment create`
and `spring app deployment update` have new arguments "--enable-liveness-probe", "--enable-readiness-probe", "--enable-startup-probe", "--liveness-probe-config", "--readiness-probe-config", "--startup-probe-config" to customize the probe settings of user applications
Expand Down
11 changes: 0 additions & 11 deletions src/spring/azext_spring/_constant.py

This file was deleted.

8 changes: 0 additions & 8 deletions src/spring/azext_spring/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@
az spring create -n MyService -g MyResourceGroup --sku Enterprise --enable-application-configuration-service --enable-service-registry --enable-gateway --enable-api-portal
"""

helps['spring list-marketplace-plan'] = """
type: command
short-summary: (Enterprise Tier Only) List Marketplace plan to be purchased.
examples:
- name: List all plans.
text: az spring list-marketplace-plan -o table
"""

helps['spring update'] = """
type: command
short-summary: Update an Azure Spring Apps.
Expand Down
38 changes: 0 additions & 38 deletions src/spring/azext_spring/_marketplace.py

This file was deleted.

4 changes: 0 additions & 4 deletions src/spring/azext_spring/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,6 @@ def load_arguments(self, _):
is_preview=True,
options_list=['--api-portal-instance-count', '--ap-instance'],
help='(Enterprise Tier Only) Number of API portal instances.')
c.argument('marketplace_plan_id',
is_preview=True,
help='(Enterprise Tier Only) Specify a different Marketplace plan to purchase with Spring instance. '
'List all plans by running `az spring list-marketplace-plan -o table`.')

with self.argument_context('spring update') as c:
c.argument('sku', arg_type=sku_type, validator=normalize_sku)
Expand Down
22 changes: 6 additions & 16 deletions src/spring/azext_spring/_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
from knack.log import get_logger
from ._utils import (ApiType, _get_rg_location, _get_file_type, _get_sku_name)
from .vendored_sdks.appplatform.v2020_07_01 import models
from ._constant import (MARKETPLACE_OFFER_ID, MARKETPLACE_PLAN_ID, MARKETPLACE_PUBLISHER_ID)

logger = get_logger(__name__)

Expand Down Expand Up @@ -48,7 +47,6 @@ def validate_sku(cmd, namespace):
_validate_saas_provider(cmd, namespace)
_validate_terms(cmd, namespace)
else:
_check_saas_not_set(cmd, namespace)
_check_tanzu_components_not_enable(cmd, namespace)
normalize_sku(cmd, namespace)

Expand All @@ -58,11 +56,6 @@ def normalize_sku(cmd, namespace):
namespace.sku = models.Sku(name=_get_sku_name(namespace.sku), tier=namespace.sku)


def _check_saas_not_set(cmd, namespace):
if namespace.marketplace_plan_id:
raise InvalidArgumentValueError('--marketplace-plan-id is supported only when --sku=Enterprise')


def _validate_saas_provider(cmd, namespace):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from azure.cli.core.profiles import ResourceType
Expand All @@ -76,18 +69,15 @@ def _validate_terms(cmd, namespace):
from azure.mgmt.marketplaceordering import MarketplaceOrderingAgreements
from azure.cli.core.commands.client_factory import get_mgmt_service_client
client = get_mgmt_service_client(cmd.cli_ctx, MarketplaceOrderingAgreements).marketplace_agreements
plan_id = namespace.marketplace_plan_id or MARKETPLACE_PLAN_ID
term = client.get(offer_type="virtualmachine",
publisher_id=MARKETPLACE_PUBLISHER_ID,
offer_id=MARKETPLACE_OFFER_ID,
plan_id=plan_id)
publisher_id='vmware-inc',
offer_id='azure-spring-cloud-vmware-tanzu-2',
plan_id='tanzu-asc-ent-mtr')
if not term.accepted:
raise InvalidArgumentValueError('Terms for Azure Spring Apps Enterprise is not accepted.\n'
'Run "az term accept --publisher {} '
'--product {} '
'--plan {}" to accept the term.'.format(MARKETPLACE_PUBLISHER_ID,
MARKETPLACE_OFFER_ID,
plan_id))
'Run "az term accept --publisher vmware-inc '
'--product azure-spring-cloud-vmware-tanzu-2 '
'--plan tanzu-asc-ent-mtr" to accept the term.')


def _check_tanzu_components_not_enable(cmd, namespace):
Expand Down
4 changes: 0 additions & 4 deletions src/spring/azext_spring/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
transform_service_registry_output,
transform_spring_cloud_gateway_output,
transform_api_portal_output)
from ._marketplace import (transform_marketplace_plan_output)
from ._validators_enterprise import (validate_gateway_update, validate_api_portal_update)
from ._app_managed_identity_validator import (validate_app_identity_remove_or_warning,
validate_app_identity_assign_or_warning)
Expand Down Expand Up @@ -92,9 +91,6 @@ def load_command_table(self, _):
with self.command_group('spring', custom_command_type=spring_routing_util,
exception_handler=handle_asc_exception) as g:
g.custom_command('create', 'spring_create', supports_no_wait=True)
g.custom_command('list-marketplace-plan', 'spring_list_marketplace_plan',
is_preview=True,
table_transformer=transform_marketplace_plan_output)

with self.command_group('spring', client_factory=cf_spring_20220501preview,
exception_handler=handle_asc_exception) as g:
Expand Down
16 changes: 0 additions & 16 deletions src/spring/azext_spring/spring_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

from ._validators import (_parse_sku_name)
from knack.log import get_logger
from ._marketplace import _spring_list_marketplace_plan
from ._constant import (MARKETPLACE_OFFER_ID, MARKETPLACE_PUBLISHER_ID)

logger = get_logger(__name__)

Expand Down Expand Up @@ -59,7 +57,6 @@ def create_service(self,
sku=None,
tags=None,
ingress_read_timeout=None,
marketplace_plan_id=None,
**_):
properties = models.ClusterResourceProperties(
zone_redundant=zone_redundant
Expand All @@ -72,13 +69,6 @@ def create_service(self,
else:
properties.vnet_addons = None

if marketplace_plan_id:
properties.marketplace_resource = models.MarketplaceResource(
plan=marketplace_plan_id,
product=MARKETPLACE_OFFER_ID,
publisher=MARKETPLACE_PUBLISHER_ID
)

if service_runtime_subnet or app_subnet or reserved_cidr_range:
properties.network_profile = models.NetworkProfile(
service_runtime_subnet_id=service_runtime_subnet,
Expand Down Expand Up @@ -154,7 +144,6 @@ def spring_create(cmd, client, resource_group, name,
api_portal_instance_count=None,
enable_log_stream_public_endpoint=None,
ingress_read_timeout=None,
marketplace_plan_id=None,
no_wait=False):
"""
Because Standard/Basic tier vs. Enterprise tier creation are very different. Here routes the command to different
Expand Down Expand Up @@ -184,7 +173,6 @@ def spring_create(cmd, client, resource_group, name,
'enable_api_portal': enable_api_portal,
'api_portal_instance_count': api_portal_instance_count,
'enable_log_stream_public_endpoint': enable_log_stream_public_endpoint,
'marketplace_plan_id': marketplace_plan_id,
'no_wait': no_wait
}

Expand All @@ -200,7 +188,3 @@ def _enable_app_insights(cmd, client, resource_group, name, location, app_insigh
return create_default_buildpack_binding_for_application_insights(cmd, client, resource_group, name,
location, app_insights_key, app_insights,
sampling_rate)


def spring_list_marketplace_plan(cmd, client):
return _spring_list_marketplace_plan(cmd, client)
11 changes: 0 additions & 11 deletions src/spring/azext_spring/tests/latest/test_asa_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,6 @@ def test_asc_create_enterprise(self):
self.assertEqual('E0', resource.sku.name)
self.assertEqual('Enterprise', resource.sku.tier)
self.assertEqual(False, resource.properties.zone_redundant)
self.assertIsNone(resource.properties.marketplace_resource)

def test_asc_create_enterprise_with_plan(self):
self._execute('rg', 'asc', sku=self._get_sku('Enterprise'), disable_app_insights=True, marketplace_plan_id='my-plan')
resource = self.created_resource
self.assertEqual('E0', resource.sku.name)
self.assertEqual('Enterprise', resource.sku.tier)
self.assertEqual(False, resource.properties.zone_redundant)
self.assertEqual('my-plan', resource.properties.marketplace_resource.plan)
self.assertEqual('azure-spring-cloud-vmware-tanzu-2', resource.properties.marketplace_resource.product)
self.assertEqual('vmware-inc', resource.properties.marketplace_resource.publisher)


class TestSpringCloudCreateWithAI(BasicTest):
Expand Down
6 changes: 3 additions & 3 deletions src/spring/azext_spring/tests/latest/test_asa_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,20 +308,20 @@ def _mock_not_registered_client(cli_ctx, client_type, **kwargs):
class TestSkuValidator(unittest.TestCase):
@mock.patch('azure.cli.core.commands.client_factory.get_mgmt_service_client', _mock_happy_client)
def test_happy_path(self):
ns = Namespace(sku='Enterprise', marketplace_plan_id=None)
ns = Namespace(sku='Enterprise')
validate_sku(_get_test_cmd(), ns)
self.assertEqual('Enterprise', ns.sku.tier)

@mock.patch('azure.cli.core.commands.client_factory.get_mgmt_service_client', _mock_not_accepted_term_client)
def test_term_not_accept(self):
ns = Namespace(sku='Enterprise', marketplace_plan_id=None)
ns = Namespace(sku='Enterprise')
with self.assertRaises(InvalidArgumentValueError) as context:
validate_sku(_get_test_cmd(), ns)
self.assertTrue('Terms for Azure Spring Apps Enterprise is not accepted.' in str(context.exception))

@mock.patch('azure.cli.core.commands.client_factory.get_mgmt_service_client', _mock_not_registered_client)
def test_provider_not_registered(self):
ns = Namespace(sku='Enterprise', marketplace_plan_id=None)
ns = Namespace(sku='Enterprise')
with self.assertRaises(InvalidArgumentValueError) as context:
validate_sku(_get_test_cmd(), ns)
self.assertTrue('Microsoft.SaaS resource provider is not registered.' in str(context.exception))
Expand Down
16 changes: 0 additions & 16 deletions src/spring/azext_spring/vendored_sdks/marketplace/__init__.py

This file was deleted.

This file was deleted.

Loading