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

Replaced static Azure resource values with az cli retrieval #101

Merged
merged 2 commits into from
Jun 6, 2018

Conversation

aaron-schnieder
Copy link
Contributor

Replaced static Azure resource values with az cli retrieval

# Get values for Azure resources created by inception.sh
AZURE_CONTAINER_REGISTRY_NAME=$(az acr list -g $COMMON_RESOURCE_GROUP -o tsv --query [].name | grep acr)
K8_DEPLOYMENT_KEYVAULT_NAME=$(az keyvault list -g $COMMON_RESOURCE_GROUP -o tsv --query [].name | grep deploy-kv)
AZURE_TRAFFIC_MANAGER_PROFILE_NAME=$(az network traffic-manager profile list -g $COMMON_RESOURCE_GROUP -o tsv --query [].name | grep trafficmgr)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we move the values you are grepping for to variables? If those were to change in inception.sh, we'd have to change them here also

@aaron-schnieder
Copy link
Contributor Author

@billpratt good suggestion. I moved all resource name strings to globalVariables.

Copy link
Contributor

@billpratt billpratt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants