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

[Feature]: Need a way to set up extendedproperty by Set-AzEnvironment #25823

Open
BethanyZhou opened this issue Aug 15, 2024 · 2 comments
Open
Labels
Accounts Issues in Az.Accounts except authentication related Azure PS Team feature-request This issue requires a new behavior in the product in order be resolved. Tracking We will track status and follow internally

Comments

@BethanyZhou
Copy link
Contributor

BethanyZhou commented Aug 15, 2024

Description of the new feature

PS C:\Azure\upstream\azure-powershell> (Get-AzEnvironment).ExtendedProperties

Key                                       Value
---                                       -----
OperationalInsightsEndpoint               https://api.loganalytics.us/v1
AzureSynapseAnalyticsEndpointSuffix       dev.azuresynapse.usgovcloudapi.net
AzureAnalysisServicesEndpointSuffix       asazure.usgovcloudapi.net
MicrosoftGraphEndpointResourceId          https://graph.microsoft.us/
ManagedHsmServiceEndpointSuffix           managedhsm.usgovcloudapi.net
OperationalInsightsEndpointResourceId     https://api.loganalytics.us
AnalysisServicesEndpointResourceId        https://region.asazure.usgovcloudapi.net
ManagedHsmServiceEndpointResourceId       https://managedhsm.usgovcloudapi.net
AzureSynapseAnalyticsEndpointResourceId   https://dev.azuresynapse.usgovcloudapi.net
MicrosoftGraphUrl                         https://graph.microsoft.us
ContainerRegistryEndpointResourceId       https://management.usgovcloudapi.net
OperationalInsightsEndpoint               https://api.loganalytics.azure.cn/v1
AzureSynapseAnalyticsEndpointSuffix       dev.azuresynapse.azure.cn
AzureAnalysisServicesEndpointSuffix       asazure.chinacloudapi.cn
MicrosoftGraphEndpointResourceId          https://microsoftgraph.chinacloudapi.cn/
ManagedHsmServiceEndpointSuffix           managedhsm.azure.cn
OperationalInsightsEndpointResourceId     https://api.loganalytics.azure.cn
AnalysisServicesEndpointResourceId        https://region.asazure.chinacloudapi.cn
ManagedHsmServiceEndpointResourceId       https://managedhsm.azure.cn
AzureSynapseAnalyticsEndpointResourceId   https://dev.azuresynapse.azure.cn
MicrosoftGraphUrl                         https://microsoftgraph.chinacloudapi.cn
ContainerRegistryEndpointResourceId       https://management.chinacloudapi.cn
ManagedHsmServiceEndpointResourceId       https://managedhsm.azure.net
ContainerRegistryEndpointResourceId       https://management.azure.com
AzureAppConfigurationEndpointResourceId   https://azconfig.io
AzurePurviewEndpointSuffix                purview.azure.net
ManagedHsmServiceEndpointSuffix           managedhsm.azure.net
MicrosoftGraphUrl                         https://graph.microsoft.com
AzureAttestationServiceEndpointSuffix     attest.azure.net
AzureSynapseAnalyticsEndpointSuffix       dev.azuresynapse.net
AzureAnalysisServicesEndpointSuffix       asazure.windows.net
AzureSynapseAnalyticsEndpointResourceId   https://dev.azuresynapse.net
OperationalInsightsEndpointResourceId     https://api.loganalytics.io
AnalysisServicesEndpointResourceId        https://region.asazure.windows.net
AzurePurviewEndpointResourceId            https://purview.azure.net
AzureAppConfigurationEndpointSuffix       azconfig.io
AzureAttestationServiceEndpointResourceId https://attest.azure.net
MicrosoftGraphEndpointResourceId          https://graph.microsoft.com/
OperationalInsightsEndpoint               https://api.loganalytics.io/v1

If I want to change the value of ManagedHsmServiceEndpointSuffix, the only thing I can do is modifying AzureRmContext.json manually.

Proposed implementation details (optional)

Support Set-AzEnvironment -ExtendedProperty -Key xxx -Value xxx

@BethanyZhou BethanyZhou added feature-request This issue requires a new behavior in the product in order be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Aug 15, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Aug 15, 2024
@isra-fel
Copy link
Member

Whether the property is stored in extended properties is a impmentation detail and should not be exposed to user.
We need to expose a dedicated parameter for it.

@isra-fel isra-fel added Azure PS Team Accounts Issues in Az.Accounts except authentication related Tracking We will track status and follow internally labels Aug 15, 2024
@isra-fel
Copy link
Member

Conclusion: let's use the flattern syntax because of
(a) better doc support
(b) not exposing internal implemetatin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accounts Issues in Az.Accounts except authentication related Azure PS Team feature-request This issue requires a new behavior in the product in order be resolved. Tracking We will track status and follow internally
Projects
None yet
Development

No branches or pull requests

2 participants