{"id":21145466,"url":"https://github.com/codemillmatt/vs2022-azure","last_synced_at":"2025-03-14T13:42:43.978Z","repository":{"id":43309929,"uuid":"439432703","full_name":"codemillmatt/vs2022-azure","owner":"codemillmatt","description":"Pluralsight Visual Studio + Azure course materials","archived":false,"fork":false,"pushed_at":"2022-03-08T22:52:48.000Z","size":1017,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-21T07:27:39.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codemillmatt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-17T18:56:17.000Z","updated_at":"2022-03-08T20:50:13.000Z","dependencies_parsed_at":"2022-09-07T02:24:51.028Z","dependency_job_id":null,"html_url":"https://github.com/codemillmatt/vs2022-azure","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemillmatt%2Fvs2022-azure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemillmatt%2Fvs2022-azure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemillmatt%2Fvs2022-azure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codemillmatt%2Fvs2022-azure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codemillmatt","download_url":"https://codeload.github.com/codemillmatt/vs2022-azure/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243589260,"owners_count":20315467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T08:40:34.000Z","updated_at":"2025-03-14T13:42:43.956Z","avatar_url":"https://github.com/codemillmatt.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Developing for Azure with Visual Studio 2022\n\nHello! And welcome to the code repository for the [Developing for Azure with Visual Studio 2022 course on Pluralsight](https://pluralsight.pxf.io/BX1k79). Use [this link](https://pluralsight.pxf.io/c/1411097/1161410/7490) if you need a free trail to Pluralsight!\n\nThe projects contained within are the 2 final projects with all of the Connected Services files already included.\n\nThe projects are meant for you to explore, there is a fair amount of Azure setup that you'll need to go through in order to get everything to work.\n\n## Azure Setup\n\nAll of the ARM templates are set to deploy to `westus` or `westus2`. You can change that by going into the ARM templates in `Properties\\ServiceDependencies\\local` or `\\\u003cDEPLOYMENT NAME\u003e` and specifying your own value.\n\n### Weather.Web\n\nIn order to get this project to run locally, you'll need to provision the following:\n\n1. Azure App Configuration\n\nTo gain debug info, you'll need to provision:\n\n1. Azure Application Insights\n1. Azure App Service\n\nYou can do all of this by opening up the **Manage Connected Services** screen (make sure you've signed into Azure with Visual Studio) and then RESTORE all of the dependencies.\n\n#### Further Setup\n\nYou'll need to create the following values in Azure App Configuration.\n\n* `WeatherApp:APIUrl` =\u003e the URL of the **Weather.API** instance. For local dev it will be `https://localhost:7071`\n* `WeatherApp:CityInfoUrl`=\u003e `/api/CityInfo`\n* `WeatherApp:header` =\u003e hex code for the header color, for example: `#00ff00`\n* `WeatherApp:ReportErrorUrl` =\u003e `/api/ReportError`\n* `WeatherApp:WeatherForCityUrl` =\u003e `/WeatherForecast`\n\n#### Troubleshooting\n\nYou may run into issues if you already have a no-cost instance of Azure App Configuration provisioned in your subscription. If that's the case, you can change the SKU of this one by editing the `Properties\\ServiceDependencies\\local\\appConfig1.arm.json` file. Change the `sku` value from `free` to `standard`.\n\n### Weather.API\n\nIn order to get this project to run locally, you'll need to provision the following in Azure:\n\n1. Azure Cosmos DB\n\nYou'll also need the **Azurite Storage container** which will require Docker Desktop. The Connected Services _should_ download this for you automatically if needed.\n\nTo debug you'll need an App Service.\n\nYou can provision everything by using the **Restore** functionality of the Connected Services.\n\n#### Further Setup\n\nTo get Cosmos DB working properly, you'll need to create a new database and collection. Then fill that collection with some data.\n\n* **Database name:** WeatherInfo\n* **Collection name:** AllCities\n* **Partition Key:** `/state`\n\nSample data entry:\n\n```json\n{\n    \"cityId\": 1,\n    \"name\": \"Seattle\",\n    \"state\": \"WA\"\n}\n```\n\n#### Troubleshooting\n\nYou may have issues with Cosmos provisioning in your preferred region depending on your subscription type. Don't be afraid to mess around with the `Properties\\ServiceDependencies\\local\\cosmosdb1.arm.json` if you have issues deploying.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemillmatt%2Fvs2022-azure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodemillmatt%2Fvs2022-azure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodemillmatt%2Fvs2022-azure/lists"}