Skip to content

Instantly share code, notes, and snippets.

@mithunshanbhag
mithunshanbhag / gist:8e401d1308440790a83aeddf0b5dd2a5
Created July 27, 2023 11:47
Reponse from api/Wms/externallyUnfulfilledOrdersByAge/10 in UAT
[
{
"orderReferenceId": "3825025",
"orderDate": "2023-07-27T10:38:59.3603787Z",
"amount": 729,
"priorityClass": "C",
"waveId": "Wave21",
"isFulfilled": false,
"orderItems": [
{
{
"handler": "Microsoft.Compute.VmExtension",
"version": "0.0.1-preview",
"parameters": {
"elements": [
],
"outputs": {
"vmName": "[vmName()]",
"location": "[location()]"
}
@mithunshanbhag
mithunshanbhag / gist:3f44cdad7449ef3efca74355d8a2dfb8
Created September 29, 2021 12:55
Twitter-thread-app-service-deployment
stages:
- stage: build
jobs:
- job: build
steps:
- script: dotnet publish -c ${{parameters.buildConfiguration}} -o ./publish
displayName: dotnet publish
workingDirectory: $(Build.SourcesDirectory)/CloudSkew.API
# publish the pipeline artifact
# build the app
- script: dotnet publish -c ${{parameters.buildConfiguration}} -o ./publish
displayName: dotnet publish
workingDirectory: $(Build.SourcesDirectory)/app-name-redacted
# stop app service
- task: AzureAppServiceManage@0
displayName: stop app service
inputs:
azureSubscription: ${{parameters.azureSubscription}}
@mithunshanbhag
mithunshanbhag / arm-template-projects
Created October 25, 2019 02:00
ARM template projects
Some interesting github projects around ARM templates:
* https://github.com/Azure/azure-xplat-arm-tooling
* https://github.com/sam-cogan/arm-snippets-vscode
* https://github.com/benc-uk/armview-vscode
* https://github.com/microsoft/vscode-azurearmtools
* https://github.com/ChrisLGardner/ArmTemplateValidation
* https://github.com/CompositionalIT/farmer
* [possibly outdated] https://github.com/aumathew/AzureArmTemplateCompiler
@mithunshanbhag
mithunshanbhag / github-issue-tf-azurerm-managed-disk
Last active April 24, 2019 18:29
github-issue-tf-azurerm-managed-disk
```
C:\temp>terraform apply
2019/04/24 23:58:12 [INFO] Terraform version: 0.11.13
2019/04/24 23:58:12 [INFO] Go runtime version: go1.11.5
2019/04/24 23:58:12 [INFO] CLI args: []string{"C:\\Tools\\terraform\\terraform.exe", "apply"}
2019/04/24 23:58:12 [DEBUG] Attempting to open CLI config file: C:\Users\localadmin\AppData\Roaming\terraform.rc
2019/04/24 23:58:12 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/04/24 23:58:12 [INFO] CLI command args: []string{"apply"}
2019/04/24 23:58:12 [INFO] command: empty terraform config, returning nil
@mithunshanbhag
mithunshanbhag / gist:ea5cebd38bbac0da76f6
Last active January 30, 2016 15:43
Debug log for bug in Add-AzureAccount -ServicePrincipal
[DBG]: PS C:\Users\localadmin>>>
DEBUG: 7:36:39 AM - AddAzureAccount begin processing with ParameterSet 'ServicePrincipal'.
DEBUG: [Common.Authentication]: Authenticating using configuration values: Domain: '[redacted]', Endpoint: 'https://login.microsoftonline.com/', ClientId: '[redacted]', ClientRedirect: 'urn:ietf:wg:oauth:2.
0:oob', ResourceClientUri: 'https://management.core.windows.net/', ValidateAuthrity: 'True'
DEBUG: Microsoft.IdentityModel.Clients.ActiveDirectory Information: 2 :
DEBUG: 1/30/2016 3:36:39 PM: 672e8158-3ebe-481e-9492-a3850774b2e6 - AcquireTokenHandlerBase: === Token Acquisition started:
Authority: https://login.microsoftonline.com/[redacted]/
Resource: https://management.core.windows.net/
ClientId: [redacted]
CacheType: Microsoft.Azure.Common.Authentication.ProtectedFileTokenCache (0 items)