You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 14, 2020. It is now read-only.
> As a prerequisite, you must install [Azure Core Tools version 2.x](https://docs.microsoft.com/azure/azure-functions/functions-run-local?WT.mc_id=xamarinazurechallenge-github-bramin#v2), [Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli?WT.mc_id=xamarinazurechallenge-github-bramin) and [Azure Cloud Shell](https://shell.azure.com/bash?WT.mc_id=xamarinazurechallenge-github-bramin).
126
-
127
-
1. Open the terminal
128
-
-[How to open the macOS Terminal](https://macpaw.com/how-to/use-terminal-on-mac)
129
-
-[How to open the Windows Terminal](https://www.quora.com/How-do-I-open-terminal-in-windows)
130
-
131
-
2. In the terminal, enter the following command to login into Azure CLI:
132
-
133
-
```bash
134
-
az login
135
-
```
136
-
> **Note:** Stand by until the Azure CLI opens your browser to the Azure Login page
137
-
138
-
3. In the automatically-opened browser window, in the Azure Login page, log into your Azure Account
139
-
140
-
4. In the terminal, enter the following command to create a new Azure Resource Group:
141
-
142
-
```bash
143
-
az group create --name XamarinAzureChallenge --location westeurope
144
-
```
145
-
146
-
> **Note:** If you have more than one subscription you will need to especify the subscription in which the resource group will be created using `--subscription [your Azure Subscription ID]`
147
-
>
148
-
> [How to find your Azure Subscription ID ](https://blogs.msdn.microsoft.com/mschray/2016/03/18/getting-your-azure-subscription-guid-new-portal?WT.mc_id=xamarinazurechallenge-github-bramin)
149
-
150
-
5. In the terminal, enter the following command to create a new Azure Storage Account:
> **Note:** Replace `[Your Name]` with your name to ensure the storage name is unique
156
-
> **Note:** If you have more than one subscription you will need to especify the subscription in which the resource group will be created using `--subscription [your Azure Subscription ID]`
157
-
>
158
-
> [How to find your Azure Subscription ID ](https://blogs.msdn.microsoft.com/mschray/2016/03/18/getting-your-azure-subscription-guid-new-portal?WT.mc_id=xamarinazurechallenge-github-bramin)
159
-
160
-
6. In the terminal, enter the following command to create a function app:
> **Note:** Replace `[Your Name]` with your name to ensure the functionapp name is unique
166
-
> **Note:** For `--storage-account`, use the storage account created in the previous step
167
-
> **Note:** If you have more than one subscription you will need to especify the subscription in which the resource group will be created using `--subscription [your Azure Subscription ID]`
168
-
>
169
-
> [How to find your Azure Subscription ID ](https://blogs.msdn.microsoft.com/mschray/2016/03/18/getting-your-azure-subscription-guid-new-portal?WT.mc_id=xamarinazurechallenge-github-bramin)
170
-
171
-
> **Note:** The Azure Function name must be unique, which is why we append our name
172
-
173
-
## 3: Publish Code to Azure Function
174
-
175
-
After creating the Azure Function, it's time to publish our code to the cloud. For this, we have two options:
176
-
177
-
1. Use [Visual Studio on PC](#3a-use-visual-studio-on-pc)
60
+
1. Use [Visual Studio on PC](#2a-use-visual-studio-on-pc)
1. In Visual Studio for Mac, open `XamarinAzureChallenge.sln`
234
116
@@ -288,27 +170,71 @@ After creating the Azure Function, it's time to publish our code to the cloud. F
288
170
289
171
13. Stand by while Visual Studio for Mac publishes our code to our Azure Function
290
172
291
-
### 3c. Use Azure CLI
173
+
#### 2c. Use Azure CLI
174
+
175
+
> As a prerequisite, you must install [Azure Core Tools version 2.x](https://docs.microsoft.com/azure/azure-functions/functions-run-local?WT.mc_id=xamarinazurechallenge-github-bramin#v2), [Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli?WT.mc_id=xamarinazurechallenge-github-bramin) and [Azure Cloud Shell](https://shell.azure.com/bash?WT.mc_id=xamarinazurechallenge-github-bramin).
292
176
293
177
1. Open the terminal
294
-
-[How to open the macOS Terminal](https://macpaw.com/how-to/use-terminal-on-mac)
295
-
-[How to open the Windows Terminal](https://www.quora.com/How-do-I-open-terminal-in-windows)
178
+
-[How to open the macOS Terminal](https://macpaw.com/how-to/use-terminal-on-mac)
179
+
-[How to open the Windows Terminal](https://www.quora.com/How-do-I-open-terminal-in-windows)
180
+
181
+
2. In the terminal, enter the following command to login into Azure CLI:
182
+
183
+
```bash
184
+
az login
185
+
```
186
+
> **Note:** Stand by until the Azure CLI opens your browser to the Azure Login page
187
+
188
+
3. In the automatically-opened browser window, in the Azure Login page, log into your Azure Account
189
+
190
+
4. In the terminal, enter the following command to create a new Azure Resource Group:
296
191
192
+
```bash
193
+
az group create --name XamarinAzureChallenge --location westeurope
194
+
```
195
+
196
+
> **Note:** If you have more than one subscription you will need to especify the subscription in which the resource group will be created using `--subscription [your Azure Subscription ID]`
197
+
>
198
+
> [How to find your Azure Subscription ID ](https://blogs.msdn.microsoft.com/mschray/2016/03/18/getting-your-azure-subscription-guid-new-portal?WT.mc_id=xamarinazurechallenge-github-bramin)
199
+
200
+
5. In the terminal, enter the following command to create a new Azure Storage Account:
297
201
298
-
2. In the terminal, enter the following command to navigate to the project folder `XamarinAzureChallenge.Functions` project folder.
> **Note:** Replace `[Your Name]` with your name to ensure the storage name is unique
206
+
> **Note:** If you have more than one subscription you will need to especify the subscription in which the resource group will be created using `--subscription [your Azure Subscription ID]`
207
+
>
208
+
> [How to find your Azure Subscription ID ](https://blogs.msdn.microsoft.com/mschray/2016/03/18/getting-your-azure-subscription-guid-new-portal?WT.mc_id=xamarinazurechallenge-github-bramin)
209
+
210
+
6. In the terminal, enter the following command to create a function app:
> **Note:** Replace `[Your Name]` with your name to ensure the functionapp name is unique
216
+
> **Note:** For `--storage-account`, use the storage account created in the previous step
217
+
> **Note:** If you have more than one subscription you will need to especify the subscription in which the resource group will be created using `--subscription [your Azure Subscription ID]`
218
+
>
219
+
> [How to find your Azure Subscription ID ](https://blogs.msdn.microsoft.com/mschray/2016/03/18/getting-your-azure-subscription-guid-new-portal?WT.mc_id=xamarinazurechallenge-github-bramin)
220
+
221
+
> **Note:** The Azure Function name must be unique, which is why we append our name
222
+
223
+
7. In the terminal, enter the following command to navigate to the project folder `XamarinAzureChallenge.Functions` project folder.
299
224
300
225
- Windows
301
226
-`cd [Your Path to XamarinAzureChallengeSource Code]\src\XamarinAzureChallenge\XamarinAzureChallenge.Functions`
302
227
- macOS
303
228
-`cd [Your Path to XamarinAzureChallengeSource Code]/src/XamarinAzureChallenge/XamarinAzureChallenge.Functions`
304
229
305
-
3. In the terminal, enter the following command to publish our code to our Azure Function:
230
+
8. In the terminal, enter the following command to publish our code to our Azure Function:
0 commit comments