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

Update ProviderHub CLI Support for Comma Separated Values #8461

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,8 @@ def _build_arguments_schema(cls, *args, **kwargs):
_args_schema.provider_type = AAZStrArg(
options=["--provider-type"],
arg_group="Properties",
help="The provider type.",
help="The provider type. Provider type options are: AuthorizationFree, External, Hidden, Internal, LegacyRegistrationRequired, NotSpecified, RegistrationFree, TenantOnly. Select multiple with comma separated string.",
nullable=True,
enum={"AuthorizationFree": "AuthorizationFree", "External": "External", "Hidden": "Hidden", "Internal": "Internal", "LegacyRegistrationRequired": "LegacyRegistrationRequired", "NotSpecified": "NotSpecified", "RegistrationFree": "RegistrationFree", "TenantOnly": "TenantOnly"},
)
_args_schema.provider_version = AAZStrArg(
options=["--provider-version"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,8 @@ def _build_arguments_schema(cls, *args, **kwargs):
_args_schema.routing_type = AAZStrArg(
options=["--routing-type"],
arg_group="Properties",
help="The resource routing type.",
help="The resource routing type. The options are: CascadeExtension, Default, Extension, Failover, Fanout, HostBased, LocationBased, ProxyOnly, Tenant. Select multiple with a comma separated string.",
nullable=True,
enum={"CascadeExtension": "CascadeExtension", "Default": "Default", "Extension": "Extension", "Failover": "Failover", "Fanout": "Fanout", "HostBased": "HostBased", "LocationBased": "LocationBased", "ProxyOnly": "ProxyOnly", "Tenant": "Tenant"},
)
_args_schema.service_tree_infos = AAZListArg(
options=["--service-tree-infos"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ interactions:
"Resource Provider Service as a Service", "incidentRoutingTeam": "RPaaS", "manifestOwners":
["SPARTA-PlatformServiceAdministrator"], "serviceTreeInfos": [{"componentId":
"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69", "serviceId": "d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}]},
"metadata": {"BypassManifestValidation": true}, "providerVersion": "2.0", "tokenAuthConfiguration":
{"authenticationScheme": "PoP", "signedRequestScope": "ResourceUri"}}}'
"metadata": {"BypassManifestValidation": true}, "providerType": "Hidden, Internal",
"providerVersion": "2.0", "tokenAuthConfiguration": {"authenticationScheme":
"PoP", "signedRequestScope": "ResourceUri"}}}'
headers:
Accept:
- application/json
Expand All @@ -18,31 +19,31 @@ interactions:
Connection:
- keep-alive
Content-Length:
- '684'
- '720'
Content-Type:
- application/json
ParameterSetName:
- --token-auth-configuration --service-tree-infos --capabilities --capabilities
--manifest-owners --incident-contact-email --incident-routing-service --incident-routing-team
--provider-version --provider-namespace --metadata
--provider-version --provider-type --provider-namespace --metadata
User-Agent:
- AZURECLI/2.61.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0)
- AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.12.0 (Windows-11-10.0.26100-SP0)
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest?api-version=2024-04-01-preview
response:
body:
string: '{"properties":{"privateResourceProviderConfiguration":{"allowedSubscriptions":["81ddc363-4b54-4223-833d-16b2a424d8a0"]},"provisioningState":"Succeeded","namespace":"Private.VPTest","providerVersion":"2.0","providerType":"Internal,
Hidden","management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator"],"incidentRoutingService":"Resource
Provider Service as a Service","incidentRoutingTeam":"RPaaS","incidentContactEmail":"[email protected]","serviceTreeInfos":[{"serviceId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69","componentId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}]},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"metadata":{"BypassManifestValidation":true},"tokenAuthConfiguration":{"authenticationScheme":"PoP","signedRequestScope":"ResourceUri","disableCertificateAuthenticationFallback":false}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest","type":"Microsoft.ProviderHub/providerRegistrations","name":"Private.VPTest","kind":"Managed","systemData":{"createdBy":"[email protected]","createdByType":"User","createdAt":"2022-11-16T00:05:06.5154703Z","lastModifiedBy":"gaurimadhok@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2024-06-17T03:49:36.6182293Z"}}'
Provider Service as a Service","incidentRoutingTeam":"RPaaS","incidentContactEmail":"[email protected]","serviceTreeInfos":[{"serviceId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69","componentId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}]},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"metadata":{"BypassManifestValidation":true},"tokenAuthConfiguration":{"authenticationScheme":"PoP","signedRequestScope":"ResourceUri","disableCertificateAuthenticationFallback":false}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest","type":"Microsoft.ProviderHub/providerRegistrations","name":"Private.VPTest","kind":"Managed","systemData":{"createdBy":"[email protected]","createdByType":"User","createdAt":"2022-11-16T00:05:06.5154703Z","lastModifiedBy":"nataliezoz@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2025-02-25T00:16:37.5659306Z"}}'
headers:
cache-control:
- no-cache
content-length:
- '1345'
- '1344'
content-type:
- application/json; charset=utf-8
date:
- Mon, 17 Jun 2024 03:49:46 GMT
- Tue, 25 Feb 2025 00:16:38 GMT
expires:
- '-1'
pragma:
Expand All @@ -53,12 +54,12 @@ interactions:
- CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/295f3079-311a-4576-9769-bd2118a4720c
x-ms-ratelimit-remaining-subscription-global-writes:
- '11999'
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
- '799'
x-msedge-ref:
- 'Ref A: 6F6726D26FE84B3AB8B77DA8FE0CBD56 Ref B: CO6AA3150218035 Ref C: 2024-06-17T03:49:36Z'
- 'Ref A: 3103F7BCF7A34BF3AC8D8FFF9F1BEC66 Ref B: CO6AA3150217035 Ref C: 2025-02-25T00:16:37Z'
status:
code: 200
message: OK
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- providerhub provider-registration update
Connection:
- keep-alive
ParameterSetName:
- --token-auth-configuration --service-tree-infos --capabilities --capabilities
--manifest-owners --incident-contact-email --incident-routing-service --incident-routing-team
--provider-version --provider-type --provider-namespace --metadata
User-Agent:
- AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.12.0 (Windows-11-10.0.26100-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest?api-version=2024-04-01-preview
response:
body:
string: '{"properties":{"privateResourceProviderConfiguration":{"allowedSubscriptions":["81ddc363-4b54-4223-833d-16b2a424d8a0"]},"provisioningState":"Succeeded","namespace":"Private.VPTest","providerVersion":"2.0","providerType":"Hidden","management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator"],"incidentRoutingService":"Resource
Provider Service as a Service","incidentRoutingTeam":"RPaaS","incidentContactEmail":"[email protected]","serviceTreeInfos":[{"serviceId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69","componentId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}]},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"metadata":{"BypassManifestValidation":true},"tokenAuthConfiguration":{"authenticationScheme":"PoP","signedRequestScope":"ResourceUri","disableCertificateAuthenticationFallback":false}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest","type":"Microsoft.ProviderHub/providerRegistrations","name":"Private.VPTest","kind":"Managed","systemData":{"createdBy":"[email protected]","createdByType":"User","createdAt":"2022-11-16T00:05:06.5154703Z","lastModifiedBy":"[email protected]","lastModifiedByType":"User","lastModifiedAt":"2025-02-24T23:56:21.4480278Z"}}'
headers:
cache-control:
- no-cache
content-length:
- '1334'
content-type:
- application/json; charset=utf-8
date:
- Mon, 24 Feb 2025 23:57:57 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
x-cache:
- CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-reads:
- '16499'
x-msedge-ref:
- 'Ref A: CF8693E8298B48EC818958BEBDD3858F Ref B: CO6AA3150218009 Ref C: 2025-02-24T23:57:57Z'
status:
code: 200
message: OK
- request:
body: '{"kind": "Managed", "properties": {"capabilities": [{"effect": "Allow",
"quotaId": "CSP_2015-05-01"}, {"effect": "Allow", "quotaId": "CSP_MG_2017-12-01"}],
"management": {"incidentContactEmail": "[email protected]", "incidentRoutingService":
"Resource Provider Service as a Service", "incidentRoutingTeam": "RPaaS", "manifestOwners":
["SPARTA-PlatformServiceAdministrator"], "serviceTreeInfos": [{"componentId":
"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69", "serviceId": "d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}]},
"metadata": {"BypassManifestValidation": true}, "namespace": "Private.VPTest",
"privateResourceProviderConfiguration": {"allowedSubscriptions": ["81ddc363-4b54-4223-833d-16b2a424d8a0"]},
"providerType": "Internal, Hidden", "providerVersion": "2.0", "tokenAuthConfiguration":
{"authenticationScheme": "PoP", "disableCertificateAuthenticationFallback":
false, "signedRequestScope": "ResourceUri"}}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
CommandName:
- providerhub provider-registration update
Connection:
- keep-alive
Content-Length:
- '910'
Content-Type:
- application/json
ParameterSetName:
- --token-auth-configuration --service-tree-infos --capabilities --capabilities
--manifest-owners --incident-contact-email --incident-routing-service --incident-routing-team
--provider-version --provider-type --provider-namespace --metadata
User-Agent:
- AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.12.0 (Windows-11-10.0.26100-SP0)
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest?api-version=2024-04-01-preview
response:
body:
string: '{"properties":{"privateResourceProviderConfiguration":{"allowedSubscriptions":["81ddc363-4b54-4223-833d-16b2a424d8a0"]},"provisioningState":"Succeeded","namespace":"Private.VPTest","providerVersion":"2.0","providerType":"Internal,
Hidden","management":{"manifestOwners":["SPARTA-PlatformServiceAdministrator"],"incidentRoutingService":"Resource
Provider Service as a Service","incidentRoutingTeam":"RPaaS","incidentContactEmail":"[email protected]","serviceTreeInfos":[{"serviceId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69","componentId":"d1b7d8ba-05e2-48e6-90d6-d781b99c6e69"}]},"capabilities":[{"quotaId":"CSP_2015-05-01","effect":"Allow"},{"quotaId":"CSP_MG_2017-12-01","effect":"Allow"}],"metadata":{"BypassManifestValidation":true},"tokenAuthConfiguration":{"authenticationScheme":"PoP","signedRequestScope":"ResourceUri","disableCertificateAuthenticationFallback":false}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest","type":"Microsoft.ProviderHub/providerRegistrations","name":"Private.VPTest","kind":"Managed","systemData":{"createdBy":"[email protected]","createdByType":"User","createdAt":"2022-11-16T00:05:06.5154703Z","lastModifiedBy":"[email protected]","lastModifiedByType":"User","lastModifiedAt":"2025-02-24T23:57:57.6563158Z"}}'
headers:
cache-control:
- no-cache
content-length:
- '1344'
content-type:
- application/json; charset=utf-8
date:
- Mon, 24 Feb 2025 23:57:59 GMT
expires:
- '-1'
pragma:
- no-cache
strict-transport-security:
- max-age=31536000; includeSubDomains
x-cache:
- CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-ratelimit-remaining-subscription-global-writes:
- '11999'
x-ms-ratelimit-remaining-subscription-writes:
- '799'
x-msedge-ref:
- 'Ref A: 877F94E634134BE6A128A177121AA351 Ref B: CO6AA3150218009 Ref C: 2025-02-24T23:57:57Z'
status:
code: 200
message: OK
version: 1
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
interactions:
- request:
body: '{"kind": "Managed", "properties": {"endpoints": [{"apiVersions": ["2019-01-01"],
"locations": ["WestUS"]}], "regionality": "Regional"}}'
"locations": ["WestUS"]}], "regionality": "Regional", "routingType": "ProxyOnly,
Extension"}}'
headers:
Accept:
- application/json
Expand All @@ -12,27 +13,28 @@ interactions:
Connection:
- keep-alive
Content-Length:
- '135'
- '174'
Content-Type:
- application/json
ParameterSetName:
- --endpoints --regionality --provider-namespace --resource-type
- --endpoints --regionality --provider-namespace --resource-type --routing-type
User-Agent:
- AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.11.0 (Windows-10-10.0.22631-SP0)
- AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.12.0 (Windows-11-10.0.26100-SP0)
method: PUT
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourcetypeRegistrations/extensionresourcetype?api-version=2024-04-01-preview
response:
body:
string: '{"properties":{"name":"extensionresourcetype","routingType":"Default","regionality":"Regional","endpoints":[{"kind":"Managed","apiVersions":["2019-01-01"],"locations":["WestUS"]}],"defaultApiVersion":"2019-01-01","enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourceTypeRegistrations/extensionresourcetype","type":"Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations","name":"extensionresourcetype","kind":"Managed","systemData":{"createdBy":"[email protected]","createdByType":"User","createdAt":"2024-05-31T03:23:33.5645757Z","lastModifiedBy":"[email protected]","lastModifiedByType":"User","lastModifiedAt":"2024-06-04T23:30:16.4751488Z"}}'
string: '{"properties":{"name":"extensionresourcetype","routingType":"ProxyOnly,
Extension","regionality":"Regional","endpoints":[{"kind":"Managed","apiVersions":["2019-01-01"],"locations":["WestUS"]}],"defaultApiVersion":"2019-01-01","throttlingRules":[{"action":"Private.VPTest/extensionresourcetype/write","metrics":[{"type":"NumberOfRequests","limit":400,"interval":"PT1H"}]},{"action":"Private.VPTest/extensionresourcetype/read","metrics":[{"type":"NumberOfRequests","limit":4000,"interval":"PT1H"}]},{"action":"Private.VPTest/extensionresourcetype/delete","metrics":[{"type":"NumberOfRequests","limit":5000,"interval":"PT1H"}]}],"enableAsyncOperation":false,"provisioningState":"Succeeded","enableThirdPartyS2S":false,"templateDeploymentOptions":{"preflightSupported":true,"preflightOptions":["DefaultValidationOnly"]}},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ProviderHub/providerRegistrations/Private.VPTest/resourceTypeRegistrations/extensionresourcetype","type":"Microsoft.ProviderHub/providerRegistrations/resourceTypeRegistrations","name":"extensionresourcetype","kind":"Managed","systemData":{"createdBy":"[email protected]","createdByType":"User","createdAt":"2025-02-07T22:56:55.0029838Z","lastModifiedBy":"[email protected]","lastModifiedByType":"User","lastModifiedAt":"2025-02-25T01:02:30.5754252Z"}}'
headers:
cache-control:
- no-cache
content-length:
- '949'
- '1360'
content-type:
- application/json; charset=utf-8
date:
- Tue, 04 Jun 2024 23:30:21 GMT
- Tue, 25 Feb 2025 01:02:31 GMT
expires:
- '-1'
pragma:
Expand All @@ -43,12 +45,12 @@ interactions:
- CONFIG_NOCACHE
x-content-type-options:
- nosniff
x-ms-operation-identifier:
- tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47,objectId=9506e7c0-c569-479f-9940-1f63cb8ce817/centraluseuap/c2af90b9-43e4-42e1-89aa-e6284ab27de0
x-ms-ratelimit-remaining-subscription-global-writes:
- '11999'
x-ms-ratelimit-remaining-subscription-writes:
- '1197'
- '799'
x-msedge-ref:
- 'Ref A: 8C557624C4F54E8380FDDB445379C9FA Ref B: DM2AA1091214017 Ref C: 2024-06-04T23:30:16Z'
- 'Ref A: AC2A6F18AFAB4779B32457B8672752C0 Ref B: CO6AA3150217031 Ref C: 2025-02-25T01:02:30Z'
status:
code: 200
message: OK
Expand Down
Loading
Loading