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 Azure images to Azure_Icons_v18 #980

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 31 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/docker-outside-of-docker
{
"name": "Diagrams",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
// "image": "mcr.microsoft.com/devcontainers/base:bullseye",
"build":{
"dockerfile": "../docker/dev/Dockerfile"
},

// Use this environment variable if you need to bind mount your local source code into a new container.
// "remoteEnv": {
// "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}"
// }

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "docker --version",

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": ["ms-python.python"]
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
24 changes: 24 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,30 @@ Then just run the `./autogen.sh` to generate the added or updated node classes.
[black]: https://pypi.org/project/black
[inkscape]: https://inkscape.org/ko/release

#### Update Specific Instructions for Azure Icons

Download and unzip [Azure Icons](https://learn.microsoft.com/en-us/azure/architecture/icons/)

Execute inside Azure_Public_Service_Icons/Icons/
```bash
# Rename some diretories
mv ai\ +\ machine\ learning/ aimachinelearning/
mv app\ services/ appservices
mv azure\ stack/ azurestack
mv azure\ ecosystem/ azureecosystem
mv management\ +\ governance/ managementgovernance
mv mixed\ reality mixedreality
mv new\ icons/ newicons
# Convert Name to name
rename -f 'y/A-Z/a-z/' ./*/*
# Create png files and eliminate ?????-icon-service from namefile
find . -type f -name "*.svg" -exec bash -c 'inkscape -h 256 --export-filename="${0%.svg}.png" "$0";mv "${0%.svg}.png" "$(echo "${0%.svg}.png" | sed -r 's/[0-9]{5}-icon-service-//')"' {} \;
# Delete svg files
find . -type f -name "*.svg" -exec bash -c 'rm "$0"' {} \;
```

If you get any errors with autogen, it will probably be a '+' in filename

### Update Aliases

Some node classes have alias. For example, `aws.compute.ECS` class is an alias
Expand Down
2 changes: 1 addition & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

echo "starting"
app_root_dir="diagrams"

# NOTE: azure icon set is not latest version
Expand Down
139 changes: 139 additions & 0 deletions diagrams/azure/aimachinelearning.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Azure


class _Aimachinelearning(_Azure):
_type = "aimachinelearning"
_icon_dir = "resources/azure/aimachinelearning"


class AIStudio(_Aimachinelearning):
_icon = "ai-studio.png"


class AnomalyDetector(_Aimachinelearning):
_icon = "anomaly-detector.png"


class AzureAppliedAIServices(_Aimachinelearning):
_icon = "azure-applied-ai-services.png"


class AzureExperimentationStudio(_Aimachinelearning):
_icon = "azure-experimentation-studio.png"


class AzureObjectUnderstanding(_Aimachinelearning):
_icon = "azure-object-understanding.png"


class AzureOpenai(_Aimachinelearning):
_icon = "azure-openai.png"


class BatchAI(_Aimachinelearning):
_icon = "batch-ai.png"


class Bonsai(_Aimachinelearning):
_icon = "bonsai.png"


class BotServices(_Aimachinelearning):
_icon = "bot-services.png"


class CognitiveSearch(_Aimachinelearning):
_icon = "cognitive-search.png"


class CognitiveServicesDecisions(_Aimachinelearning):
_icon = "cognitive-services-decisions.png"


class CognitiveServices(_Aimachinelearning):
_icon = "cognitive-services.png"


class ComputerVision(_Aimachinelearning):
_icon = "computer-vision.png"


class ContentModerators(_Aimachinelearning):
_icon = "content-moderators.png"


class CustomVision(_Aimachinelearning):
_icon = "custom-vision.png"


class FaceApis(_Aimachinelearning):
_icon = "face-apis.png"


class FormRecognizers(_Aimachinelearning):
_icon = "form-recognizers.png"


class GenomicsAccounts(_Aimachinelearning):
_icon = "genomics-accounts.png"


class Genomics(_Aimachinelearning):
_icon = "genomics.png"


class ImmersiveReaders(_Aimachinelearning):
_icon = "immersive-readers.png"


class LanguageUnderstanding(_Aimachinelearning):
_icon = "language-understanding.png"


class Language(_Aimachinelearning):
_icon = "language.png"


class MachineLearningStudioClassicWebServices(_Aimachinelearning):
_icon = "machine-learning-studio-classic-web-services.png"


class MachineLearningStudioWebServicePlans(_Aimachinelearning):
_icon = "machine-learning-studio-web-service-plans.png"


class MachineLearningStudioWorkspaces(_Aimachinelearning):
_icon = "machine-learning-studio-workspaces.png"


class MachineLearning(_Aimachinelearning):
_icon = "machine-learning.png"


class MetricsAdvisor(_Aimachinelearning):
_icon = "metrics-advisor.png"


class Personalizers(_Aimachinelearning):
_icon = "personalizers.png"


class QnaMakers(_Aimachinelearning):
_icon = "qna-makers.png"


class ServerlessSearch(_Aimachinelearning):
_icon = "serverless-search.png"


class SpeechServices(_Aimachinelearning):
_icon = "speech-services.png"


class TranslatorText(_Aimachinelearning):
_icon = "translator-text.png"


# Aliases
36 changes: 34 additions & 2 deletions diagrams/azure/analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ class AnalysisServices(_Analytics):
_icon = "analysis-services.png"


class AzureDataExplorerClusters(_Analytics):
_icon = "azure-data-explorer-clusters.png"


class AzureDatabricks(_Analytics):
_icon = "azure-databricks.png"


class AzureSynapseAnalytics(_Analytics):
_icon = "azure-synapse-analytics.png"


class AzureWorkbooks(_Analytics):
_icon = "azure-workbooks.png"


class DataExplorerClusters(_Analytics):
_icon = "data-explorer-clusters.png"

Expand All @@ -32,6 +48,10 @@ class Databricks(_Analytics):
_icon = "databricks.png"


class EndpointAnalytics(_Analytics):
_icon = "endpoint-analytics.png"


class EventHubClusters(_Analytics):
_icon = "event-hub-clusters.png"

Expand All @@ -40,14 +60,26 @@ class EventHubs(_Analytics):
_icon = "event-hubs.png"


class Hdinsightclusters(_Analytics):
_icon = "hdinsightclusters.png"
class HDInsightClusters(_Analytics):
_icon = "hd-insight-clusters.png"


class LogAnalyticsWorkspaces(_Analytics):
_icon = "log-analytics-workspaces.png"


class PowerBiEmbedded(_Analytics):
_icon = "power-bi-embedded.png"


class PowerPlatform(_Analytics):
_icon = "power-platform.png"


class PrivateLinkServices(_Analytics):
_icon = "private-link-services.png"


class StreamAnalyticsJobs(_Analytics):
_icon = "stream-analytics-jobs.png"

Expand Down
43 changes: 43 additions & 0 deletions diagrams/azure/appservices.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Azure


class _Appservices(_Azure):
_type = "appservices"
_icon_dir = "resources/azure/appservices"


class AppServiceCertificates(_Appservices):
_icon = "app-service-certificates.png"


class AppServiceDomains(_Appservices):
_icon = "app-service-domains.png"


class AppServiceEnvironments(_Appservices):
_icon = "app-service-environments.png"


class AppServicePlans(_Appservices):
_icon = "app-service-plans.png"


class AppServices(_Appservices):
_icon = "app-services.png"


class CDNProfiles(_Appservices):
_icon = "cdn-profiles.png"


class CognitiveSearch(_Appservices):
_icon = "cognitive-search.png"


class NotificationHubs(_Appservices):
_icon = "notification-hubs.png"


# Aliases
23 changes: 23 additions & 0 deletions diagrams/azure/azureecosystem.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Azure


class _Azureecosystem(_Azure):
_type = "azureecosystem"
_icon_dir = "resources/azure/azureecosystem"


class Applens(_Azureecosystem):
_icon = "applens.png"


class AzureHybridCenter(_Azureecosystem):
_icon = "azure-hybrid-center.png"


class CollaborativeService(_Azureecosystem):
_icon = "collaborative-service.png"


# Aliases
39 changes: 39 additions & 0 deletions diagrams/azure/azurestack.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Azure


class _Azurestack(_Azure):
_type = "azurestack"
_icon_dir = "resources/azure/azurestack"


class Capacity(_Azurestack):
_icon = "capacity.png"


class InfrastructureBackup(_Azurestack):
_icon = "infrastructure-backup.png"


class MultiTenancy(_Azurestack):
_icon = "multi-tenancy.png"


class Offers(_Azurestack):
_icon = "offers.png"


class Plans(_Azurestack):
_icon = "plans.png"


class Updates(_Azurestack):
_icon = "updates.png"


class UserSubscriptions(_Azurestack):
_icon = "user-subscriptions.png"


# Aliases
Loading
Loading